Hi all,
I've written some code to upload CXOS configs to devices. This works very well, but I'm struggling to add/edit IP addresses.
As an example, I have a valid session which I have just used to update the switch's config and the this code to add the IP address to the vlan 204 interface.
session = Session(switch, "10.08")
ip_address = "10.10.10.1"
interface = Interface(session, "vlan204")
interface.ip4_address = ip_address
interface.update()
The
interface.update() method returns
True and the http response in the pyaoscx code turns 200. However, checking the switch's config reveals that vlan 204 has no IP address. Furthermore, there is no indication of the call/response or logging messages in the switch's log.
I'm currently stumped and out of ideas, so if anyone has some experience here, I'd love to hear what you have done.
Cheers,
C
------------------------------
Conor Cunningham
------------------------------