interface old addresses state is not updated when you assign a new addresses
- Dominant language
- Python
- Stars
- 407
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
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 |
+-----------------------------------------------------------------------------------+
`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.