Files
infix/test/case/statd/interfaces-all/ietf-interfaces.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

687 lines
16 KiB
JSON

{
"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": "3016668",
"out-octets": "3016668"
},
"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": "2776431",
"out-octets": "5420321"
},
"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": {
"in-octets": "700",
"out-octets": "288796"
},
"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": "770",
"out-octets": "892021"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:bridge-port": {
"bridge": "br-Q",
"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": "70",
"out-octets": "275470"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "fe80::2a0:85ff:fe00:304",
"prefix-length": 64,
"origin": "link-layer"
}
]
}
},
{
"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": "182086",
"out-octets": "275083"
},
"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": "185476",
"out-octets": "275412"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"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": "183112",
"out-octets": "274994"
},
"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:bridge",
"name": "br-0",
"if-index": 73,
"admin-status": "up",
"oper-status": "down",
"phys-address": "00:a0:85:00:03:00",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:bridge": {
"multicast": {
"snooping": false,
"querier": "off"
},
"multicast-filters": {
"multicast-filter": []
}
}
},
{
"type": "infix-if-type:vlan",
"name": "e2.30",
"if-index": 74,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:02",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:vlan": {
"tag-type": "ieee802-dot1q-types:c-vlan",
"id": 30,
"lower-layer-if": "e2"
},
"infix-interfaces:bridge-port": {
"bridge": "br-X",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp-state": "forwarding"
}
},
{
"type": "infix-if-type:bridge",
"name": "br-X",
"if-index": 75,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:bridge": {
"multicast": {
"snooping": false,
"querier": "off"
},
"multicast-filters": {
"multicast-filter": []
}
}
},
{
"type": "infix-if-type:veth",
"name": "veth0b",
"if-index": 76,
"admin-status": "up",
"oper-status": "up",
"phys-address": "86:e0:fb:54:94:e8",
"statistics": {
"in-octets": "37942",
"out-octets": "305"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:veth": {
"peer": "veth0a"
},
"infix-interfaces:bridge-port": {
"bridge": "br-Q",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp-state": "forwarding"
}
},
{
"type": "infix-if-type:veth",
"name": "veth0a",
"if-index": 77,
"admin-status": "up",
"oper-status": "up",
"phys-address": "be:40:fd:0e:8d:c6",
"statistics": {
"in-octets": "305",
"out-octets": "37942"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:veth": {
"peer": "veth0b"
}
},
{
"type": "infix-if-type:vlan",
"name": "veth0a.20",
"if-index": 78,
"admin-status": "up",
"oper-status": "up",
"phys-address": "be:40:fd:0e:8d:c6",
"statistics": {
"out-octets": "37682"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:vlan": {
"tag-type": "ieee802-dot1q-types:c-vlan",
"id": 20,
"lower-layer-if": "veth0a"
},
"infix-interfaces:bridge-port": {
"bridge": "br-D",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp-state": "forwarding"
}
},
{
"type": "infix-if-type:bridge",
"name": "br-D",
"if-index": 79,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"statistics": {
"out-octets": "37682"
},
"ietf-ip:ipv4": {
"mtu": 1500,
"address": [
{
"ip": "10.0.0.1",
"prefix-length": 8,
"origin": "static"
},
{
"ip": "192.168.20.1",
"prefix-length": 24,
"origin": "static"
}
]
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "2001:db8::1",
"prefix-length": 64,
"origin": "static"
},
{
"ip": "fe80::2a0:85ff:fe00:300",
"prefix-length": 64,
"origin": "link-layer"
}
]
},
"infix-interfaces:bridge": {
"multicast": {
"snooping": false,
"querier": "off"
},
"multicast-filters": {
"multicast-filter": []
}
}
},
{
"type": "infix-if-type:bridge",
"name": "br-Q",
"if-index": 80,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"statistics": {
"in-octets": "33728"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:bridge": {
"vlans": {
"proto": "ieee802-dot1q-types:c-vlan",
"vlan": [
{
"vid": 20,
"untagged": [
"br-Q"
],
"tagged": [
"e3",
"veth0b"
],
"multicast": {
"snooping": true,
"querier": "off"
},
"multicast-filters": {
"multicast-filter": []
}
},
{
"vid": 30,
"untagged": [
"br-Q"
],
"tagged": [
"e3",
"veth0b"
],
"multicast": {
"snooping": true,
"querier": "off"
},
"multicast-filters": {
"multicast-filter": []
}
},
{
"vid": 40,
"untagged": [],
"tagged": [
"br-Q",
"e3",
"veth0b"
],
"multicast": {
"snooping": true,
"querier": "off"
},
"multicast-filters": {
"multicast-filter": []
}
}
]
}
}
},
{
"type": "infix-if-type:vlan",
"name": "br-Q.40",
"if-index": 81,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:vlan": {
"tag-type": "ieee802-dot1q-types:c-vlan",
"id": 40,
"lower-layer-if": "br-Q"
}
},
{
"type": "infix-if-type:vlan",
"name": "e3.10",
"if-index": 82,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:03",
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:vlan": {
"tag-type": "ieee802-dot1q-types:c-vlan",
"id": 10,
"lower-layer-if": "e3"
}
},
{
"type": "infix-if-type:gre",
"name": "gre-v4",
"if-index": 83,
"admin-status": "up",
"oper-status": "up",
"ietf-ip:ipv4": {
"mtu": 1476
},
"ietf-ip:ipv6": {
"mtu": 1476
},
"infix-interfaces:gre": {
"local": "192.168.20.1",
"remote": "192.168.20.2"
}
},
{
"type": "infix-if-type:gre",
"name": "gre-v6",
"if-index": 84,
"admin-status": "up",
"oper-status": "up",
"ietf-ip:ipv4": {
"mtu": 1448,
"address": [
{
"ip": "192.168.50.2",
"prefix-length": 16,
"origin": "static"
}
]
},
"ietf-ip:ipv6": {
"mtu": 1448
},
"infix-interfaces:gre": {
"local": "2001:db8::1",
"remote": "2001:db8::2"
}
},
{
"type": "infix-if-type:gretap",
"name": "gretap-v4",
"if-index": 85,
"admin-status": "up",
"oper-status": "up",
"phys-address": "ba:a0:f5:c1:68:83",
"statistics": {
"out-octets": "249"
},
"ietf-ip:ipv4": {
"mtu": 1462
},
"ietf-ip:ipv6": {
"mtu": 1462
},
"infix-interfaces:gre": {
"local": "192.168.20.1",
"remote": "192.168.20.2"
}
},
{
"type": "infix-if-type:gretap",
"name": "gretap-v6",
"if-index": 86,
"admin-status": "up",
"oper-status": "up",
"phys-address": "1a:1b:84:dd:ca:2c",
"statistics": {
"out-octets": "205"
},
"ietf-ip:ipv4": {
"mtu": 1434
},
"ietf-ip:ipv6": {
"mtu": 1434
},
"infix-interfaces:gre": {
"local": "2001:db8::1",
"remote": "2001:db8::2"
}
},
{
"type": "infix-if-type:vxlan",
"name": "vxlan-v4",
"if-index": 87,
"admin-status": "up",
"oper-status": "up",
"phys-address": "f6:56:cb:3e:55:0f",
"ietf-ip:ipv4": {
"mtu": 1500,
"address": [
{
"ip": "192.168.30.2",
"prefix-length": 24,
"origin": "static"
}
]
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:vxlan": {
"local": "192.168.20.100",
"remote": "192.168.20.200",
"vni": 4
}
},
{
"type": "infix-if-type:vxlan",
"name": "vxlan-v6",
"if-index": 88,
"admin-status": "up",
"oper-status": "up",
"phys-address": "fe:aa:b4:8a:33:1b",
"statistics": {
"out-octets": "18219"
},
"ietf-ip:ipv4": {
"mtu": 1500,
"address": [
{
"ip": "192.168.40.2",
"prefix-length": 24,
"origin": "static"
}
]
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"infix-interfaces:vxlan": {
"local": "2001:db8::100",
"remote": "2001:db8::200",
"vni": 6
}
}
]
}
}