-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
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
Labels
No labels