Files
infix/test/case/statd/interfaces-all/ietf-interfaces.json
T
Mattias Walström 2d806de2cd yanger: Refactor how ethtool is read from interfaces
Upgrade ethtool to get json support for main command:

ethtool --json eth1
2025-02-13 20:27:00 +01:00

737 lines
18 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": "1738370",
"out-octets": "1738370"
},
"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:ethernet",
"name": "e1",
"if-index": 2,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:01",
"statistics": {
"in-octets": "320955",
"out-octets": "1984258"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "fe80::2a0:85ff:fe00:301",
"prefix-length": 64,
"origin": "link-layer"
}
]
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
}
},
{
"type": "infix-if-type:ethernet",
"name": "e2",
"if-index": 3,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:02",
"statistics": {
"in-octets": "70",
"out-octets": "39889"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "fe80::2a0:85ff:fe00:302",
"prefix-length": 64,
"origin": "link-layer"
}
]
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
}
},
{
"type": "infix-if-type:ethernet",
"name": "e3",
"if-index": 4,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:03",
"statistics": {
"out-octets": "45391"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"infix-interfaces:bridge-port": {
"bridge": "br-Q",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:ethernet",
"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": "39570"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "fe80::2a0:85ff:fe00:304",
"prefix-length": 64,
"origin": "link-layer"
}
]
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
}
},
{
"type": "infix-if-type:ethernet",
"name": "e5",
"if-index": 6,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:05",
"statistics": {
"in-octets": "19910",
"out-octets": "39388"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "fe80::2a0:85ff:fe00:305",
"prefix-length": 64,
"origin": "link-layer"
}
]
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
}
},
{
"type": "infix-if-type:ethernet",
"name": "e6",
"if-index": 7,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:06",
"statistics": {
"in-octets": "26909",
"out-octets": "41285"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "fe80::2a0:85ff:fe00:306",
"prefix-length": 64,
"origin": "link-layer"
}
]
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
}
},
{
"type": "infix-if-type:ethernet",
"name": "e7",
"if-index": 8,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:07",
"statistics": {
"in-octets": "23322",
"out-octets": "39536"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500,
"address": [
{
"ip": "fe80::2a0:85ff:fe00:307",
"prefix-length": 64,
"origin": "link-layer"
}
]
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
}
},
{
"type": "infix-if-type:bridge",
"name": "br-0",
"if-index": 9,
"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": 10,
"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": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:bridge",
"name": "br-X",
"if-index": 11,
"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": 12,
"admin-status": "up",
"oper-status": "up",
"phys-address": "36:da:80:06:7f:99",
"statistics": {
"in-octets": "17190",
"out-octets": "299"
},
"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": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:veth",
"name": "veth0a",
"if-index": 13,
"admin-status": "up",
"oper-status": "up",
"phys-address": "6e:d0:98:c4:e7:ef",
"statistics": {
"in-octets": "299",
"out-octets": "17190"
},
"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": 14,
"admin-status": "up",
"oper-status": "up",
"phys-address": "6e:d0:98:c4:e7:ef",
"statistics": {
"out-octets": "16936"
},
"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": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:bridge",
"name": "br-D",
"if-index": 15,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"statistics": {
"out-octets": "16936"
},
"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": 16,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"statistics": {
"in-octets": "13940"
},
"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": 17,
"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": 18,
"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": 19,
"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": 20,
"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": 21,
"admin-status": "up",
"oper-status": "up",
"phys-address": "f6:d4:96:d8:9f:96",
"statistics": {
"out-octets": "243"
},
"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": 22,
"admin-status": "up",
"oper-status": "up",
"phys-address": "7a:46:13:bd:fa:e6",
"statistics": {
"out-octets": "199"
},
"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": 23,
"admin-status": "up",
"oper-status": "up",
"phys-address": "8a:ea:59:32:df:70",
"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": 24,
"admin-status": "up",
"oper-status": "up",
"phys-address": "3e:30:c6:a1:71:64",
"statistics": {
"out-octets": "7690"
},
"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
}
}
]
}
}