Files
infix/test/case/statd/containers/operational.json
T
Mattias Walström 3f8fae2f16 cli-pretty: show-interfaces: Refactor protocol type
now will *only* ethernet interfaces be protocol ethernet,
gretap will be protocol gretap and so on.
2025-01-24 10:56:58 +01:00

1164 lines
32 KiB
JSON

{
"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": "38742",
"out-octets": "38742"
},
"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": "147241",
"out-octets": "2027800"
},
"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": {
"in-octets": "70",
"out-octets": "43409"
},
"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": "9499",
"out-octets": "87012"
},
"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": "15551",
"out-octets": "87027"
},
"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": "43803",
"out-octets": "44713"
},
"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": "35346",
"out-octets": "67149"
},
"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": "27446",
"out-octets": "43597"
},
"type": "infix-if-type:etherlike"
},
{
"admin-status": "up",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"if-index": 10,
"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": "46:85:68:aa:a0:d1",
"statistics": {
"in-octets": "1541",
"out-octets": "25110"
},
"type": "infix-if-type:veth"
},
{
"admin-status": "up",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"if-index": 12,
"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": "aa:08:99:ea:03:99",
"statistics": {
"in-octets": "726",
"out-octets": "21517"
},
"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": 13,
"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": "3201",
"out-octets": "37293"
},
"type": "infix-if-type:bridge"
},
{
"admin-status": "up",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"if-index": 15,
"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": "62:f5:af:85:38:a5",
"statistics": {
"in-octets": "726",
"out-octets": "812"
},
"type": "infix-if-type:veth"
},
{
"admin-status": "up",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"if-index": 17,
"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": "1a:03:f7:20:d2:5b",
"statistics": {
"in-octets": "726",
"out-octets": "512"
},
"type": "infix-if-type:veth"
},
{
"admin-status": "up",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"if-index": 18,
"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": "600"
},
"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": 19,
"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": "7733",
"out-octets": "25352"
},
"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": 20,
"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": "13695",
"out-octets": "25121"
},
"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": 11,
"infix-interfaces:container-network": {
"containers": [
"container-B"
]
},
"name": "veth2a",
"oper-status": "up",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "21517",
"out-octets": "726"
},
"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": 16,
"infix-interfaces:container-network": {
"containers": [
"container-B"
]
},
"name": "veth3a",
"oper-status": "up",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "512",
"out-octets": "726"
},
"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": 14,
"infix-interfaces:container-network": {
"containers": [
"container-A"
]
},
"name": "veth1a",
"oper-status": "up",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "812",
"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": 9,
"infix-interfaces:container-network": {
"containers": [
"container-A"
]
},
"name": "veth0a",
"oper-status": "up",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "25110",
"out-octets": "1541"
},
"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": 23299,
"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": 22827,
"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": 39999,
"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-24T09:55:47+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-24T09:55:08+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-24T09:54:55+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-24T09:54:54+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-24T09:54:53+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-24T09:54:53+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-24T09:55:47+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-24T09:55:47+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-24T09:54:59+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-24T09:54:55+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-24T09:54:55+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-24T09:54:35+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-24T09:54:35+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-24T09:54:35+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-24T09:54:35+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": "54f467f95bae15a0891acb1efbdf416232c49ea46bb60e796da187d320a746fc",
"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 59 seconds"
},
{
"command": "/usr/sbin/httpd -f -v -p 91",
"id": "d3a542dc43f4d6ca7a9e2cff254126f337e41bb5f1e10f6613272d31ec8d5e79",
"image": "localhost/curios-httpd-oci-amd64-v24.11.0:latest",
"image-id": "d6930d60a73be9980f8e19b4b4f63586a6d3492178e20bea962e4e9b8c654033",
"name": "container-A",
"network": {
"interface": [
{
"name": "veth1a"
},
{
"name": "veth0a"
}
],
"publish": [
"35121->91/tcp"
]
},
"running": true,
"status": "Up 59 seconds"
},
{
"command": "/usr/sbin/nft-helper /etc/nftables.conf",
"id": "7ae41768fb053a16b25ee3596a80bad0cf2422dada9ac862d24af744c8ad0e6e",
"image": "localhost/curios-nftables-oci-amd64-v24.11.0:latest",
"image-id": "7a3cc502436250357a6664100a600f306334b4d7203890b85b7ea9b8da6b5665",
"name": "firewall",
"network": {
"host": true
},
"running": true,
"status": "Up 59 seconds"
}
]
}
}