Skip to content

problem modifying interfaces #88

@bboles

Description

@bboles

Hello,

I am trying to modify an interface on an existing host but am not having any luck. This is a physical server that has 4 interfaces, plus an IPMI interface. I want to modify only one of the interfaces. I have tried using the hosts.update routine like this:

In [324]: f.hosts.update('341423',
     ...:     {'interface_attributes': [{
     ...:         '1': {'identifier': 'enp3s0f1',
     ...:              'ip': '172.28.5.28',
     ...:              'subnet_id': '13',
     ...:              'primary': 'true',
     ...:              'managed': 'true'
     ...:             }
     ...:            }]
     ...:     }
     ...: )

The only thing that happens is that I get back a hash of the host attributes but the interface doesn't get updated. There is no error. I have also tried the same thing with hosts.interfaces_host_id_updateinterfaces and have not been able to get that function to work correctly at all. Can you give me any pointers on the best way to go about modifying an interface?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions