-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Existing interface configuration:
+-----------------------------------------------------------------------------------+ | ID CIDR (Key) Is IP? IP Ver. Parent State Attributes | +-----------------------------------------------------------------------------------+ | 2304 192.168.0.1/32 True 4 192.168.0.0/16 assigned | +-----------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------+ | ID Name (Key) Parent MAC Addresses Speed Type Attributes | +-------------------------------------------------------------------------------+ | 857 leaf1:swp1 None None 192.168.0.1/32 1000 6 | +-------------------------------------------------------------------------------+
Assign new address to the interface:
$ nsot interfaces update -i 'leaf1:swp1' -c 192.168.0.2/32
+-------------------------------------------------------------------------------+ | ID Name (Key) Parent MAC Addresses Speed Type Attributes | +-------------------------------------------------------------------------------+ | 857 leaf1:swp1 None None 192.168.0.2/32 1000 6 | +-------------------------------------------------------------------------------+
The output below is the old address of the interface and is still showing that is assigned
$ nsot networks list -c 192.168.0.1/32 +-----------------------------------------------------------------------------------+ | ID CIDR (Key) Is IP? IP Ver. Parent State Attributes | +-----------------------------------------------------------------------------------+ | 2304 192.168.0.1/32 True 4 192.168.0.0/16 assigned | +-----------------------------------------------------------------------------------+