diff --git a/test/gnmi/testdata/nx.cisco.networking.metal.ironcore.dev/interface_physical_ipv6_linklocal.txtar b/test/gnmi/testdata/nx.cisco.networking.metal.ironcore.dev/interface_physical_ipv6_linklocal.txtar new file mode 100644 index 000000000..0a3b3aa1e --- /dev/null +++ b/test/gnmi/testdata/nx.cisco.networking.metal.ironcore.dev/interface_physical_ipv6_linklocal.txtar @@ -0,0 +1,126 @@ +# Physical Interface with IPv6 Link-Local Address Only +-- interfaces/eth1-1 -- +apiVersion: networking.metal.ironcore.dev/v1alpha1 +kind: Interface +metadata: + name: eth1-1 + namespace: default +spec: + deviceRef: + name: device + name: eth1/1 + description: Leaf1 to Spine1 + adminState: Up + type: Physical + mtu: 9216 + ipv6: + useLinkLocalOnly: true + +-- state/preload -- +{ + "System": { + "procsys-items": { + "bootTime": "1700000000" + } + } +} + +-- state/expect -- + +{ + "System": { + "procsys-items": { + "bootTime": "1700000000" + }, + "intf-items": { + "phys-items": { + "PhysIf-list": [ + { + "accessVlan": "unknown", + "adminSt": "up", + "descr": "Leaf1 to Spine1", + "FECMode": "auto", + "id": "eth1/1", + "layer": "Layer3", + "mtu": 9216, + "medium": "broadcast", + "mode": "access", + "nativeVlan": "unknown", + "userCfgdFlags": "admin_layer,admin_mtu,admin_state", + "rtvrfMbr-items": { + "tDn": "/System/inst-items/Inst-list[name='default']" + }, + "physExtd-items": { + "bufferBoost": "enable" + } + } + ] + } + }, + "ipv6-items": { + "inst-items": { + "dom-items": { + "Dom-list": [ + { + "name": "default", + "if-items": { + "If-list": [ + { + "id": "eth1/1", + "useLinkLocalAddr": "enabled" + } + ] + } + } + ] + } + } + } + } +} + +-- state/delete -- + +{ + "System": { + "procsys-items": { + "bootTime": "1700000000" + }, + "intf-items": { + "phys-items": { + "PhysIf-list": [ + { + "accessVlan": "vlan-1", + "descr": "DME_UNSET_PROPERTY_MARKER", + "FECMode": "auto", + "id": "eth1/1", + "layer": "Layer2", + "mtu": 1500, + "medium": "broadcast", + "mode": "access", + "nativeVlan": "vlan-1", + "userCfgdFlags": "", + "physExtd-items": { + "bufferBoost": "enable" + }, + "trunkVlans": "1-4094" + } + ] + } + }, + "ipv6-items": { + "inst-items": { + "dom-items": { + "Dom-list": [ + { + "name": "default", + "if-items": { + "If-list": [] + } + } + ] + } + } + } + } +} diff --git a/test/gnmi/testdata/openconfig.networking.metal.ironcore.dev/interface_physical_ipv6_linklocal.txtar b/test/gnmi/testdata/openconfig.networking.metal.ironcore.dev/interface_physical_ipv6_linklocal.txtar new file mode 100644 index 000000000..ea44a0c24 --- /dev/null +++ b/test/gnmi/testdata/openconfig.networking.metal.ironcore.dev/interface_physical_ipv6_linklocal.txtar @@ -0,0 +1,97 @@ +# Physical Interface with IPv6 Link-Local Address Only +-- interfaces/eth1-1 -- +apiVersion: networking.metal.ironcore.dev/v1alpha1 +kind: Interface +metadata: + name: eth1-1 + namespace: default +spec: + deviceRef: + name: device + name: eth1/1 + description: Leaf1 to Spine1 + adminState: Up + type: Physical + mtu: 9216 + ipv6: + useLinkLocalOnly: true + +-- state/preload -- +{ + "openconfig-system:system": { + "state": { + "boot-time": "1784731445707000000" + } + } +} + +-- state/expect -- + +{ + "openconfig-system:system": { + "state": { + "boot-time": "1784731445707000000" + } + }, + "openconfig-interfaces:interfaces": { + "interface": [ + { + "config": { + "name": "eth1/1", + "type": "iana-if-type:ethernetCsmacd", + "description": "Leaf1 to Spine1", + "enabled": true, + "mtu": 9216 + }, + "subinterfaces": { + "subinterface": [ + { + "index": 0, + "config": { + "index": 0, + "enabled": true + }, + "openconfig-if-ip:ipv6": { + "config": { + "enabled": true + } + } + } + ] + }, + "name": "eth1/1" + } + ] + } +} + +-- state/delete -- + +{ + "openconfig-system:system": { + "state": { + "boot-time": "1784731445707000000" + } + }, + "openconfig-interfaces:interfaces": { + "interface": [ + { + "config": { + "name": "eth1/1", + "type": "iana-if-type:ethernetCsmacd", + "enabled": false + }, + "name": "eth1/1", + "openconfig-if-ethernet:ethernet": { + "openconfig-vlan:switched-vlan": { + "config": { + "trunk-vlans": [ + "1..4094" + ] + } + } + } + } + ] + } +}