Skip to content

interface old addresses state is not updated when you assign a new addresses #379

Description

@rynldtbuen

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 | +-----------------------------------------------------------------------------------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions