diff --git a/test/case/statd/all.yaml b/test/case/statd/all.yaml index 3c04c566..cc2589d5 100644 --- a/test/case/statd/all.yaml +++ b/test/case/statd/all.yaml @@ -1,3 +1,5 @@ --- +- case: containers/test + name: "containers" - case: interfaces-all/test name: "interfaces-all" diff --git a/test/case/statd/containers/cli/show-interfaces b/test/case/statd/containers/cli/show-interfaces new file mode 100644 index 00000000..1a02ceb9 --- /dev/null +++ b/test/case/statd/containers/cli/show-interfaces @@ -0,0 +1,41 @@ +INTERFACE PROTOCOL STATE DATA  +lo ethernet UP 00:00:00:00:00:00 + ipv4 127.0.0.1/8 (static) + ipv6 ::1/128 (static) +br0 bridge  vlan:1u pvid:1 +│ ethernet UP 00:a0:85:00:03:00 +│ ipv4 169.254.1.1/16 (random) +│ ipv6 fe80::2a0:85ff:fe00:300/64 (link-layer) +├ e3 bridge FORWARDING vlan:1u pvid:1 +├ e4 bridge FORWARDING vlan:1u pvid:1 +├ veth0b bridge FORWARDING vlan:1u pvid:1 +└ veth2b bridge FORWARDING vlan:1u pvid:1 +br1 bridge   +│ ethernet UP 00:a0:85:00:03:00 +├ veth1b bridge FORWARDING vlan:6u pvid:6 +└ veth3b bridge FORWARDING  +e1 ethernet UP 00:a0:85:00:03:01 + ipv6 fe80::2a0:85ff:fe00:301/64 (link-layer) +e2 ethernet UP 00:a0:85:00:03:02 + ipv6 fe80::2a0:85ff:fe00:302/64 (link-layer) +e3.8 ethernet UP 00:a0:85:00:03:03 +│ ipv4 10.1.1.1/32 (static) +└ e3 ethernet UP 00:a0:85:00:03:03 +e4.8 ethernet UP 00:a0:85:00:03:04 +│ ipv4 10.1.1.1/32 (static) +└ e4 ethernet UP 00:a0:85:00:03:04 +e5 ethernet UP 00:a0:85:00:03:05 + ipv6 fe80::2a0:85ff:fe00:305/64 (link-layer) +e6 ethernet UP 00:a0:85:00:03:06 + ipv4 10.1.1.101/24 (static) + ipv6 fe80::2a0:85ff:fe00:306/64 (link-layer) +e7 ethernet UP 00:a0:85:00:03:07 + ipv6 fe80::2a0:85ff:fe00:307/64 (link-layer) +veth0a container container-A  +veth0b ethernet UP c2:61:ae:82:0a:c1 +veth1a container container-A  +veth1b ethernet UP e6:c6:34:dc:b9:f4 +veth2a container container-B  +veth2b ethernet UP 96:8b:c6:17:74:d3 +veth3a container container-B  +veth3b ethernet UP 0e:c3:01:d6:e6:ea diff --git a/test/case/statd/containers/cli/show-routing-table_--ip_ipv4 b/test/case/statd/containers/cli/show-routing-table_--ip_ipv4 new file mode 100644 index 00000000..bcf4ffa3 --- /dev/null +++ b/test/case/statd/containers/cli/show-routing-table_--ip_ipv4 @@ -0,0 +1,12 @@ + DESTINATION PREF NEXT-HOP PROTO UPTIME +>* 0.0.0.0/0 110/2 10.1.1.100 ospfv2 01:59:57 + 0.0.0.0/0 254/0 br0 static 02:00:37 + 10.1.1.0/24 110/1 e6 ospfv2 02:00:07 +>* 10.1.1.0/24 0/0 e6 direct 02:00:51 + * 10.1.1.1/32 0/0 e4.8 direct 02:00:52 +>* 10.1.1.1/32 0/0 e3.8 direct 02:00:52 +>* 10.1.2.0/24 110/2 10.1.1.100 ospfv2 01:59:57 + * 10.1.2.1 +>* 10.1.3.0/24 110/2 10.1.1.100 ospfv2 01:59:57 + * 10.1.3.1 +>* 169.254.0.0/16 0/0 br0 direct 02:00:46 diff --git a/test/case/statd/containers/cli/show-routing-table_--ip_ipv6 b/test/case/statd/containers/cli/show-routing-table_--ip_ipv6 new file mode 100644 index 00000000..4006d7cf --- /dev/null +++ b/test/case/statd/containers/cli/show-routing-table_--ip_ipv6 @@ -0,0 +1,7 @@ + DESTINATION PREF NEXT-HOP PROTO UPTIME + * fe80::/64 0/0 e6 direct 02:00:50 + * fe80::/64 0/0 br0 direct 02:00:50 + * fe80::/64 0/0 e5 direct 03:54:57 + * fe80::/64 0/0 e7 direct 03:54:57 + * fe80::/64 0/0 e2 direct 03:54:57 +>* fe80::/64 0/0 e1 direct 03:54:57 diff --git a/test/case/statd/containers/ietf-interfaces.json b/test/case/statd/containers/ietf-interfaces.json new file mode 100644 index 00000000..2142b735 --- /dev/null +++ b/test/case/statd/containers/ietf-interfaces.json @@ -0,0 +1,642 @@ +{ + "ietf-interfaces:interfaces": { + "interface": [ + { + "type": "infix-if-type:loopback", + "name": "lo", + "if-index": 1, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:00:00:00:00:00", + "statistics": { + "in-octets": "72275", + "out-octets": "72275" + }, + "ietf-ip:ipv4": { + "address": [ + { + "ip": "127.0.0.1", + "prefix-length": 8, + "origin": "static" + } + ] + }, + "ietf-ip:ipv6": { + "mtu": 65536, + "address": [ + { + "ip": "::1", + "prefix-length": 128, + "origin": "static" + } + ] + } + }, + { + "type": "infix-if-type:etherlike", + "name": "e1", + "if-index": 2, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:01", + "statistics": { + "in-octets": "5166282", + "out-octets": "7407399" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:301", + "prefix-length": 64, + "origin": "link-layer" + } + ] + } + }, + { + "type": "infix-if-type:etherlike", + "name": "e2", + "if-index": 3, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:02", + "statistics": { + "out-octets": "79382" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:302", + "prefix-length": 64, + "origin": "link-layer" + } + ] + } + }, + { + "type": "infix-if-type:etherlike", + "name": "e3", + "if-index": 4, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:03", + "statistics": { + "in-octets": "23589", + "out-octets": "208789" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:bridge-port": { + "pvid": 1, + "bridge": "br0", + "flood": { + "broadcast": true, + "unicast": true, + "multicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "stp-state": "forwarding" + } + }, + { + "type": "infix-if-type:etherlike", + "name": "e4", + "if-index": 5, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:04", + "statistics": { + "in-octets": "30583", + "out-octets": "206341" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:bridge-port": { + "pvid": 1, + "bridge": "br0", + "flood": { + "broadcast": true, + "unicast": true, + "multicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "stp-state": "forwarding" + } + }, + { + "type": "infix-if-type:etherlike", + "name": "e5", + "if-index": 6, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:05", + "statistics": { + "in-octets": "66626", + "out-octets": "83465" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:305", + "prefix-length": 64, + "origin": "link-layer" + } + ] + } + }, + { + "type": "infix-if-type:etherlike", + "name": "e6", + "if-index": 7, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:06", + "statistics": { + "in-octets": "134367", + "out-octets": "184122" + }, + "ietf-ip:ipv4": { + "mtu": 1500, + "address": [ + { + "ip": "10.1.1.101", + "prefix-length": 24, + "origin": "static" + } + ] + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:306", + "prefix-length": 64, + "origin": "link-layer" + } + ] + } + }, + { + "type": "infix-if-type:etherlike", + "name": "e7", + "if-index": 8, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:07", + "statistics": { + "in-octets": "70368", + "out-octets": "86243" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:307", + "prefix-length": 64, + "origin": "link-layer" + } + ] + } + }, + { + "type": "infix-if-type:veth", + "name": "veth0b", + "if-index": 22, + "admin-status": "up", + "oper-status": "up", + "phys-address": "c2:61:ae:82:0a:c1", + "statistics": { + "in-octets": "1583", + "out-octets": "28383" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:bridge-port": { + "pvid": 1, + "bridge": "br0", + "flood": { + "broadcast": true, + "unicast": true, + "multicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "stp-state": "forwarding" + } + }, + { + "type": "infix-if-type:veth", + "name": "veth2b", + "if-index": 24, + "admin-status": "up", + "oper-status": "up", + "phys-address": "96:8b:c6:17:74:d3", + "statistics": { + "in-octets": "796", + "out-octets": "28028" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:bridge-port": { + "pvid": 1, + "bridge": "br0", + "flood": { + "broadcast": true, + "unicast": true, + "multicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "stp-state": "forwarding" + } + }, + { + "type": "infix-if-type:bridge", + "name": "br0", + "if-index": 25, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:00", + "statistics": { + "in-octets": "3285", + "out-octets": "28281" + }, + "ietf-ip:ipv4": { + "mtu": 1500, + "address": [ + { + "ip": "169.254.1.1", + "prefix-length": 16, + "origin": "random" + } + ] + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:300", + "prefix-length": 64, + "origin": "link-layer" + } + ] + }, + "infix-interfaces:bridge": { + "vlans": { + "proto": "ieee802-dot1q-types:c-vlan", + "vlan": [ + { + "vid": 1, + "untagged": [ + "br0", + "e3", + "e4", + "veth0b", + "veth2b" + ], + "tagged": [], + "multicast": { + "snooping": true, + "querier": "off" + }, + "multicast-filters": { + "multicast-filter": [] + } + } + ] + } + }, + "infix-interfaces:bridge-port": { + "pvid": 1 + } + }, + { + "type": "infix-if-type:veth", + "name": "veth1b", + "if-index": 27, + "admin-status": "up", + "oper-status": "up", + "phys-address": "e6:c6:34:dc:b9:f4", + "statistics": { + "in-octets": "796" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:bridge-port": { + "pvid": 6, + "bridge": "br1", + "flood": { + "broadcast": true, + "unicast": true, + "multicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "stp-state": "forwarding" + } + }, + { + "type": "infix-if-type:veth", + "name": "veth3b", + "if-index": 29, + "admin-status": "up", + "oper-status": "up", + "phys-address": "0e:c3:01:d6:e6:ea", + "statistics": { + "in-octets": "796" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:bridge-port": { + "bridge": "br1", + "flood": { + "broadcast": true, + "unicast": true, + "multicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "stp-state": "forwarding" + } + }, + { + "type": "infix-if-type:bridge", + "name": "br1", + "if-index": 30, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:00", + "statistics": { + "in-octets": "656" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:bridge": { + "vlans": { + "proto": "ieee802-dot1q-types:c-vlan", + "vlan": [ + { + "vid": 6, + "untagged": [ + "veth1b" + ], + "tagged": [], + "multicast": { + "snooping": true, + "querier": "off" + }, + "multicast-filters": { + "multicast-filter": [] + } + } + ] + } + } + }, + { + "type": "infix-if-type:vlan", + "name": "e3.8", + "if-index": 31, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:03", + "statistics": { + "in-octets": "5005", + "out-octets": "16009" + }, + "ietf-ip:ipv4": { + "mtu": 1500, + "address": [ + { + "ip": "10.1.1.1", + "prefix-length": 32, + "origin": "static" + } + ] + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:vlan": { + "tag-type": "ieee802-dot1q-types:c-vlan", + "id": 8, + "lower-layer-if": "e3" + } + }, + { + "type": "infix-if-type:vlan", + "name": "e4.8", + "if-index": 32, + "admin-status": "up", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:04", + "statistics": { + "in-octets": "15080", + "out-octets": "15546" + }, + "ietf-ip:ipv4": { + "mtu": 1500, + "address": [ + { + "ip": "10.1.1.1", + "prefix-length": 32, + "origin": "static" + } + ] + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "infix-interfaces:vlan": { + "tag-type": "ieee802-dot1q-types:c-vlan", + "id": 8, + "lower-layer-if": "e4" + } + }, + { + "type": "infix-if-type:veth", + "name": "veth2a", + "if-index": 23, + "admin-status": "up", + "oper-status": "up", + "description": "eth0", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "in-octets": "28028", + "out-octets": "796" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "prefix-length": 64, + "origin": "link-layer" + } + ] + }, + "infix-interfaces:container-network": { + "containers": [ + "container-B" + ] + } + }, + { + "type": "infix-if-type:veth", + "name": "veth3a", + "if-index": 28, + "admin-status": "up", + "oper-status": "up", + "description": "eth1", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "out-octets": "796" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "prefix-length": 64, + "origin": "link-layer" + } + ] + }, + "infix-interfaces:container-network": { + "containers": [ + "container-B" + ] + } + }, + { + "type": "infix-if-type:veth", + "name": "veth0a", + "if-index": 21, + "admin-status": "up", + "oper-status": "up", + "description": "br0", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "in-octets": "28425", + "out-octets": "1625" + }, + "ietf-ip:ipv4": { + "mtu": 1500, + "address": [ + { + "ip": "169.254.1.2", + "prefix-length": 16, + "origin": "other" + } + ] + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "prefix-length": 64, + "origin": "link-layer" + } + ] + }, + "infix-interfaces:container-network": { + "containers": [ + "container-A" + ] + } + }, + { + "type": "infix-if-type:veth", + "name": "veth1a", + "if-index": 26, + "admin-status": "up", + "oper-status": "up", + "description": "br1", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "out-octets": "796" + }, + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500, + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "prefix-length": 64, + "origin": "link-layer" + } + ] + }, + "infix-interfaces:container-network": { + "containers": [ + "container-A" + ] + } + } + ] + } +} diff --git a/test/case/statd/containers/ietf-ospf.json b/test/case/statd/containers/ietf-ospf.json new file mode 100644 index 00000000..e1718903 --- /dev/null +++ b/test/case/statd/containers/ietf-ospf.json @@ -0,0 +1,139 @@ +{ + "ietf-routing:routing": { + "control-plane-protocols": { + "control-plane-protocol": [ + { + "type": "infix-routing:ospfv2", + "name": "default", + "ietf-ospf:ospf": { + "ietf-ospf:areas": { + "ietf-ospf:area": [ + { + "ietf-ospf:area-id": "0.0.0.1", + "ietf-ospf:interfaces": { + "ietf-ospf:interface": [ + { + "ietf-ospf:neighbors": { + "ietf-ospf:neighbor": [ + { + "neighbor-router-id": "10.1.2.1", + "address": "10.1.2.1", + "dead-timer": 25130, + "state": "full" + } + ] + }, + "name": "e3.8", + "passive": false, + "enabled": true, + "interface-type": "point-to-point", + "state": "point-to-point" + }, + { + "ietf-ospf:neighbors": { + "ietf-ospf:neighbor": [ + { + "neighbor-router-id": "10.1.3.1", + "address": "10.1.3.1", + "dead-timer": 25210, + "state": "full" + } + ] + }, + "name": "e4.8", + "passive": false, + "enabled": true, + "interface-type": "point-to-point", + "state": "point-to-point" + }, + { + "ietf-ospf:neighbors": { + "ietf-ospf:neighbor": [ + { + "neighbor-router-id": "192.168.100.1", + "address": "10.1.1.100", + "dead-timer": 34600, + "state": "full", + "dr-router-id": "192.168.100.1", + "bdr-router-id": "10.1.1.1" + } + ] + }, + "name": "e6", + "dr-router-id": "192.168.100.1", + "dr-ip-addr": "10.1.1.100", + "bdr-router-id": "10.1.1.1", + "bdr-ip-addr": "10.1.1.101", + "passive": false, + "enabled": true, + "interface-type": "broadcast", + "state": "bdr" + } + ] + }, + "ietf-ospf:area-type": "nssa-area" + } + ] + }, + "ietf-ospf:router-id": "10.1.1.1", + "ietf-ospf:address-family": "ipv4", + "ietf-ospf:local-rib": { + "ietf-ospf:route": [ + { + "prefix": "0.0.0.0/0", + "route-type": "inter-area", + "next-hops": { + "next-hop": [ + { + "next-hop": "10.1.1.100" + } + ] + } + }, + { + "prefix": "10.1.1.0/24", + "route-type": "intra-area", + "next-hops": { + "next-hop": [ + { + "outgoing-interface": "e6" + } + ] + } + }, + { + "prefix": "10.1.2.0/24", + "route-type": "intra-area", + "next-hops": { + "next-hop": [ + { + "next-hop": "10.1.1.100" + }, + { + "next-hop": "10.1.2.1" + } + ] + } + }, + { + "prefix": "10.1.3.0/24", + "route-type": "intra-area", + "next-hops": { + "next-hop": [ + { + "next-hop": "10.1.1.100" + }, + { + "next-hop": "10.1.3.1" + } + ] + } + } + ] + } + } + } + ] + } + } +} diff --git a/test/case/statd/containers/ietf-routing.json b/test/case/statd/containers/ietf-routing.json new file mode 100644 index 00000000..33e512c1 --- /dev/null +++ b/test/case/statd/containers/ietf-routing.json @@ -0,0 +1,325 @@ +{ + "ietf-routing:routing": { + "ribs": { + "rib": [ + { + "name": "ipv4", + "address-family": "ipv4", + "routes": { + "route": [ + { + "ietf-ipv4-unicast-routing:destination-prefix": "0.0.0.0/0", + "source-protocol": "ietf-ospf:ospfv2", + "route-preference": 110, + "ietf-ospf:metric": 2, + "active": [ + null + ], + "last-updated": "2025-01-20T10:00:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "ietf-ipv4-unicast-routing:address": "10.1.1.100", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "0.0.0.0/0", + "source-protocol": "static", + "route-preference": 254, + "last-updated": "2025-01-20T09:59:23+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "br0" + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.0/24", + "source-protocol": "ietf-ospf:ospfv2", + "route-preference": 110, + "ietf-ospf:metric": 1, + "last-updated": "2025-01-20T09:59:53+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e6" + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.0/24", + "source-protocol": "direct", + "route-preference": 0, + "active": [ + null + ], + "last-updated": "2025-01-20T09:59:09+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e6", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.1/32", + "source-protocol": "direct", + "route-preference": 0, + "last-updated": "2025-01-20T09:59:08+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e4.8", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.1/32", + "source-protocol": "direct", + "route-preference": 0, + "active": [ + null + ], + "last-updated": "2025-01-20T09:59:08+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e3.8", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.2.0/24", + "source-protocol": "ietf-ospf:ospfv2", + "route-preference": 110, + "ietf-ospf:metric": 2, + "active": [ + null + ], + "last-updated": "2025-01-20T10:00:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "ietf-ipv4-unicast-routing:address": "10.1.1.100", + "infix-routing:installed": [ + null + ] + }, + { + "ietf-ipv4-unicast-routing:address": "10.1.2.1", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.3.0/24", + "source-protocol": "ietf-ospf:ospfv2", + "route-preference": 110, + "ietf-ospf:metric": 2, + "active": [ + null + ], + "last-updated": "2025-01-20T10:00:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "ietf-ipv4-unicast-routing:address": "10.1.1.100", + "infix-routing:installed": [ + null + ] + }, + { + "ietf-ipv4-unicast-routing:address": "10.1.3.1", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "169.254.0.0/16", + "source-protocol": "direct", + "route-preference": 0, + "active": [ + null + ], + "last-updated": "2025-01-20T09:59:14+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "br0", + "infix-routing:installed": [ + null + ] + } + ] + } + } + } + ] + } + }, + { + "name": "ipv6", + "address-family": "ipv6", + "routes": { + "route": [ + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "source-protocol": "direct", + "route-preference": 0, + "last-updated": "2025-01-20T09:59:10+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e6", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "source-protocol": "direct", + "route-preference": 0, + "last-updated": "2025-01-20T09:59:10+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "br0", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "source-protocol": "direct", + "route-preference": 0, + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e5", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "source-protocol": "direct", + "route-preference": 0, + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e7", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "source-protocol": "direct", + "route-preference": 0, + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e2", + "infix-routing:installed": [ + null + ] + } + ] + } + } + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "source-protocol": "direct", + "route-preference": 0, + "active": [ + null + ], + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e1", + "infix-routing:installed": [ + null + ] + } + ] + } + } + } + ] + } + } + ] + } + } +} diff --git a/test/case/statd/containers/infix-containers.json b/test/case/statd/containers/infix-containers.json new file mode 100644 index 00000000..0335149d --- /dev/null +++ b/test/case/statd/containers/infix-containers.json @@ -0,0 +1,60 @@ +{ + "infix-containers:containers": { + "container": [ + { + "name": "container-B", + "id": "0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3", + "image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "image-id": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "running": true, + "status": "Up About a minute", + "command": "/usr/sbin/httpd -f -v", + "network": { + "interface": [ + { + "name": "veth2a" + }, + { + "name": "veth3a" + } + ], + "publish": [] + } + }, + { + "name": "firewall", + "id": "3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8", + "image": "localhost/curios-nftables-oci-amd64-v24.11.0:latest", + "image-id": "7a3cc502436250357a6664100a600f306334b4d7203890b85b7ea9b8da6b5665", + "running": true, + "status": "Up About a minute", + "command": "/usr/sbin/nft-helper /etc/nftables.conf", + "network": { + "host": true + } + }, + { + "name": "container-A", + "id": "93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e", + "image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "image-id": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "running": true, + "status": "Up About a minute", + "command": "/usr/sbin/httpd -f -v -p 91", + "network": { + "interface": [ + { + "name": "veth0a" + }, + { + "name": "veth1a" + } + ], + "publish": [ + "36971->91/tcp" + ] + } + } + ] + } +} diff --git a/test/case/statd/containers/operational.json b/test/case/statd/containers/operational.json new file mode 100644 index 00000000..37803c41 --- /dev/null +++ b/test/case/statd/containers/operational.json @@ -0,0 +1,1158 @@ +{ + "ietf-interfaces:interfaces": { + "interface": [ + { + "admin-status": "up", + "ietf-ip:ipv4": { + "address": [ + { + "ip": "127.0.0.1", + "origin": "static", + "prefix-length": 8 + } + ] + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "::1", + "origin": "static", + "prefix-length": 128 + } + ], + "mtu": 65536 + }, + "if-index": 1, + "name": "lo", + "oper-status": "up", + "phys-address": "00:00:00:00:00:00", + "statistics": { + "in-octets": "72275", + "out-octets": "72275" + }, + "type": "infix-if-type:loopback" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:301", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 2, + "name": "e1", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:01", + "statistics": { + "in-octets": "5166282", + "out-octets": "7407399" + }, + "type": "infix-if-type:etherlike" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:302", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 3, + "name": "e2", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:02", + "statistics": { + "out-octets": "79382" + }, + "type": "infix-if-type:etherlike" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 4, + "infix-interfaces:bridge-port": { + "bridge": "br0", + "flood": { + "broadcast": true, + "multicast": true, + "unicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "pvid": 1, + "stp-state": "forwarding" + }, + "name": "e3", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:03", + "statistics": { + "in-octets": "23589", + "out-octets": "208789" + }, + "type": "infix-if-type:etherlike" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 5, + "infix-interfaces:bridge-port": { + "bridge": "br0", + "flood": { + "broadcast": true, + "multicast": true, + "unicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "pvid": 1, + "stp-state": "forwarding" + }, + "name": "e4", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:04", + "statistics": { + "in-octets": "30583", + "out-octets": "206341" + }, + "type": "infix-if-type:etherlike" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:305", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 6, + "name": "e5", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:05", + "statistics": { + "in-octets": "66626", + "out-octets": "83465" + }, + "type": "infix-if-type:etherlike" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "address": [ + { + "ip": "10.1.1.101", + "origin": "static", + "prefix-length": 24 + } + ], + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:306", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 7, + "name": "e6", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:06", + "statistics": { + "in-octets": "134367", + "out-octets": "184122" + }, + "type": "infix-if-type:etherlike" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:307", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 8, + "name": "e7", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:07", + "statistics": { + "in-octets": "70368", + "out-octets": "86243" + }, + "type": "infix-if-type:etherlike" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 22, + "infix-interfaces:bridge-port": { + "bridge": "br0", + "flood": { + "broadcast": true, + "multicast": true, + "unicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "pvid": 1, + "stp-state": "forwarding" + }, + "name": "veth0b", + "oper-status": "up", + "phys-address": "c2:61:ae:82:0a:c1", + "statistics": { + "in-octets": "1583", + "out-octets": "28383" + }, + "type": "infix-if-type:veth" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 24, + "infix-interfaces:bridge-port": { + "bridge": "br0", + "flood": { + "broadcast": true, + "multicast": true, + "unicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "pvid": 1, + "stp-state": "forwarding" + }, + "name": "veth2b", + "oper-status": "up", + "phys-address": "96:8b:c6:17:74:d3", + "statistics": { + "in-octets": "796", + "out-octets": "28028" + }, + "type": "infix-if-type:veth" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "address": [ + { + "ip": "169.254.1.1", + "origin": "random", + "prefix-length": 16 + } + ], + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::2a0:85ff:fe00:300", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 25, + "infix-interfaces:bridge": { + "vlans": { + "proto": "ieee802-dot1q-types:c-vlan", + "vlan": [ + { + "multicast": { + "querier": "off", + "snooping": true + }, + "multicast-filters": { + "multicast-filter": [] + }, + "tagged": [], + "untagged": [ + "br0", + "e3", + "e4", + "veth0b", + "veth2b" + ], + "vid": 1 + } + ] + } + }, + "infix-interfaces:bridge-port": { + "pvid": 1 + }, + "name": "br0", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:00", + "statistics": { + "in-octets": "3285", + "out-octets": "28281" + }, + "type": "infix-if-type:bridge" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 27, + "infix-interfaces:bridge-port": { + "bridge": "br1", + "flood": { + "broadcast": true, + "multicast": true, + "unicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "pvid": 6, + "stp-state": "forwarding" + }, + "name": "veth1b", + "oper-status": "up", + "phys-address": "e6:c6:34:dc:b9:f4", + "statistics": { + "in-octets": "796" + }, + "type": "infix-if-type:veth" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 29, + "infix-interfaces:bridge-port": { + "bridge": "br1", + "flood": { + "broadcast": true, + "multicast": true, + "unicast": true + }, + "multicast": { + "fast-leave": false, + "router": "auto" + }, + "stp-state": "forwarding" + }, + "name": "veth3b", + "oper-status": "up", + "phys-address": "0e:c3:01:d6:e6:ea", + "statistics": { + "in-octets": "796" + }, + "type": "infix-if-type:veth" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 30, + "infix-interfaces:bridge": { + "vlans": { + "proto": "ieee802-dot1q-types:c-vlan", + "vlan": [ + { + "multicast": { + "querier": "off", + "snooping": true + }, + "multicast-filters": { + "multicast-filter": [] + }, + "tagged": [], + "untagged": [ + "veth1b" + ], + "vid": 6 + } + ] + } + }, + "name": "br1", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:00", + "statistics": { + "in-octets": "656" + }, + "type": "infix-if-type:bridge" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "address": [ + { + "ip": "10.1.1.1", + "origin": "static", + "prefix-length": 32 + } + ], + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 31, + "infix-interfaces:vlan": { + "id": 8, + "lower-layer-if": "e3", + "tag-type": "ieee802-dot1q-types:c-vlan" + }, + "name": "e3.8", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:03", + "statistics": { + "in-octets": "5005", + "out-octets": "16009" + }, + "type": "infix-if-type:vlan" + }, + { + "admin-status": "up", + "ietf-ip:ipv4": { + "address": [ + { + "ip": "10.1.1.1", + "origin": "static", + "prefix-length": 32 + } + ], + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "mtu": 1500 + }, + "if-index": 32, + "infix-interfaces:vlan": { + "id": 8, + "lower-layer-if": "e4", + "tag-type": "ieee802-dot1q-types:c-vlan" + }, + "name": "e4.8", + "oper-status": "up", + "phys-address": "00:a0:85:00:03:04", + "statistics": { + "in-octets": "15080", + "out-octets": "15546" + }, + "type": "infix-if-type:vlan" + }, + { + "admin-status": "up", + "description": "eth0", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "origin": "link-layer", + "prefix-length": 64 + } + ] + }, + "if-index": 23, + "infix-interfaces:container-network": { + "containers": [ + "container-B" + ] + }, + "name": "veth2a", + "oper-status": "up", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "in-octets": "28028", + "out-octets": "796" + }, + "type": "infix-if-type:veth" + }, + { + "admin-status": "up", + "description": "eth1", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "origin": "link-layer", + "prefix-length": 64 + } + ] + }, + "if-index": 28, + "infix-interfaces:container-network": { + "containers": [ + "container-B" + ] + }, + "name": "veth3a", + "oper-status": "up", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "out-octets": "796" + }, + "type": "infix-if-type:veth" + }, + { + "admin-status": "up", + "description": "br0", + "ietf-ip:ipv4": { + "address": [ + { + "ip": "169.254.1.2", + "origin": "other", + "prefix-length": 16 + } + ], + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 21, + "infix-interfaces:container-network": { + "containers": [ + "container-A" + ] + }, + "name": "veth0a", + "oper-status": "up", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "in-octets": "28425", + "out-octets": "1625" + }, + "type": "infix-if-type:veth" + }, + { + "admin-status": "up", + "description": "br1", + "ietf-ip:ipv4": { + "mtu": 1500 + }, + "ietf-ip:ipv6": { + "address": [ + { + "ip": "fe80::4a0:85ff:fe00:300", + "origin": "link-layer", + "prefix-length": 64 + } + ], + "mtu": 1500 + }, + "if-index": 26, + "infix-interfaces:container-network": { + "containers": [ + "container-A" + ] + }, + "name": "veth1a", + "oper-status": "up", + "phys-address": "06:a0:85:00:03:00", + "statistics": { + "out-octets": "796" + }, + "type": "infix-if-type:veth" + } + ] + }, + "ietf-routing:routing": { + "control-plane-protocols": { + "control-plane-protocol": [ + { + "ietf-ospf:ospf": { + "ietf-ospf:address-family": "ipv4", + "ietf-ospf:areas": { + "ietf-ospf:area": [ + { + "ietf-ospf:area-id": "0.0.0.1", + "ietf-ospf:area-type": "nssa-area", + "ietf-ospf:interfaces": { + "ietf-ospf:interface": [ + { + "enabled": true, + "ietf-ospf:neighbors": { + "ietf-ospf:neighbor": [ + { + "address": "10.1.2.1", + "dead-timer": 25130, + "neighbor-router-id": "10.1.2.1", + "state": "full" + } + ] + }, + "interface-type": "point-to-point", + "name": "e3.8", + "passive": false, + "state": "point-to-point" + }, + { + "enabled": true, + "ietf-ospf:neighbors": { + "ietf-ospf:neighbor": [ + { + "address": "10.1.3.1", + "dead-timer": 25210, + "neighbor-router-id": "10.1.3.1", + "state": "full" + } + ] + }, + "interface-type": "point-to-point", + "name": "e4.8", + "passive": false, + "state": "point-to-point" + }, + { + "bdr-ip-addr": "10.1.1.101", + "bdr-router-id": "10.1.1.1", + "dr-ip-addr": "10.1.1.100", + "dr-router-id": "192.168.100.1", + "enabled": true, + "ietf-ospf:neighbors": { + "ietf-ospf:neighbor": [ + { + "address": "10.1.1.100", + "bdr-router-id": "10.1.1.1", + "dead-timer": 34600, + "dr-router-id": "192.168.100.1", + "neighbor-router-id": "192.168.100.1", + "state": "full" + } + ] + }, + "interface-type": "broadcast", + "name": "e6", + "passive": false, + "state": "bdr" + } + ] + } + } + ] + }, + "ietf-ospf:local-rib": { + "ietf-ospf:route": [ + { + "next-hops": { + "next-hop": [ + { + "next-hop": "10.1.1.100" + } + ] + }, + "prefix": "0.0.0.0/0", + "route-type": "inter-area" + }, + { + "next-hops": { + "next-hop": [ + { + "outgoing-interface": "e6" + } + ] + }, + "prefix": "10.1.1.0/24", + "route-type": "intra-area" + }, + { + "next-hops": { + "next-hop": [ + { + "next-hop": "10.1.1.100" + }, + { + "next-hop": "10.1.2.1" + } + ] + }, + "prefix": "10.1.2.0/24", + "route-type": "intra-area" + }, + { + "next-hops": { + "next-hop": [ + { + "next-hop": "10.1.1.100" + }, + { + "next-hop": "10.1.3.1" + } + ] + }, + "prefix": "10.1.3.0/24", + "route-type": "intra-area" + } + ] + }, + "ietf-ospf:router-id": "10.1.1.1" + }, + "name": "default", + "type": "infix-routing:ospfv2" + } + ] + }, + "ribs": { + "rib": [ + { + "address-family": "ipv4", + "name": "ipv4", + "routes": { + "route": [ + { + "active": [ + null + ], + "ietf-ipv4-unicast-routing:destination-prefix": "0.0.0.0/0", + "ietf-ospf:metric": 2, + "last-updated": "2025-01-20T10:00:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "ietf-ipv4-unicast-routing:address": "10.1.1.100", + "infix-routing:installed": [ + null + ] + } + ] + } + }, + "route-preference": 110, + "source-protocol": "ietf-ospf:ospfv2" + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "0.0.0.0/0", + "last-updated": "2025-01-20T09:59:23+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "br0" + } + ] + } + }, + "route-preference": 254, + "source-protocol": "static" + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.0/24", + "ietf-ospf:metric": 1, + "last-updated": "2025-01-20T09:59:53+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "outgoing-interface": "e6" + } + ] + } + }, + "route-preference": 110, + "source-protocol": "ietf-ospf:ospfv2" + }, + { + "active": [ + null + ], + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.0/24", + "last-updated": "2025-01-20T09:59:09+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e6" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.1/32", + "last-updated": "2025-01-20T09:59:08+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e4.8" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "active": [ + null + ], + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.1.1/32", + "last-updated": "2025-01-20T09:59:08+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e3.8" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "active": [ + null + ], + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.2.0/24", + "ietf-ospf:metric": 2, + "last-updated": "2025-01-20T10:00:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "ietf-ipv4-unicast-routing:address": "10.1.1.100", + "infix-routing:installed": [ + null + ] + }, + { + "ietf-ipv4-unicast-routing:address": "10.1.2.1", + "infix-routing:installed": [ + null + ] + } + ] + } + }, + "route-preference": 110, + "source-protocol": "ietf-ospf:ospfv2" + }, + { + "active": [ + null + ], + "ietf-ipv4-unicast-routing:destination-prefix": "10.1.3.0/24", + "ietf-ospf:metric": 2, + "last-updated": "2025-01-20T10:00:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "ietf-ipv4-unicast-routing:address": "10.1.1.100", + "infix-routing:installed": [ + null + ] + }, + { + "ietf-ipv4-unicast-routing:address": "10.1.3.1", + "infix-routing:installed": [ + null + ] + } + ] + } + }, + "route-preference": 110, + "source-protocol": "ietf-ospf:ospfv2" + }, + { + "active": [ + null + ], + "ietf-ipv4-unicast-routing:destination-prefix": "169.254.0.0/16", + "last-updated": "2025-01-20T09:59:14+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "br0" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + } + ] + } + }, + { + "address-family": "ipv6", + "name": "ipv6", + "routes": { + "route": [ + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "last-updated": "2025-01-20T09:59:10+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e6" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "last-updated": "2025-01-20T09:59:10+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "br0" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e5" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e7" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e2" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + }, + { + "active": [ + null + ], + "ietf-ipv6-unicast-routing:destination-prefix": "fe80::/64", + "last-updated": "2025-01-20T08:05:03+00:00", + "next-hop": { + "next-hop-list": { + "next-hop": [ + { + "infix-routing:installed": [ + null + ], + "outgoing-interface": "e1" + } + ] + } + }, + "route-preference": 0, + "source-protocol": "direct" + } + ] + } + } + ] + } + }, + "infix-containers:containers": { + "container": [ + { + "command": "/usr/sbin/httpd -f -v", + "id": "0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3", + "image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "image-id": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "name": "container-B", + "network": { + "interface": [ + { + "name": "veth2a" + }, + { + "name": "veth3a" + } + ], + "publish": [] + }, + "running": true, + "status": "Up About a minute" + }, + { + "command": "/usr/sbin/nft-helper /etc/nftables.conf", + "id": "3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8", + "image": "localhost/curios-nftables-oci-amd64-v24.11.0:latest", + "image-id": "7a3cc502436250357a6664100a600f306334b4d7203890b85b7ea9b8da6b5665", + "name": "firewall", + "network": { + "host": true + }, + "running": true, + "status": "Up About a minute" + }, + { + "command": "/usr/sbin/httpd -f -v -p 91", + "id": "93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e", + "image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "image-id": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "name": "container-A", + "network": { + "interface": [ + { + "name": "veth0a" + }, + { + "name": "veth1a" + } + ], + "publish": [ + "36971->91/tcp" + ] + }, + "running": true, + "status": "Up About a minute" + } + ] + } +} diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/br0/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/br0/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/br0/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/br1/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/br1/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/br1/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e1/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e1/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e1/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e2/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e2/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e2/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e3.8/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e3.8/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e3.8/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e3/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e3/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e3/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e4.8/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e4.8/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e4.8/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e4/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e4/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e4/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e5/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e5/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e5/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e6/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e6/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e6/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e7/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e7/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/e7/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/eth0/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/eth0/mtu new file mode 100644 index 00000000..e69de29b diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/eth1/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/eth1/mtu new file mode 100644 index 00000000..e69de29b diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/lo/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/lo/mtu new file mode 100644 index 00000000..e2ed8f4d --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/lo/mtu @@ -0,0 +1 @@ +65536 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth0b/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth0b/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth0b/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth1b/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth1b/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth1b/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth2b/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth2b/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth2b/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth3b/mtu b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth3b/mtu new file mode 100644 index 00000000..3d86ec64 --- /dev/null +++ b/test/case/statd/containers/system/rootfs/proc/sys/net/ipv6/conf/veth3b/mtu @@ -0,0 +1 @@ +1500 diff --git a/test/case/statd/containers/system/run/+usr+libexec+statd+ospf-status b/test/case/statd/containers/system/run/+usr+libexec+statd+ospf-status new file mode 100644 index 00000000..09c69a65 --- /dev/null +++ b/test/case/statd/containers/system/run/+usr+libexec+statd+ospf-status @@ -0,0 +1 @@ +{"routerId": "10.1.1.1", "tosRoutesOnly": true, "rfc2328Conform": true, "spfScheduleDelayMsecs": 0, "holdtimeMinMsecs": 50, "holdtimeMaxMsecs": 5000, "holdtimeMultplier": 1, "spfLastExecutedMsecs": 40359, "spfLastDurationMsecs": 0, "lsaMinIntervalMsecs": 5000, "lsaMinArrivalMsecs": 1000, "writeMultiplier": 20, "refreshTimerMsecs": 10000, "maximumPaths": 256, "preference": 110, "lsaExternalCounter": 0, "lsaExternalChecksum": 0, "lsaAsopaqueCounter": 0, "lsaAsOpaqueChecksum": 0, "attachedAreaCounter": 1, "areas": {"0.0.0.1": {"nssaNoSummary": true, "shortcuttingMode": "Default", "areaIfTotalCounter": 3, "areaIfActiveCounter": 3, "nssa": true, "abr": false, "nbrFullAdjacentCounter": 3, "authentication": "authenticationNone", "virtualAdjacenciesPassingCounter": 0, "spfExecutedCounter": 9, "lsaNumber": 8, "lsaRouterNumber": 4, "lsaRouterChecksum": 183702, "lsaNetworkNumber": 3, "lsaNetworkChecksum": 101910, "lsaSummaryNumber": 1, "lsaSummaryChecksum": 49868, "lsaAsbrNumber": 0, "lsaAsbrChecksum": 0, "lsaNssaNumber": 0, "lsaNssaChecksum": 0, "lsaOpaqueLinkNumber": 0, "lsaOpaqueLinkChecksum": 0, "lsaOpaqueAreaNumber": 0, "lsaOpaqueAreaChecksum": 0, "area-type": "nssa-area", "interfaces": [{"ifUp": true, "ifIndex": 31, "mtuBytes": 1500, "bandwidthMbit": 4294967295, "ifFlags": "", "ospfEnabled": true, "interfaceIp": {"10.1.1.1": {"ifUnnumbered": true, "area": "0.0.0.1 [NSSA]", "routerId": "10.1.1.1", "networkType": "POINTOPOINT", "cost": 1, "transmitDelaySecs": 1, "state": "Point-To-Point", "priority": 1, "mcastMemberOspfAllRouters": true, "timerMsecs": 10000, "timerDeadSecs": 40, "timerWaitSecs": 40, "timerRetransmitSecs": 5, "timerHelloInMsecs": 5236, "nbrCount": 1, "nbrAdjacentCount": 1, "grHelloDelaySecs": 10, "prefixSuppression": false}}, "ifUnnumbered": true, "area": "0.0.0.1", "routerId": "10.1.1.1", "networkType": "POINTOPOINT", "cost": 1, "transmitDelaySecs": 1, "state": "Point-To-Point", "priority": 1, "opaqueCapable": true, "mcastMemberOspfAllRouters": true, "timerMsecs": 10000, "timerDeadSecs": 40, "timerWaitSecs": 40, "timerRetransmitSecs": 5, "timerHelloInMsecs": 5236, "nbrCount": 1, "nbrAdjacentCount": 1, "grHelloDelaySecs": 10, "prefixSuppression": false, "name": "e3.8", "neighbors": [{"ifaceAddress": "10.1.2.1", "areaId": "0.0.0.1", "ifaceName": "e3.8", "localIfaceAddress": "10.1.1.1", "nbrPriority": 1, "nbrState": "Full/-", "role": "DROther", "stateChangeCounter": 5, "lastPrgrsvChangeMsec": 84809, "optionsCounter": 8, "optionsList": "*|-|-|-|N/P|-|-|-", "routerDeadIntervalTimerDueMsec": 25130, "databaseSummaryListCounter": 0, "linkStateRequestListCounter": 0, "linkStateRetransmissionListCounter": 0, "threadInactivityTimer": "on", "threadLinkStateRequestRetransmission": "on", "threadLinkStateUpdateRetransmission": "on", "grHelperStatus": "None", "neighborIp": "10.1.2.1"}]}, {"ifUp": true, "ifIndex": 32, "mtuBytes": 1500, "bandwidthMbit": 4294967295, "ifFlags": "", "ospfEnabled": true, "interfaceIp": {"10.1.1.1": {"ifUnnumbered": true, "area": "0.0.0.1 [NSSA]", "routerId": "10.1.1.1", "networkType": "POINTOPOINT", "cost": 1, "transmitDelaySecs": 1, "state": "Point-To-Point", "priority": 1, "mcastMemberOspfAllRouters": true, "timerMsecs": 10000, "timerDeadSecs": 40, "timerWaitSecs": 40, "timerRetransmitSecs": 5, "timerHelloInMsecs": 5242, "nbrCount": 1, "nbrAdjacentCount": 1, "grHelloDelaySecs": 10, "prefixSuppression": false}}, "ifUnnumbered": true, "area": "0.0.0.1", "routerId": "10.1.1.1", "networkType": "POINTOPOINT", "cost": 1, "transmitDelaySecs": 1, "state": "Point-To-Point", "priority": 1, "opaqueCapable": true, "mcastMemberOspfAllRouters": true, "timerMsecs": 10000, "timerDeadSecs": 40, "timerWaitSecs": 40, "timerRetransmitSecs": 5, "timerHelloInMsecs": 5242, "nbrCount": 1, "nbrAdjacentCount": 1, "grHelloDelaySecs": 10, "prefixSuppression": false, "name": "e4.8", "neighbors": [{"ifaceAddress": "10.1.3.1", "areaId": "0.0.0.1", "ifaceName": "e4.8", "localIfaceAddress": "10.1.1.1", "nbrPriority": 1, "nbrState": "Full/-", "role": "DROther", "stateChangeCounter": 5, "lastPrgrsvChangeMsec": 84781, "optionsCounter": 8, "optionsList": "*|-|-|-|N/P|-|-|-", "routerDeadIntervalTimerDueMsec": 25210, "databaseSummaryListCounter": 0, "linkStateRequestListCounter": 0, "linkStateRetransmissionListCounter": 0, "threadInactivityTimer": "on", "threadLinkStateRequestRetransmission": "on", "threadLinkStateUpdateRetransmission": "on", "grHelperStatus": "None", "neighborIp": "10.1.3.1"}]}, {"ifUp": true, "ifIndex": 7, "mtuBytes": 1500, "bandwidthMbit": 4294967295, "ifFlags": "", "ospfEnabled": true, "interfaceIp": {"10.1.1.101": {"ipAddress": "10.1.1.101", "ipAddressPrefixlen": 24, "ospfIfType": "Broadcast", "localIfUsed": "10.1.1.255", "area": "0.0.0.1 [NSSA]", "routerId": "10.1.1.1", "networkType": "BROADCAST", "cost": 1, "transmitDelaySecs": 1, "state": "Backup", "priority": 1, "drId": "192.168.100.1", "drAddress": "10.1.1.100", "bdrId": "10.1.1.1", "bdrAddress": "10.1.1.101", "mcastMemberOspfAllRouters": true, "mcastMemberOspfDesignatedRouters": true, "timerMsecs": 10000, "timerDeadSecs": 40, "timerWaitSecs": 40, "timerRetransmitSecs": 5, "timerHelloInMsecs": 5567, "nbrCount": 1, "nbrAdjacentCount": 1, "grHelloDelaySecs": 10, "prefixSuppression": false}}, "ipAddress": "10.1.1.101", "ipAddressPrefixlen": 24, "ospfIfType": "Broadcast", "localIfUsed": "10.1.1.255", "area": "0.0.0.1", "routerId": "10.1.1.1", "networkType": "BROADCAST", "cost": 1, "transmitDelaySecs": 1, "state": "Backup", "priority": 1, "opaqueCapable": true, "drId": "192.168.100.1", "drAddress": "10.1.1.100", "bdrId": "10.1.1.1", "bdrAddress": "10.1.1.101", "mcastMemberOspfAllRouters": true, "mcastMemberOspfDesignatedRouters": true, "timerMsecs": 10000, "timerDeadSecs": 40, "timerWaitSecs": 40, "timerRetransmitSecs": 5, "timerHelloInMsecs": 5567, "nbrCount": 1, "nbrAdjacentCount": 1, "grHelloDelaySecs": 10, "prefixSuppression": false, "name": "e6", "neighbors": [{"ifaceAddress": "10.1.1.100", "areaId": "0.0.0.1", "ifaceName": "e6", "localIfaceAddress": "10.1.1.101", "nbrPriority": 1, "nbrState": "Full/DR", "role": "DR", "stateChangeCounter": 6, "lastPrgrsvChangeMsec": 50390, "routerDesignatedId": "192.168.100.1", "routerDesignatedBackupId": "10.1.1.1", "optionsCounter": 8, "optionsList": "*|-|-|-|N/P|-|-|-", "routerDeadIntervalTimerDueMsec": 34600, "databaseSummaryListCounter": 0, "linkStateRequestListCounter": 0, "linkStateRetransmissionListCounter": 0, "threadInactivityTimer": "on", "threadLinkStateRequestRetransmission": "on", "threadLinkStateUpdateRetransmission": "on", "grHelperStatus": "None", "neighborIp": "192.168.100.1"}]}]}}} diff --git a/test/case/statd/containers/system/run/bridge_-j_mdb_show_dev_br0_vid_1 b/test/case/statd/containers/system/run/bridge_-j_mdb_show_dev_br0_vid_1 new file mode 100644 index 00000000..b5d4f77e --- /dev/null +++ b/test/case/statd/containers/system/run/bridge_-j_mdb_show_dev_br0_vid_1 @@ -0,0 +1 @@ +[{"mdb":[],"router":{}}] diff --git a/test/case/statd/containers/system/run/bridge_-j_mdb_show_dev_br1_vid_6 b/test/case/statd/containers/system/run/bridge_-j_mdb_show_dev_br1_vid_6 new file mode 100644 index 00000000..b5d4f77e --- /dev/null +++ b/test/case/statd/containers/system/run/bridge_-j_mdb_show_dev_br1_vid_6 @@ -0,0 +1 @@ +[{"mdb":[],"router":{}}] diff --git a/test/case/statd/containers/system/run/bridge_-j_vlan_global_show_dev_br0 b/test/case/statd/containers/system/run/bridge_-j_vlan_global_show_dev_br0 new file mode 100644 index 00000000..fadbcedb --- /dev/null +++ b/test/case/statd/containers/system/run/bridge_-j_vlan_global_show_dev_br0 @@ -0,0 +1 @@ +[{"ifname":"br0","vlans":[{"vlan":1,"mcast_snooping":1,"mcast_querier":0,"mcast_igmp_version":2,"mcast_mld_version":1,"mcast_last_member_count":2,"mcast_last_member_interval":100,"mcast_startup_query_count":2,"mcast_startup_query_interval":3124,"mcast_membership_interval":26000,"mcast_querier_interval":25500,"mcast_query_interval":12500,"mcast_query_response_interval":1000,"msti":0}]}] diff --git a/test/case/statd/containers/system/run/bridge_-j_vlan_global_show_dev_br1 b/test/case/statd/containers/system/run/bridge_-j_vlan_global_show_dev_br1 new file mode 100644 index 00000000..35e0e272 --- /dev/null +++ b/test/case/statd/containers/system/run/bridge_-j_vlan_global_show_dev_br1 @@ -0,0 +1 @@ +[{"ifname":"br1","vlans":[{"vlan":6,"mcast_snooping":1,"mcast_querier":0,"mcast_igmp_version":2,"mcast_mld_version":1,"mcast_last_member_count":2,"mcast_last_member_interval":100,"mcast_startup_query_count":2,"mcast_startup_query_interval":3124,"mcast_membership_interval":26000,"mcast_querier_interval":25500,"mcast_query_interval":12500,"mcast_query_response_interval":1000,"msti":0}]}] diff --git a/test/case/statd/containers/system/run/bridge_-j_vlan_show b/test/case/statd/containers/system/run/bridge_-j_vlan_show new file mode 100644 index 00000000..4ae43ec2 --- /dev/null +++ b/test/case/statd/containers/system/run/bridge_-j_vlan_show @@ -0,0 +1 @@ +[{"ifname":"e3","vlans":[{"vlan":1,"flags":["PVID","Egress Untagged"]}]},{"ifname":"e4","vlans":[{"vlan":1,"flags":["PVID","Egress Untagged"]}]},{"ifname":"veth0b","vlans":[{"vlan":1,"flags":["PVID","Egress Untagged"]}]},{"ifname":"veth2b","vlans":[{"vlan":1,"flags":["PVID","Egress Untagged"]}]},{"ifname":"br0","vlans":[{"vlan":1,"flags":["PVID","Egress Untagged"]}]},{"ifname":"veth1b","vlans":[{"vlan":6,"flags":["PVID","Egress Untagged"]}]}] diff --git a/test/case/statd/containers/system/run/ip_-j_addr_show b/test/case/statd/containers/system/run/ip_-j_addr_show new file mode 100644 index 00000000..602c290c --- /dev/null +++ b/test/case/statd/containers/system/run/ip_-j_addr_show @@ -0,0 +1 @@ +[{"ifindex":1,"ifname":"lo","flags":["LOOPBACK","UP","LOWER_UP"],"mtu":65536,"qdisc":"noqueue","operstate":"UP","group":"iface","txqlen":1000,"link_type":"loopback","address":"00:00:00:00:00:00","broadcast":"00:00:00:00:00:00","addr_info":[{"family":"inet","local":"127.0.0.1","prefixlen":8,"scope":"host","protocol":"static","label":"lo","valid_life_time":4294967295,"preferred_life_time":4294967295},{"family":"inet6","local":"::1","prefixlen":128,"scope":"host","protocol":"static","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":2,"ifname":"e1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:01","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet6","local":"fe80::2a0:85ff:fe00:301","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":3,"ifname":"e2","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:02","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet6","local":"fe80::2a0:85ff:fe00:302","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":4,"ifname":"e3","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","master":"br0","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:03","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[]},{"ifindex":5,"ifname":"e4","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","master":"br0","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:04","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[]},{"ifindex":6,"ifname":"e5","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:05","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet6","local":"fe80::2a0:85ff:fe00:305","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":7,"ifname":"e6","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:06","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet","local":"10.1.1.101","prefixlen":24,"scope":"global","protocol":"static","label":"e6","valid_life_time":4294967295,"preferred_life_time":4294967295},{"family":"inet6","local":"fe80::2a0:85ff:fe00:306","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":8,"ifname":"e7","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:07","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet6","local":"fe80::2a0:85ff:fe00:307","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":22,"link_index":21,"ifname":"veth0b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br0","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"c2:61:ae:82:0a:c1","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":1,"addr_info":[]},{"ifindex":24,"link_index":23,"ifname":"veth2b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br0","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"96:8b:c6:17:74:d3","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"addr_info":[]},{"ifindex":25,"ifname":"br0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet","local":"169.254.1.1","prefixlen":16,"broadcast":"169.254.255.255","scope":"link","protocol":"random","label":"br0","valid_life_time":4294967295,"preferred_life_time":4294967295},{"family":"inet6","local":"fe80::2a0:85ff:fe00:300","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":27,"link_index":26,"ifname":"veth1b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br1","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"e6:c6:34:dc:b9:f4","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":1,"addr_info":[]},{"ifindex":29,"link_index":28,"ifname":"veth3b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br1","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"0e:c3:01:d6:e6:ea","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"addr_info":[]},{"ifindex":30,"ifname":"br1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[]},{"ifindex":31,"link":"e3","ifname":"e3.8","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:03","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet","local":"10.1.1.1","prefixlen":32,"scope":"global","protocol":"static","label":"e3.8","valid_life_time":4294967295,"preferred_life_time":4294967295}]},{"ifindex":32,"link":"e4","ifname":"e4.8","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:04","broadcast":"ff:ff:ff:ff:ff:ff","addr_info":[{"family":"inet","local":"10.1.1.1","prefixlen":32,"scope":"global","protocol":"static","label":"e4.8","valid_life_time":4294967295,"preferred_life_time":4294967295}]}] diff --git a/test/case/statd/containers/system/run/ip_-j_netns_list b/test/case/statd/containers/system/run/ip_-j_netns_list new file mode 100644 index 00000000..7b0e9199 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_-j_netns_list @@ -0,0 +1 @@ +[{"name":"netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910","id":0},{"name":"netns-769ed047-f7d6-211b-728b-46c24d727874","id":1}] diff --git a/test/case/statd/containers/system/run/ip_-s_-d_-j_link_show b/test/case/statd/containers/system/run/ip_-s_-d_-j_link_show new file mode 100644 index 00000000..e3feaa62 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_-s_-d_-j_link_show @@ -0,0 +1 @@ +[{"ifindex":1,"ifname":"lo","flags":["LOOPBACK","UP","LOWER_UP"],"mtu":65536,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"iface","txqlen":1000,"link_type":"loopback","address":"00:00:00:00:00:00","broadcast":"00:00:00:00:00:00","promiscuity":0,"allmulti":0,"min_mtu":0,"max_mtu":0,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":72275,"packets":194,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":72275,"packets":194,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":2,"ifname":"e1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:01","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"parentbus":"virtio","parentdev":"virtio0","stats64":{"rx":{"bytes":5166282,"packets":23468,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":7407399,"packets":19837,"errors":0,"dropped":2,"carrier_errors":0,"collisions":0}}},{"ifindex":3,"ifname":"e2","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:02","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"parentbus":"virtio","parentdev":"virtio1","stats64":{"rx":{"bytes":0,"packets":0,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":79382,"packets":221,"errors":0,"dropped":2,"carrier_errors":0,"collisions":0}}},{"ifindex":4,"ifname":"e3","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","master":"br0","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:03","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":1,"allmulti":1,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_slave_kind":"bridge","info_slave_data":{"state":"forwarding","priority":32,"cost":100,"hairpin":false,"guard":false,"root_block":false,"fastleave":false,"learning":true,"flood":true,"id":"0x8001","no":"0x1","designated_port":32769,"designated_cost":0,"bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","hold_timer":0.00,"message_age_timer":0.00,"forward_delay_timer":0.00,"topology_change_ack":0,"config_pending":0,"proxy_arp":false,"proxy_arp_wifi":false,"multicast_router":1,"mcast_flood":true,"bcast_flood":true,"mcast_to_unicast":false,"neigh_suppress":false,"neigh_vlan_suppress":false,"group_fwd_mask":"0","group_fwd_mask_str":"0x0","vlan_tunnel":false,"isolated":false,"locked":false,"mab":false}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"parentbus":"virtio","parentdev":"virtio2","stats64":{"rx":{"bytes":23589,"packets":129,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":208789,"packets":1209,"errors":0,"dropped":1,"carrier_errors":0,"collisions":0}}},{"ifindex":5,"ifname":"e4","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","master":"br0","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:04","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":1,"allmulti":1,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_slave_kind":"bridge","info_slave_data":{"state":"forwarding","priority":32,"cost":100,"hairpin":false,"guard":false,"root_block":false,"fastleave":false,"learning":true,"flood":true,"id":"0x8002","no":"0x2","designated_port":32770,"designated_cost":0,"bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","hold_timer":0.00,"message_age_timer":0.00,"forward_delay_timer":0.00,"topology_change_ack":0,"config_pending":0,"proxy_arp":false,"proxy_arp_wifi":false,"multicast_router":1,"mcast_flood":true,"bcast_flood":true,"mcast_to_unicast":false,"neigh_suppress":false,"neigh_vlan_suppress":false,"group_fwd_mask":"0","group_fwd_mask_str":"0x0","vlan_tunnel":false,"isolated":false,"locked":false,"mab":false}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"parentbus":"virtio","parentdev":"virtio3","stats64":{"rx":{"bytes":30583,"packets":153,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":206341,"packets":1202,"errors":0,"dropped":2,"carrier_errors":0,"collisions":0}}},{"ifindex":6,"ifname":"e5","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:05","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"parentbus":"virtio","parentdev":"virtio4","stats64":{"rx":{"bytes":66626,"packets":196,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":83465,"packets":231,"errors":0,"dropped":2,"carrier_errors":0,"collisions":0}}},{"ifindex":7,"ifname":"e6","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:06","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"parentbus":"virtio","parentdev":"virtio5","stats64":{"rx":{"bytes":134367,"packets":991,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":184122,"packets":1118,"errors":0,"dropped":2,"carrier_errors":0,"collisions":0}}},{"ifindex":8,"ifname":"e7","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"pfifo_fast","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:07","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"parentbus":"virtio","parentdev":"virtio6","stats64":{"rx":{"bytes":70368,"packets":199,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":86243,"packets":239,"errors":0,"dropped":2,"carrier_errors":0,"collisions":0}}},{"ifindex":22,"link_index":21,"ifname":"veth0b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br0","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"c2:61:ae:82:0a:c1","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":1,"promiscuity":1,"allmulti":1,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth","info_slave_kind":"bridge","info_slave_data":{"state":"forwarding","priority":32,"cost":2,"hairpin":false,"guard":false,"root_block":false,"fastleave":false,"learning":true,"flood":true,"id":"0x8003","no":"0x3","designated_port":32771,"designated_cost":0,"bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","hold_timer":0.00,"message_age_timer":0.00,"forward_delay_timer":0.00,"topology_change_ack":0,"config_pending":0,"proxy_arp":false,"proxy_arp_wifi":false,"multicast_router":1,"mcast_flood":true,"bcast_flood":true,"mcast_to_unicast":false,"neigh_suppress":false,"neigh_vlan_suppress":false,"group_fwd_mask":"0","group_fwd_mask_str":"0x0","vlan_tunnel":false,"isolated":false,"locked":false,"mab":false}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":1583,"packets":19,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":28383,"packets":123,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":24,"link_index":23,"ifname":"veth2b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br0","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"96:8b:c6:17:74:d3","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"promiscuity":1,"allmulti":1,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth","info_slave_kind":"bridge","info_slave_data":{"state":"forwarding","priority":32,"cost":2,"hairpin":false,"guard":false,"root_block":false,"fastleave":false,"learning":true,"flood":true,"id":"0x8004","no":"0x4","designated_port":32772,"designated_cost":0,"bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","hold_timer":0.00,"message_age_timer":0.00,"forward_delay_timer":0.00,"topology_change_ack":0,"config_pending":0,"proxy_arp":false,"proxy_arp_wifi":false,"multicast_router":1,"mcast_flood":true,"bcast_flood":true,"mcast_to_unicast":false,"neigh_suppress":false,"neigh_vlan_suppress":false,"group_fwd_mask":"0","group_fwd_mask_str":"0x0","vlan_tunnel":false,"isolated":false,"locked":false,"mab":false}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":796,"packets":10,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":28028,"packets":123,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":25,"ifname":"br0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"bridge","info_data":{"forward_delay":1500,"hello_time":200,"max_age":2000,"ageing_time":30000,"stp_state":0,"priority":32768,"vlan_filtering":1,"vlan_protocol":"802.1Q","bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","root_port":0,"root_path_cost":0,"topology_change":0,"topology_change_detected":0,"hello_timer":0.00,"tcn_timer":0.00,"topology_change_timer":0.00,"gc_timer":215.50,"fdb_n_learned":3,"fdb_max_learned":0,"vlan_default_pvid":0,"vlan_stats_enabled":0,"vlan_stats_per_port":0,"group_fwd_mask":"0x4000","group_addr":"01:80:c2:00:00:00","mcast_snooping":0,"no_linklocal_learn":0,"mcast_vlan_snooping":0,"mst_enabled":0,"mcast_flood_always":1,"mcast_router":1,"mcast_query_use_ifaddr":0,"mcast_querier":0,"mcast_hash_elasticity":16,"mcast_hash_max":4096,"mcast_last_member_cnt":2,"mcast_startup_query_cnt":2,"mcast_last_member_intvl":100,"mcast_membership_intvl":26000,"mcast_querier_intvl":25500,"mcast_query_intvl":12500,"mcast_query_response_intvl":1000,"mcast_startup_query_intvl":3124,"mcast_stats_enabled":0,"mcast_igmp_version":2,"mcast_mld_version":1,"nf_call_iptables":0,"nf_call_ip6tables":0,"nf_call_arptables":0}},"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":3285,"packets":49,"errors":0,"dropped":0,"over_errors":0,"multicast":32},"tx":{"bytes":28281,"packets":124,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":27,"link_index":26,"ifname":"veth1b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br1","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"e6:c6:34:dc:b9:f4","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":1,"promiscuity":1,"allmulti":1,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth","info_slave_kind":"bridge","info_slave_data":{"state":"forwarding","priority":32,"cost":2,"hairpin":false,"guard":false,"root_block":false,"fastleave":false,"learning":true,"flood":true,"id":"0x8001","no":"0x1","designated_port":32769,"designated_cost":0,"bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","hold_timer":0.00,"message_age_timer":0.00,"forward_delay_timer":0.00,"topology_change_ack":0,"config_pending":0,"proxy_arp":false,"proxy_arp_wifi":false,"multicast_router":1,"mcast_flood":true,"bcast_flood":true,"mcast_to_unicast":false,"neigh_suppress":false,"neigh_vlan_suppress":false,"group_fwd_mask":"0","group_fwd_mask_str":"0x0","vlan_tunnel":false,"isolated":false,"locked":false,"mab":false}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":796,"packets":10,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":0,"packets":0,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":29,"link_index":28,"ifname":"veth3b","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","master":"br1","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"0e:c3:01:d6:e6:ea","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"promiscuity":1,"allmulti":1,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth","info_slave_kind":"bridge","info_slave_data":{"state":"forwarding","priority":32,"cost":2,"hairpin":false,"guard":false,"root_block":false,"fastleave":false,"learning":true,"flood":true,"id":"0x8002","no":"0x2","designated_port":32770,"designated_cost":0,"bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","hold_timer":0.00,"message_age_timer":0.00,"forward_delay_timer":0.00,"topology_change_ack":0,"config_pending":0,"proxy_arp":false,"proxy_arp_wifi":false,"multicast_router":1,"mcast_flood":true,"bcast_flood":true,"mcast_to_unicast":false,"neigh_suppress":false,"neigh_vlan_suppress":false,"group_fwd_mask":"0","group_fwd_mask_str":"0x0","vlan_tunnel":false,"isolated":false,"locked":false,"mab":false}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":796,"packets":10,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":0,"packets":0,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":30,"ifname":"br1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"bridge","info_data":{"forward_delay":1500,"hello_time":200,"max_age":2000,"ageing_time":30000,"stp_state":0,"priority":32768,"vlan_filtering":1,"vlan_protocol":"802.1Q","bridge_id":"8000.0:a0:85:0:3:0","root_id":"8000.0:a0:85:0:3:0","root_port":0,"root_path_cost":0,"topology_change":0,"topology_change_detected":0,"hello_timer":0.00,"tcn_timer":0.00,"topology_change_timer":0.00,"gc_timer":215.53,"fdb_n_learned":1,"fdb_max_learned":0,"vlan_default_pvid":0,"vlan_stats_enabled":0,"vlan_stats_per_port":0,"group_fwd_mask":"0","group_addr":"01:80:c2:00:00:00","mcast_snooping":0,"no_linklocal_learn":0,"mcast_vlan_snooping":0,"mst_enabled":0,"mcast_flood_always":1,"mcast_router":1,"mcast_query_use_ifaddr":0,"mcast_querier":0,"mcast_hash_elasticity":16,"mcast_hash_max":4096,"mcast_last_member_cnt":2,"mcast_startup_query_cnt":2,"mcast_last_member_intvl":100,"mcast_membership_intvl":26000,"mcast_querier_intvl":25500,"mcast_query_intvl":12500,"mcast_query_response_intvl":1000,"mcast_startup_query_intvl":3124,"mcast_stats_enabled":0,"mcast_igmp_version":2,"mcast_mld_version":1,"nf_call_iptables":0,"nf_call_ip6tables":0,"nf_call_arptables":0}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":656,"packets":10,"errors":0,"dropped":0,"over_errors":0,"multicast":10},"tx":{"bytes":0,"packets":0,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":31,"link":"e3","ifname":"e3.8","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:03","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":0,"max_mtu":65535,"linkinfo":{"info_kind":"vlan","info_data":{"protocol":"802.1Q","id":8,"flags":["REORDER_HDR"]}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":5005,"packets":43,"errors":0,"dropped":0,"over_errors":0,"multicast":41},"tx":{"bytes":16009,"packets":79,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":32,"link":"e4","ifname":"e4.8","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"00:a0:85:00:03:04","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"allmulti":0,"min_mtu":0,"max_mtu":65535,"linkinfo":{"info_kind":"vlan","info_data":{"protocol":"802.1Q","id":8,"flags":["REORDER_HDR"]}},"inet6_addr_gen_mode":"none","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":65536,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":15080,"packets":72,"errors":0,"dropped":0,"over_errors":0,"multicast":70},"tx":{"bytes":15546,"packets":74,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}}] diff --git a/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-j_addr_show_dev_eth0 b/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-j_addr_show_dev_eth0 new file mode 100644 index 00000000..b9552151 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-j_addr_show_dev_eth0 @@ -0,0 +1 @@ +[{"ifindex":23,"link_index":24,"ifname":"eth0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"addr_info":[{"family":"inet6","local":"fe80::4a0:85ff:fe00:300","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]}] diff --git a/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-j_addr_show_dev_eth1 b/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-j_addr_show_dev_eth1 new file mode 100644 index 00000000..f6e5f6f2 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-j_addr_show_dev_eth1 @@ -0,0 +1 @@ +[{"ifindex":28,"link_index":29,"ifname":"eth1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"addr_info":[{"family":"inet6","local":"fe80::4a0:85ff:fe00:300","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]}] diff --git a/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-s_-d_-j_link_show b/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-s_-d_-j_link_show new file mode 100644 index 00000000..1ac44368 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_netns_exec_netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910_ip_-s_-d_-j_link_show @@ -0,0 +1 @@ +[{"ifindex":1,"ifname":"lo","flags":["LOOPBACK","UP","LOWER_UP"],"mtu":65536,"qdisc":"noqueue","operstate":"UNKNOWN","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"loopback","address":"00:00:00:00:00:00","broadcast":"00:00:00:00:00:00","promiscuity":0,"allmulti":0,"min_mtu":0,"max_mtu":0,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":28,"packets":1,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":28,"packets":1,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":23,"link_index":24,"ifname":"eth0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth"},"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"ifalias":"veth2a","stats64":{"rx":{"bytes":28028,"packets":123,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":796,"packets":10,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":28,"link_index":29,"ifname":"eth1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth"},"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"ifalias":"veth3a","stats64":{"rx":{"bytes":0,"packets":0,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":796,"packets":10,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}}] diff --git a/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-j_addr_show_dev_br0 b/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-j_addr_show_dev_br0 new file mode 100644 index 00000000..3cfbcc96 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-j_addr_show_dev_br0 @@ -0,0 +1 @@ +[{"ifindex":21,"link_index":22,"ifname":"br0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"addr_info":[{"family":"inet","local":"169.254.1.2","prefixlen":16,"broadcast":"169.254.255.255","scope":"global","label":"br0","valid_life_time":4294967295,"preferred_life_time":4294967295},{"family":"inet6","local":"fe80::4a0:85ff:fe00:300","prefixlen":64,"scope":"link","dadfailed":true,"tentative":true,"protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]}] diff --git a/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-j_addr_show_dev_br1 b/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-j_addr_show_dev_br1 new file mode 100644 index 00000000..7e884211 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-j_addr_show_dev_br1 @@ -0,0 +1 @@ +[{"ifindex":26,"link_index":27,"ifname":"br1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"addr_info":[{"family":"inet6","local":"fe80::4a0:85ff:fe00:300","prefixlen":64,"scope":"link","protocol":"kernel_ll","valid_life_time":4294967295,"preferred_life_time":4294967295}]}] diff --git a/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-s_-d_-j_link_show b/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-s_-d_-j_link_show new file mode 100644 index 00000000..ed8ff2c1 --- /dev/null +++ b/test/case/statd/containers/system/run/ip_netns_exec_netns-769ed047-f7d6-211b-728b-46c24d727874_ip_-s_-d_-j_link_show @@ -0,0 +1 @@ +[{"ifindex":1,"ifname":"lo","flags":["LOOPBACK","UP","LOWER_UP"],"mtu":65536,"qdisc":"noqueue","operstate":"UNKNOWN","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"loopback","address":"00:00:00:00:00:00","broadcast":"00:00:00:00:00:00","promiscuity":0,"allmulti":0,"min_mtu":0,"max_mtu":0,"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"stats64":{"rx":{"bytes":28,"packets":1,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":28,"packets":1,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":21,"link_index":22,"ifname":"br0","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth"},"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"ifalias":"veth0a","stats64":{"rx":{"bytes":28425,"packets":124,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":1625,"packets":20,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}},{"ifindex":26,"link_index":27,"ifname":"br1","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UP","linkmode":"DEFAULT","group":"default","txqlen":1000,"link_type":"ether","address":"06:a0:85:00:03:00","broadcast":"ff:ff:ff:ff:ff:ff","link_netnsid":0,"promiscuity":0,"allmulti":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"veth"},"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535,"tso_max_size":524280,"tso_max_segs":65535,"gro_max_size":65536,"gso_ipv4_max_size":65536,"gro_ipv4_max_size":65536,"ifalias":"veth1a","stats64":{"rx":{"bytes":0,"packets":0,"errors":0,"dropped":0,"over_errors":0,"multicast":0},"tx":{"bytes":796,"packets":10,"errors":0,"dropped":0,"carrier_errors":0,"collisions":0}}}] diff --git a/test/case/statd/containers/system/run/podman_inspect_container-A b/test/case/statd/containers/system/run/podman_inspect_container-A new file mode 100644 index 00000000..52540fb6 --- /dev/null +++ b/test/case/statd/containers/system/run/podman_inspect_container-A @@ -0,0 +1,348 @@ +[ + { + "Id": "93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e", + "Created": "2025-01-20T09:59:10.084076243Z", + "Path": "/usr/bin/tini", + "Args": [ + "--", + "/usr/sbin/httpd", + "-f", + "-v", + "-p", + "91" + ], + "State": { + "OciVersion": "1.1.0-rc.1", + "Status": "running", + "Running": true, + "Paused": false, + "Restarting": false, + "OOMKilled": false, + "Dead": false, + "Pid": 25343, + "ConmonPid": 25341, + "ExitCode": 0, + "Error": "", + "StartedAt": "2025-01-20T09:59:10.208616914Z", + "FinishedAt": "0001-01-01T00:00:00Z", + "Health": { + "Status": "", + "FailingStreak": 0, + "Log": null + }, + "CgroupPath": "/containers/libpod-93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e", + "CheckpointedAt": "0001-01-01T00:00:00Z", + "RestoredAt": "0001-01-01T00:00:00Z" + }, + "Image": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "ImageDigest": "sha256:bd3f18b45e02eac2ac96a8d329963ae18b1bcecf924ff1c98148ad178982f01d", + "ImageName": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "Rootfs": "", + "Pod": "", + "ResolvConfPath": "/run/containers/storage/overlay-containers/93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e/userdata/resolv.conf", + "HostnamePath": "/run/containers/storage/overlay-containers/93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e/userdata/hostname", + "HostsPath": "/run/containers/storage/overlay-containers/93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e/userdata/hosts", + "StaticDir": "/var/lib/containers/storage/overlay-containers/93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e/userdata", + "OCIConfigPath": "/var/lib/containers/storage/overlay-containers/93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e/userdata/config.json", + "OCIRuntime": "crun", + "ConmonPidFile": "/run/container:container-A.pid", + "PidFile": "/run/containers/storage/overlay-containers/93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e/userdata/pidfile", + "Name": "container-A", + "RestartCount": 0, + "Driver": "overlay", + "MountLabel": "", + "ProcessLabel": "", + "AppArmorProfile": "", + "EffectiveCaps": [ + "CAP_CHOWN", + "CAP_DAC_OVERRIDE", + "CAP_FOWNER", + "CAP_FSETID", + "CAP_KILL", + "CAP_NET_BIND_SERVICE", + "CAP_SETFCAP", + "CAP_SETGID", + "CAP_SETPCAP", + "CAP_SETUID", + "CAP_SYS_CHROOT" + ], + "BoundingCaps": [ + "CAP_CHOWN", + "CAP_DAC_OVERRIDE", + "CAP_FOWNER", + "CAP_FSETID", + "CAP_KILL", + "CAP_NET_BIND_SERVICE", + "CAP_SETFCAP", + "CAP_SETGID", + "CAP_SETPCAP", + "CAP_SETUID", + "CAP_SYS_CHROOT" + ], + "ExecIDs": [], + "GraphDriver": { + "Name": "overlay", + "Data": { + "LowerDir": "/var/lib/containers/storage/overlay/7f1ed5e7f0b5c759a9e1864bdb0bf0b03751a85345c51a97cea18d4701f2fb53/diff", + "MergedDir": "/var/lib/containers/storage/overlay/4f3e9ccc3864e3b663061db696ae34ae75248f64c2139b0cc4f7da4d01a2a6e1/merged", + "UpperDir": "/var/lib/containers/storage/overlay/4f3e9ccc3864e3b663061db696ae34ae75248f64c2139b0cc4f7da4d01a2a6e1/diff", + "WorkDir": "/var/lib/containers/storage/overlay/4f3e9ccc3864e3b663061db696ae34ae75248f64c2139b0cc4f7da4d01a2a6e1/work" + } + }, + "Mounts": [ + { + "Type": "bind", + "Source": "/run/containers/files/container-A-index.html", + "Destination": "/var/www/index.html", + "Driver": "", + "Mode": "", + "Options": [ + "nosuid", + "nodev", + "rbind" + ], + "RW": false, + "Propagation": "rprivate" + } + ], + "Dependencies": [], + "NetworkSettings": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "", + "Bridge": "", + "SandboxID": "", + "HairpinMode": false, + "LinkLocalIPv6Address": "", + "LinkLocalIPv6PrefixLen": 0, + "Ports": { + "80/tcp": null, + "91/tcp": [ + { + "HostIp": "", + "HostPort": "36971" + } + ] + }, + "SandboxKey": "/run/netns/netns-769ed047-f7d6-211b-728b-46c24d727874", + "Networks": { + "veth0a": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "169.254.1.2", + "IPPrefixLen": 16, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "06:a0:85:00:03:00", + "NetworkID": "veth0a", + "DriverOpts": null, + "IPAMConfig": null, + "Links": null, + "Aliases": [ + "93753e99ceb3" + ] + }, + "veth1a": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "06:a0:85:00:03:00", + "NetworkID": "veth1a", + "DriverOpts": null, + "IPAMConfig": null, + "Links": null, + "Aliases": [ + "93753e99ceb3" + ] + } + } + }, + "Namespace": "", + "IsInfra": false, + "IsService": false, + "Config": { + "Hostname": "web-container-00-03-00", + "Domainname": "", + "User": "0", + "AttachStdin": false, + "AttachStdout": false, + "AttachStderr": false, + "Tty": false, + "OpenStdin": false, + "StdinOnce": false, + "Env": [ + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", + "TERM=xterm", + "container=podman", + "HOSTNAME=web-container-00-03-00", + "HOME=/root" + ], + "Cmd": [ + "/usr/sbin/httpd", + "-f", + "-v", + "-p", + "91" + ], + "Image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "Volumes": null, + "WorkingDir": "/var/www", + "Entrypoint": "/usr/bin/tini --", + "OnBuild": null, + "Labels": { + "org.opencontainers.image.title": "curiOS-httpd", + "org.opencontainers.image.url": "https://github.com/kernelkit/curiOS" + }, + "Annotations": { + "io.container.manager": "libpod", + "org.opencontainers.image.stopSignal": "15" + }, + "StopSignal": 15, + "HealthcheckOnFailureAction": "none", + "CreateCommand": [ + "podman", + "create", + "--name", + "container-A", + "--conmon-pidfile=/run/container:container-A.pid", + "--read-only", + "--replace", + "--quiet", + "--cgroup-parent=containers", + "--restart=on-failure:10", + "--systemd=false", + "--tz=local", + "--mount=type=bind,src=/run/containers/files/container-A-index.html,dst=/var/www/index.html,readonly=true", + "--hostname", + "web-container-00-03-00", + "-p", + "91", + "--log-driver", + "syslog", + "--net=veth0a:interface_name=br0", + "--net=veth1a:interface_name=br1", + "curios-httpd-oci-amd64-v24.11.0", + "/usr/sbin/httpd", + "-f", + "-v", + "-p", + "91" + ], + "Timezone": "local", + "Umask": "0022", + "Timeout": 0, + "StopTimeout": 10, + "Passwd": true, + "sdNotifyMode": "container" + }, + "HostConfig": { + "Binds": [ + "/run/containers/files/container-A-index.html:/var/www/index.html:ro,rprivate,nosuid,nodev,rbind" + ], + "CgroupManager": "cgroupfs", + "CgroupMode": "private", + "ContainerIDFile": "", + "LogConfig": { + "Type": "syslog", + "Config": null, + "Path": "", + "Tag": "", + "Size": "0B" + }, + "NetworkMode": "bridge", + "PortBindings": { + "91/tcp": [ + { + "HostIp": "", + "HostPort": "36971" + } + ] + }, + "RestartPolicy": { + "Name": "on-failure", + "MaximumRetryCount": 10 + }, + "AutoRemove": false, + "VolumeDriver": "", + "VolumesFrom": null, + "CapAdd": [], + "CapDrop": [], + "Dns": [], + "DnsOptions": [], + "DnsSearch": [], + "ExtraHosts": [], + "GroupAdd": [], + "IpcMode": "shareable", + "Cgroup": "", + "Cgroups": "default", + "Links": null, + "OomScoreAdj": 0, + "PidMode": "private", + "Privileged": false, + "PublishAllPorts": false, + "ReadonlyRootfs": true, + "SecurityOpt": [], + "Tmpfs": {}, + "UTSMode": "private", + "UsernsMode": "", + "ShmSize": 65536000, + "Runtime": "oci", + "ConsoleSize": [ + 0, + 0 + ], + "Isolation": "", + "CpuShares": 0, + "Memory": 0, + "NanoCpus": 0, + "CgroupParent": "containers", + "BlkioWeight": 0, + "BlkioWeightDevice": null, + "BlkioDeviceReadBps": null, + "BlkioDeviceWriteBps": null, + "BlkioDeviceReadIOps": null, + "BlkioDeviceWriteIOps": null, + "CpuPeriod": 0, + "CpuQuota": 0, + "CpuRealtimePeriod": 0, + "CpuRealtimeRuntime": 0, + "CpusetCpus": "", + "CpusetMems": "", + "Devices": [], + "DiskQuota": 0, + "KernelMemory": 0, + "MemoryReservation": 0, + "MemorySwap": 0, + "MemorySwappiness": 0, + "OomKillDisable": false, + "PidsLimit": 2048, + "Ulimits": [ + { + "Name": "RLIMIT_NOFILE", + "Soft": 1048576, + "Hard": 1048576 + }, + { + "Name": "RLIMIT_NPROC", + "Soft": 32768, + "Hard": 32768 + } + ], + "CpuCount": 0, + "CpuPercent": 0, + "IOMaximumIOps": 0, + "IOMaximumBandwidth": 0, + "CgroupConf": null + } + } +] diff --git a/test/case/statd/containers/system/run/podman_inspect_container-B b/test/case/statd/containers/system/run/podman_inspect_container-B new file mode 100644 index 00000000..4a20406e --- /dev/null +++ b/test/case/statd/containers/system/run/podman_inspect_container-B @@ -0,0 +1,368 @@ +[ + { + "Id": "0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3", + "Created": "2025-01-20T09:59:09.376207821Z", + "Path": "/usr/bin/tini", + "Args": [ + "--", + "/usr/sbin/httpd", + "-f", + "-v" + ], + "State": { + "OciVersion": "1.1.0-rc.1", + "Status": "running", + "Running": true, + "Paused": false, + "Restarting": false, + "OOMKilled": false, + "Dead": false, + "Pid": 25086, + "ConmonPid": 25080, + "ExitCode": 0, + "Error": "", + "StartedAt": "2025-01-20T09:59:09.771128108Z", + "FinishedAt": "0001-01-01T00:00:00Z", + "Health": { + "Status": "", + "FailingStreak": 0, + "Log": null + }, + "CgroupPath": "/containers/libpod-0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3", + "CheckpointedAt": "0001-01-01T00:00:00Z", + "RestoredAt": "0001-01-01T00:00:00Z" + }, + "Image": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "ImageDigest": "sha256:bd3f18b45e02eac2ac96a8d329963ae18b1bcecf924ff1c98148ad178982f01d", + "ImageName": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "Rootfs": "", + "Pod": "", + "ResolvConfPath": "/run/containers/storage/overlay-containers/0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3/userdata/resolv.conf", + "HostnamePath": "/run/containers/storage/overlay-containers/0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3/userdata/hostname", + "HostsPath": "/run/containers/storage/overlay-containers/0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3/userdata/hosts", + "StaticDir": "/var/lib/containers/storage/overlay-containers/0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3/userdata", + "OCIConfigPath": "/var/lib/containers/storage/overlay-containers/0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3/userdata/config.json", + "OCIRuntime": "crun", + "ConmonPidFile": "/run/container:container-B.pid", + "PidFile": "/run/containers/storage/overlay-containers/0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3/userdata/pidfile", + "Name": "container-B", + "RestartCount": 0, + "Driver": "overlay", + "MountLabel": "", + "ProcessLabel": "", + "AppArmorProfile": "", + "EffectiveCaps": [ + "CAP_AUDIT_CONTROL", + "CAP_AUDIT_READ", + "CAP_AUDIT_WRITE", + "CAP_BLOCK_SUSPEND", + "CAP_BPF", + "CAP_CHECKPOINT_RESTORE", + "CAP_CHOWN", + "CAP_DAC_OVERRIDE", + "CAP_DAC_READ_SEARCH", + "CAP_FOWNER", + "CAP_FSETID", + "CAP_IPC_LOCK", + "CAP_IPC_OWNER", + "CAP_KILL", + "CAP_LEASE", + "CAP_LINUX_IMMUTABLE", + "CAP_MAC_ADMIN", + "CAP_MAC_OVERRIDE", + "CAP_MKNOD", + "CAP_NET_ADMIN", + "CAP_NET_BIND_SERVICE", + "CAP_NET_BROADCAST", + "CAP_NET_RAW", + "CAP_PERFMON", + "CAP_SETFCAP", + "CAP_SETGID", + "CAP_SETPCAP", + "CAP_SETUID", + "CAP_SYSLOG", + "CAP_SYS_ADMIN", + "CAP_SYS_BOOT", + "CAP_SYS_CHROOT", + "CAP_SYS_MODULE", + "CAP_SYS_NICE", + "CAP_SYS_PACCT", + "CAP_SYS_PTRACE", + "CAP_SYS_RAWIO", + "CAP_SYS_RESOURCE", + "CAP_SYS_TIME", + "CAP_SYS_TTY_CONFIG", + "CAP_WAKE_ALARM" + ], + "BoundingCaps": [ + "CAP_AUDIT_CONTROL", + "CAP_AUDIT_READ", + "CAP_AUDIT_WRITE", + "CAP_BLOCK_SUSPEND", + "CAP_BPF", + "CAP_CHECKPOINT_RESTORE", + "CAP_CHOWN", + "CAP_DAC_OVERRIDE", + "CAP_DAC_READ_SEARCH", + "CAP_FOWNER", + "CAP_FSETID", + "CAP_IPC_LOCK", + "CAP_IPC_OWNER", + "CAP_KILL", + "CAP_LEASE", + "CAP_LINUX_IMMUTABLE", + "CAP_MAC_ADMIN", + "CAP_MAC_OVERRIDE", + "CAP_MKNOD", + "CAP_NET_ADMIN", + "CAP_NET_BIND_SERVICE", + "CAP_NET_BROADCAST", + "CAP_NET_RAW", + "CAP_PERFMON", + "CAP_SETFCAP", + "CAP_SETGID", + "CAP_SETPCAP", + "CAP_SETUID", + "CAP_SYSLOG", + "CAP_SYS_ADMIN", + "CAP_SYS_BOOT", + "CAP_SYS_CHROOT", + "CAP_SYS_MODULE", + "CAP_SYS_NICE", + "CAP_SYS_PACCT", + "CAP_SYS_PTRACE", + "CAP_SYS_RAWIO", + "CAP_SYS_RESOURCE", + "CAP_SYS_TIME", + "CAP_SYS_TTY_CONFIG", + "CAP_WAKE_ALARM" + ], + "ExecIDs": [], + "GraphDriver": { + "Name": "overlay", + "Data": { + "LowerDir": "/var/lib/containers/storage/overlay/7f1ed5e7f0b5c759a9e1864bdb0bf0b03751a85345c51a97cea18d4701f2fb53/diff", + "MergedDir": "/var/lib/containers/storage/overlay/dddcf27b3db1e47b06e1662850c22494fe52fc11d4094b91923251b797e71c1a/merged", + "UpperDir": "/var/lib/containers/storage/overlay/dddcf27b3db1e47b06e1662850c22494fe52fc11d4094b91923251b797e71c1a/diff", + "WorkDir": "/var/lib/containers/storage/overlay/dddcf27b3db1e47b06e1662850c22494fe52fc11d4094b91923251b797e71c1a/work" + } + }, + "Mounts": [], + "Dependencies": [], + "NetworkSettings": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "", + "Bridge": "", + "SandboxID": "", + "HairpinMode": false, + "LinkLocalIPv6Address": "", + "LinkLocalIPv6PrefixLen": 0, + "Ports": { + "80/tcp": null + }, + "SandboxKey": "/run/netns/netns-3ea40bc1-9daa-902c-71e0-81b6d69cd910", + "Networks": { + "veth2a": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "06:a0:85:00:03:00", + "NetworkID": "veth2a", + "DriverOpts": null, + "IPAMConfig": null, + "Links": null, + "Aliases": [ + "0aed2ca36b5e" + ] + }, + "veth3a": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "06:a0:85:00:03:00", + "NetworkID": "veth3a", + "DriverOpts": null, + "IPAMConfig": null, + "Links": null, + "Aliases": [ + "0aed2ca36b5e" + ] + } + } + }, + "Namespace": "", + "IsInfra": false, + "IsService": false, + "Config": { + "Hostname": "web-container-00-03-00", + "Domainname": "", + "User": "0", + "AttachStdin": false, + "AttachStdout": false, + "AttachStderr": false, + "Tty": false, + "OpenStdin": false, + "StdinOnce": false, + "Env": [ + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", + "TERM=xterm", + "container=podman", + "HOSTNAME=web-container-00-03-00", + "HOME=/root" + ], + "Cmd": [ + "/usr/sbin/httpd", + "-f", + "-v" + ], + "Image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "Volumes": null, + "WorkingDir": "/var/www", + "Entrypoint": "/usr/bin/tini --", + "OnBuild": null, + "Labels": { + "org.opencontainers.image.title": "curiOS-httpd", + "org.opencontainers.image.url": "https://github.com/kernelkit/curiOS" + }, + "Annotations": { + "io.container.manager": "libpod", + "io.podman.annotations.privileged": "TRUE", + "org.opencontainers.image.stopSignal": "15" + }, + "StopSignal": 15, + "HealthcheckOnFailureAction": "none", + "CreateCommand": [ + "podman", + "create", + "--name", + "container-B", + "--conmon-pidfile=/run/container:container-B.pid", + "--read-only", + "--replace", + "--quiet", + "--cgroup-parent=containers", + "--restart=on-failure:10", + "--systemd=false", + "--tz=local", + "--privileged=true", + "--hostname", + "web-container-00-03-00", + "--log-driver", + "syslog", + "--net=veth2a:ip=169.254.1.3", + "--net=veth3a", + "curios-httpd-oci-amd64-v24.11.0" + ], + "Timezone": "local", + "Umask": "0022", + "Timeout": 0, + "StopTimeout": 10, + "Passwd": true, + "sdNotifyMode": "container" + }, + "HostConfig": { + "Binds": [], + "CgroupManager": "cgroupfs", + "CgroupMode": "private", + "ContainerIDFile": "", + "LogConfig": { + "Type": "syslog", + "Config": null, + "Path": "", + "Tag": "", + "Size": "0B" + }, + "NetworkMode": "bridge", + "PortBindings": {}, + "RestartPolicy": { + "Name": "on-failure", + "MaximumRetryCount": 10 + }, + "AutoRemove": false, + "VolumeDriver": "", + "VolumesFrom": null, + "CapAdd": [], + "CapDrop": [], + "Dns": [], + "DnsOptions": [], + "DnsSearch": [], + "ExtraHosts": [], + "GroupAdd": [], + "IpcMode": "shareable", + "Cgroup": "", + "Cgroups": "default", + "Links": null, + "OomScoreAdj": 0, + "PidMode": "private", + "Privileged": true, + "PublishAllPorts": false, + "ReadonlyRootfs": true, + "SecurityOpt": [], + "Tmpfs": {}, + "UTSMode": "private", + "UsernsMode": "", + "ShmSize": 65536000, + "Runtime": "oci", + "ConsoleSize": [ + 0, + 0 + ], + "Isolation": "", + "CpuShares": 0, + "Memory": 0, + "NanoCpus": 0, + "CgroupParent": "containers", + "BlkioWeight": 0, + "BlkioWeightDevice": null, + "BlkioDeviceReadBps": null, + "BlkioDeviceWriteBps": null, + "BlkioDeviceReadIOps": null, + "BlkioDeviceWriteIOps": null, + "CpuPeriod": 0, + "CpuQuota": 0, + "CpuRealtimePeriod": 0, + "CpuRealtimeRuntime": 0, + "CpusetCpus": "", + "CpusetMems": "", + "Devices": [], + "DiskQuota": 0, + "KernelMemory": 0, + "MemoryReservation": 0, + "MemorySwap": 0, + "MemorySwappiness": 0, + "OomKillDisable": false, + "PidsLimit": 2048, + "Ulimits": [ + { + "Name": "RLIMIT_NOFILE", + "Soft": 1048576, + "Hard": 1048576 + }, + { + "Name": "RLIMIT_NPROC", + "Soft": 32768, + "Hard": 32768 + } + ], + "CpuCount": 0, + "CpuPercent": 0, + "IOMaximumIOps": 0, + "IOMaximumBandwidth": 0, + "CgroupConf": null + } + } +] diff --git a/test/case/statd/containers/system/run/podman_inspect_firewall b/test/case/statd/containers/system/run/podman_inspect_firewall new file mode 100644 index 00000000..d5b37cc0 --- /dev/null +++ b/test/case/statd/containers/system/run/podman_inspect_firewall @@ -0,0 +1,359 @@ +[ + { + "Id": "3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8", + "Created": "2025-01-20T09:59:09.523653759Z", + "Path": "/usr/bin/tini", + "Args": [ + "--", + "/usr/sbin/nft-helper", + "/etc/nftables.conf" + ], + "State": { + "OciVersion": "1.1.0-rc.1", + "Status": "running", + "Running": true, + "Paused": false, + "Restarting": false, + "OOMKilled": false, + "Dead": false, + "Pid": 25085, + "ConmonPid": 25083, + "ExitCode": 0, + "Error": "", + "StartedAt": "2025-01-20T09:59:09.756062512Z", + "FinishedAt": "0001-01-01T00:00:00Z", + "Health": { + "Status": "", + "FailingStreak": 0, + "Log": null + }, + "CgroupPath": "/containers/libpod-3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8", + "CheckpointedAt": "0001-01-01T00:00:00Z", + "RestoredAt": "0001-01-01T00:00:00Z" + }, + "Image": "7a3cc502436250357a6664100a600f306334b4d7203890b85b7ea9b8da6b5665", + "ImageDigest": "sha256:269ef1857e6bb63f20a70a827a7afddd620eac94d5c7ec11618121b9e271f758", + "ImageName": "localhost/curios-nftables-oci-amd64-v24.11.0:latest", + "Rootfs": "", + "Pod": "", + "ResolvConfPath": "/run/containers/storage/overlay-containers/3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8/userdata/resolv.conf", + "HostnamePath": "/run/containers/storage/overlay-containers/3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8/userdata/hostname", + "HostsPath": "/run/containers/storage/overlay-containers/3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8/userdata/hosts", + "StaticDir": "/var/lib/containers/storage/overlay-containers/3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8/userdata", + "OCIConfigPath": "/var/lib/containers/storage/overlay-containers/3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8/userdata/config.json", + "OCIRuntime": "crun", + "ConmonPidFile": "/run/container:firewall.pid", + "PidFile": "/run/containers/storage/overlay-containers/3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8/userdata/pidfile", + "Name": "firewall", + "RestartCount": 0, + "Driver": "overlay", + "MountLabel": "", + "ProcessLabel": "", + "AppArmorProfile": "", + "EffectiveCaps": [ + "CAP_AUDIT_CONTROL", + "CAP_AUDIT_READ", + "CAP_AUDIT_WRITE", + "CAP_BLOCK_SUSPEND", + "CAP_BPF", + "CAP_CHECKPOINT_RESTORE", + "CAP_CHOWN", + "CAP_DAC_OVERRIDE", + "CAP_DAC_READ_SEARCH", + "CAP_FOWNER", + "CAP_FSETID", + "CAP_IPC_LOCK", + "CAP_IPC_OWNER", + "CAP_KILL", + "CAP_LEASE", + "CAP_LINUX_IMMUTABLE", + "CAP_MAC_ADMIN", + "CAP_MAC_OVERRIDE", + "CAP_MKNOD", + "CAP_NET_ADMIN", + "CAP_NET_BIND_SERVICE", + "CAP_NET_BROADCAST", + "CAP_NET_RAW", + "CAP_PERFMON", + "CAP_SETFCAP", + "CAP_SETGID", + "CAP_SETPCAP", + "CAP_SETUID", + "CAP_SYSLOG", + "CAP_SYS_ADMIN", + "CAP_SYS_BOOT", + "CAP_SYS_CHROOT", + "CAP_SYS_MODULE", + "CAP_SYS_NICE", + "CAP_SYS_PACCT", + "CAP_SYS_PTRACE", + "CAP_SYS_RAWIO", + "CAP_SYS_RESOURCE", + "CAP_SYS_TIME", + "CAP_SYS_TTY_CONFIG", + "CAP_WAKE_ALARM" + ], + "BoundingCaps": [ + "CAP_AUDIT_CONTROL", + "CAP_AUDIT_READ", + "CAP_AUDIT_WRITE", + "CAP_BLOCK_SUSPEND", + "CAP_BPF", + "CAP_CHECKPOINT_RESTORE", + "CAP_CHOWN", + "CAP_DAC_OVERRIDE", + "CAP_DAC_READ_SEARCH", + "CAP_FOWNER", + "CAP_FSETID", + "CAP_IPC_LOCK", + "CAP_IPC_OWNER", + "CAP_KILL", + "CAP_LEASE", + "CAP_LINUX_IMMUTABLE", + "CAP_MAC_ADMIN", + "CAP_MAC_OVERRIDE", + "CAP_MKNOD", + "CAP_NET_ADMIN", + "CAP_NET_BIND_SERVICE", + "CAP_NET_BROADCAST", + "CAP_NET_RAW", + "CAP_PERFMON", + "CAP_SETFCAP", + "CAP_SETGID", + "CAP_SETPCAP", + "CAP_SETUID", + "CAP_SYSLOG", + "CAP_SYS_ADMIN", + "CAP_SYS_BOOT", + "CAP_SYS_CHROOT", + "CAP_SYS_MODULE", + "CAP_SYS_NICE", + "CAP_SYS_PACCT", + "CAP_SYS_PTRACE", + "CAP_SYS_RAWIO", + "CAP_SYS_RESOURCE", + "CAP_SYS_TIME", + "CAP_SYS_TTY_CONFIG", + "CAP_WAKE_ALARM" + ], + "ExecIDs": [], + "GraphDriver": { + "Name": "overlay", + "Data": { + "LowerDir": "/var/lib/containers/storage/overlay/5a47f694a11e7abd644d015c96ebe954f5d3099459c7c8dc847b2d8809895f0e/diff", + "MergedDir": "/var/lib/containers/storage/overlay/4965d52024a50f88cf0302aa9a270eddcfdd223347c3f9c8062d481d5d4a4a84/merged", + "UpperDir": "/var/lib/containers/storage/overlay/4965d52024a50f88cf0302aa9a270eddcfdd223347c3f9c8062d481d5d4a4a84/diff", + "WorkDir": "/var/lib/containers/storage/overlay/4965d52024a50f88cf0302aa9a270eddcfdd223347c3f9c8062d481d5d4a4a84/work" + } + }, + "Mounts": [ + { + "Type": "bind", + "Source": "/run/containers/files/firewall-nftables.conf", + "Destination": "/etc/nftables.conf", + "Driver": "", + "Mode": "", + "Options": [ + "nosuid", + "nodev", + "rbind" + ], + "RW": false, + "Propagation": "rprivate" + } + ], + "Dependencies": [], + "NetworkSettings": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "", + "Bridge": "", + "SandboxID": "", + "HairpinMode": false, + "LinkLocalIPv6Address": "", + "LinkLocalIPv6PrefixLen": 0, + "Ports": {}, + "SandboxKey": "", + "Networks": { + "host": { + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "MacAddress": "", + "NetworkID": "host", + "DriverOpts": null, + "IPAMConfig": null, + "Links": null + } + } + }, + "Namespace": "", + "IsInfra": false, + "IsService": false, + "Config": { + "Hostname": "R1", + "Domainname": "", + "User": "0", + "AttachStdin": false, + "AttachStdout": false, + "AttachStderr": false, + "Tty": false, + "OpenStdin": false, + "StdinOnce": false, + "Env": [ + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", + "TERM=xterm", + "container=podman", + "HOME=/root", + "HOSTNAME=R1" + ], + "Cmd": [ + "/usr/sbin/nft-helper", + "/etc/nftables.conf" + ], + "Image": "localhost/curios-nftables-oci-amd64-v24.11.0:latest", + "Volumes": null, + "WorkingDir": "/", + "Entrypoint": "/usr/bin/tini --", + "OnBuild": null, + "Labels": { + "org.opencontainers.image.title": "curiOS-nftables", + "org.opencontainers.image.url": "https://github.com/kernelkit/curiOS" + }, + "Annotations": { + "io.container.manager": "libpod", + "io.podman.annotations.privileged": "TRUE", + "org.opencontainers.image.stopSignal": "15" + }, + "StopSignal": 15, + "HealthcheckOnFailureAction": "none", + "CreateCommand": [ + "podman", + "create", + "--name", + "firewall", + "--conmon-pidfile=/run/container:firewall.pid", + "--read-only", + "--replace", + "--quiet", + "--cgroup-parent=containers", + "--restart=always", + "--systemd=false", + "--tz=local", + "--privileged=true", + "--mount=type=bind,src=/run/containers/files/firewall-nftables.conf,dst=/etc/nftables.conf,readonly=true", + "--log-driver", + "syslog", + "--net=host", + "curios-nftables-oci-amd64-v24.11.0" + ], + "Timezone": "local", + "Umask": "0022", + "Timeout": 0, + "StopTimeout": 10, + "Passwd": true, + "sdNotifyMode": "container" + }, + "HostConfig": { + "Binds": [ + "/run/containers/files/firewall-nftables.conf:/etc/nftables.conf:ro,rprivate,nosuid,nodev,rbind" + ], + "CgroupManager": "cgroupfs", + "CgroupMode": "private", + "ContainerIDFile": "", + "LogConfig": { + "Type": "syslog", + "Config": null, + "Path": "", + "Tag": "", + "Size": "0B" + }, + "NetworkMode": "host", + "PortBindings": {}, + "RestartPolicy": { + "Name": "always", + "MaximumRetryCount": 0 + }, + "AutoRemove": false, + "VolumeDriver": "", + "VolumesFrom": null, + "CapAdd": [], + "CapDrop": [], + "Dns": [], + "DnsOptions": [], + "DnsSearch": [], + "ExtraHosts": [], + "GroupAdd": [], + "IpcMode": "shareable", + "Cgroup": "", + "Cgroups": "default", + "Links": null, + "OomScoreAdj": 0, + "PidMode": "private", + "Privileged": true, + "PublishAllPorts": false, + "ReadonlyRootfs": true, + "SecurityOpt": [], + "Tmpfs": {}, + "UTSMode": "private", + "UsernsMode": "", + "ShmSize": 65536000, + "Runtime": "oci", + "ConsoleSize": [ + 0, + 0 + ], + "Isolation": "", + "CpuShares": 0, + "Memory": 0, + "NanoCpus": 0, + "CgroupParent": "containers", + "BlkioWeight": 0, + "BlkioWeightDevice": null, + "BlkioDeviceReadBps": null, + "BlkioDeviceWriteBps": null, + "BlkioDeviceReadIOps": null, + "BlkioDeviceWriteIOps": null, + "CpuPeriod": 0, + "CpuQuota": 0, + "CpuRealtimePeriod": 0, + "CpuRealtimeRuntime": 0, + "CpusetCpus": "", + "CpusetMems": "", + "Devices": [], + "DiskQuota": 0, + "KernelMemory": 0, + "MemoryReservation": 0, + "MemorySwap": 0, + "MemorySwappiness": 0, + "OomKillDisable": false, + "PidsLimit": 2048, + "Ulimits": [ + { + "Name": "RLIMIT_NOFILE", + "Soft": 1048576, + "Hard": 1048576 + }, + { + "Name": "RLIMIT_NPROC", + "Soft": 32768, + "Hard": 32768 + } + ], + "CpuCount": 0, + "CpuPercent": 0, + "IOMaximumIOps": 0, + "IOMaximumBandwidth": 0, + "CgroupConf": null + } + } +] diff --git a/test/case/statd/containers/system/run/podman_ps_-a_--format=json b/test/case/statd/containers/system/run/podman_ps_-a_--format=json new file mode 100644 index 00000000..c12e4c77 --- /dev/null +++ b/test/case/statd/containers/system/run/podman_ps_-a_--format=json @@ -0,0 +1,132 @@ +[ + { + "AutoRemove": false, + "Command": [ + "/usr/sbin/httpd", + "-f", + "-v" + ], + "CreatedAt": "About a minute ago", + "Exited": false, + "ExitedAt": -62135596800, + "ExitCode": 0, + "Id": "0aed2ca36b5e9012d8d647a684047410444c0e3134987f0c020bf0234ef0e0f3", + "Image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "ImageID": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "IsInfra": false, + "Labels": { + "org.opencontainers.image.title": "curiOS-httpd", + "org.opencontainers.image.url": "https://github.com/kernelkit/curiOS" + }, + "Mounts": [], + "Names": [ + "container-B" + ], + "Namespaces": { + + }, + "Networks": [ + "veth2a", + "veth3a" + ], + "Pid": 25086, + "Pod": "", + "PodName": "", + "Ports": null, + "Size": null, + "StartedAt": 1737367149, + "State": "running", + "Status": "Up About a minute", + "Created": 1737367149 + }, + { + "AutoRemove": false, + "Command": [ + "/usr/sbin/nft-helper", + "/etc/nftables.conf" + ], + "CreatedAt": "About a minute ago", + "Exited": false, + "ExitedAt": -62135596800, + "ExitCode": 0, + "Id": "3d9ac5c827ed9dba01401774283f00a1a79b19375fba1a3849cf64b5ed68dbb8", + "Image": "localhost/curios-nftables-oci-amd64-v24.11.0:latest", + "ImageID": "7a3cc502436250357a6664100a600f306334b4d7203890b85b7ea9b8da6b5665", + "IsInfra": false, + "Labels": { + "org.opencontainers.image.title": "curiOS-nftables", + "org.opencontainers.image.url": "https://github.com/kernelkit/curiOS" + }, + "Mounts": [ + "/etc/nftables.conf" + ], + "Names": [ + "firewall" + ], + "Namespaces": { + + }, + "Networks": [], + "Pid": 25085, + "Pod": "", + "PodName": "", + "Ports": null, + "Size": null, + "StartedAt": 1737367149, + "State": "running", + "Status": "Up About a minute", + "Created": 1737367149 + }, + { + "AutoRemove": false, + "Command": [ + "/usr/sbin/httpd", + "-f", + "-v", + "-p", + "91" + ], + "CreatedAt": "About a minute ago", + "Exited": false, + "ExitedAt": -62135596800, + "ExitCode": 0, + "Id": "93753e99ceb3bc80c3a3002952f3d8f130deb77924e352d8e49f5c822c3af34e", + "Image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest", + "ImageID": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033", + "IsInfra": false, + "Labels": { + "org.opencontainers.image.title": "curiOS-httpd", + "org.opencontainers.image.url": "https://github.com/kernelkit/curiOS" + }, + "Mounts": [ + "/var/www/index.html" + ], + "Names": [ + "container-A" + ], + "Namespaces": { + + }, + "Networks": [ + "veth0a", + "veth1a" + ], + "Pid": 25343, + "Pod": "", + "PodName": "", + "Ports": [ + { + "host_ip": "", + "container_port": 91, + "host_port": 36971, + "range": 1, + "protocol": "tcp" + } + ], + "Size": null, + "StartedAt": 1737367150, + "State": "running", + "Status": "Up About a minute", + "Created": 1737367150 + } +] diff --git a/test/case/statd/containers/system/run/vtysh_-c_show-ip-ospf-route-json b/test/case/statd/containers/system/run/vtysh_-c_show-ip-ospf-route-json new file mode 100644 index 00000000..a11de5d1 --- /dev/null +++ b/test/case/statd/containers/system/run/vtysh_-c_show-ip-ospf-route-json @@ -0,0 +1 @@ +{"0.0.0.0/0":{"routeType":"N IA","cost":2,"area":"0.0.0.1","nexthops":[{"ip":"10.1.1.100","via":"e6","advertisedRouter":"192.168.100.1"}]},"10.1.1.0/24":{"routeType":"N","transit":true,"cost":1,"area":"0.0.0.1","nexthops":[{"ip":" ","directlyAttachedTo":"e6"}]},"10.1.2.0/24":{"routeType":"N","transit":true,"cost":2,"area":"0.0.0.1","nexthops":[{"ip":"10.1.1.100","via":"e6","advertisedRouter":"192.168.100.1"},{"ip":"10.1.2.1","via":"e3.8","advertisedRouter":"192.168.100.1"}]},"10.1.3.0/24":{"routeType":"N","transit":true,"cost":2,"area":"0.0.0.1","nexthops":[{"ip":"10.1.1.100","via":"e6","advertisedRouter":"192.168.100.1"},{"ip":"10.1.3.1","via":"e4.8","advertisedRouter":"192.168.100.1"}]},"192.168.100.1":{"routeType":"R ","cost":1,"area":"0.0.0.1","routerType":"abr","nexthops":[{"ip":"10.1.1.100","via":"e6"}]}} diff --git a/test/case/statd/containers/system/run/vtysh_-c_show-ip-route-json b/test/case/statd/containers/system/run/vtysh_-c_show-ip-route-json new file mode 100644 index 00000000..0a8b0f4b --- /dev/null +++ b/test/case/statd/containers/system/run/vtysh_-c_show-ip-route-json @@ -0,0 +1 @@ +{"0.0.0.0/0":[{"prefix":"0.0.0.0/0","prefixLen":0,"protocol":"ospf","vrfId":0,"vrfName":"default","selected":true,"destSelected":true,"distance":110,"metric":2,"installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":41,"installedNexthopGroupId":41,"uptime":"00:00:40","nexthops":[{"flags":3,"fib":true,"ip":"10.1.1.100","afi":"ipv4","interfaceIndex":7,"interfaceName":"e6","active":true,"weight":1}]},{"prefix":"0.0.0.0/0","prefixLen":0,"protocol":"static","vrfId":0,"vrfName":"default","distance":254,"metric":0,"table":254,"internalStatus":0,"internalFlags":65,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":64,"installedNexthopGroupId":64,"uptime":"00:01:20","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":25,"interfaceName":"br0","active":true,"weight":1}]}],"10.1.1.0/24":[{"prefix":"10.1.1.0/24","prefixLen":24,"protocol":"ospf","vrfId":0,"vrfName":"default","distance":110,"metric":1,"table":254,"internalStatus":0,"internalFlags":0,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":22,"uptime":"00:00:50","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":7,"interfaceName":"e6","active":true,"weight":1}]},{"prefix":"10.1.1.0/24","prefixLen":24,"protocol":"connected","vrfId":0,"vrfName":"default","selected":true,"destSelected":true,"distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":20,"installedNexthopGroupId":20,"uptime":"00:01:34","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":7,"interfaceName":"e6","active":true}]}],"10.1.1.1/32":[{"prefix":"10.1.1.1/32","prefixLen":32,"protocol":"connected","vrfId":0,"vrfName":"default","distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":0,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":54,"uptime":"00:01:35","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":32,"interfaceName":"e4.8","active":true}]},{"prefix":"10.1.1.1/32","prefixLen":32,"protocol":"connected","vrfId":0,"vrfName":"default","selected":true,"destSelected":true,"distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":55,"installedNexthopGroupId":55,"uptime":"00:01:35","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":31,"interfaceName":"e3.8","active":true}]}],"10.1.2.0/24":[{"prefix":"10.1.2.0/24","prefixLen":24,"protocol":"ospf","vrfId":0,"vrfName":"default","selected":true,"destSelected":true,"distance":110,"metric":2,"installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":2,"internalNextHopActiveNum":2,"nexthopGroupId":76,"installedNexthopGroupId":76,"uptime":"00:00:40","nexthops":[{"flags":3,"fib":true,"ip":"10.1.1.100","afi":"ipv4","interfaceIndex":7,"interfaceName":"e6","active":true,"weight":1},{"flags":11,"fib":true,"ip":"10.1.2.1","afi":"ipv4","interfaceIndex":31,"interfaceName":"e3.8","active":true,"onLink":true,"weight":1}]}],"10.1.3.0/24":[{"prefix":"10.1.3.0/24","prefixLen":24,"protocol":"ospf","vrfId":0,"vrfName":"default","selected":true,"destSelected":true,"distance":110,"metric":2,"installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":2,"internalNextHopActiveNum":2,"nexthopGroupId":77,"installedNexthopGroupId":77,"uptime":"00:00:40","nexthops":[{"flags":3,"fib":true,"ip":"10.1.1.100","afi":"ipv4","interfaceIndex":7,"interfaceName":"e6","active":true,"weight":1},{"flags":11,"fib":true,"ip":"10.1.3.1","afi":"ipv4","interfaceIndex":32,"interfaceName":"e4.8","active":true,"onLink":true,"weight":1}]}],"169.254.0.0/16":[{"prefix":"169.254.0.0/16","prefixLen":16,"protocol":"connected","vrfId":0,"vrfName":"default","selected":true,"destSelected":true,"distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":62,"installedNexthopGroupId":62,"uptime":"00:01:29","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":25,"interfaceName":"br0","active":true}]}]} diff --git a/test/case/statd/containers/system/run/vtysh_-c_show-ipv6-route-json b/test/case/statd/containers/system/run/vtysh_-c_show-ipv6-route-json new file mode 100644 index 00000000..6eb20cab --- /dev/null +++ b/test/case/statd/containers/system/run/vtysh_-c_show-ipv6-route-json @@ -0,0 +1 @@ +{"fe80::/64":[{"prefix":"fe80::/64","prefixLen":64,"protocol":"connected","vrfId":0,"vrfName":"default","distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":0,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":47,"uptime":"00:01:33","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":7,"interfaceName":"e6","active":true}]},{"prefix":"fe80::/64","prefixLen":64,"protocol":"connected","vrfId":0,"vrfName":"default","distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":0,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":59,"uptime":"00:01:33","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":25,"interfaceName":"br0","active":true}]},{"prefix":"fe80::/64","prefixLen":64,"protocol":"connected","vrfId":0,"vrfName":"default","distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":0,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":12,"uptime":"01:55:40","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":6,"interfaceName":"e5","active":true}]},{"prefix":"fe80::/64","prefixLen":64,"protocol":"connected","vrfId":0,"vrfName":"default","distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":0,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":6,"uptime":"01:55:40","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":8,"interfaceName":"e7","active":true}]},{"prefix":"fe80::/64","prefixLen":64,"protocol":"connected","vrfId":0,"vrfName":"default","distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":0,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":7,"uptime":"01:55:40","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":3,"interfaceName":"e2","active":true}]},{"prefix":"fe80::/64","prefixLen":64,"protocol":"connected","vrfId":0,"vrfName":"default","selected":true,"destSelected":true,"distance":0,"metric":0,"installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":1,"internalNextHopActiveNum":1,"nexthopGroupId":2,"installedNexthopGroupId":2,"uptime":"01:55:40","nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":2,"interfaceName":"e1","active":true}]}]} diff --git a/test/case/statd/containers/system/timestamp b/test/case/statd/containers/system/timestamp new file mode 100644 index 00000000..e1533031 --- /dev/null +++ b/test/case/statd/containers/system/timestamp @@ -0,0 +1,2 @@ +1737367243 + diff --git a/test/case/statd/containers/test b/test/case/statd/containers/test new file mode 100755 index 00000000..8e413f57 --- /dev/null +++ b/test/case/statd/containers/test @@ -0,0 +1,13 @@ +#!/bin/sh + +yang_models="ietf-interfaces ietf-routing ietf-ospf infix-containers" + +gen_test=use_case/ospf_container/test.py +gen_iface=d3a + +cli_commands="show-interfaces" +cli_commands="$cli_commands show-routing-table_--ip_ipv4" +cli_commands="$cli_commands show-routing-table_--ip_ipv6" + +. $(readlink -f $(dirname $0)/../test.sh) +main "$@"