Files
infix/test/case/statd/containers/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

683 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": "29943",
"out-octets": "29943"
},
"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": "274021",
"out-octets": "2236951"
},
"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": "2050",
"out-octets": "72419"
},
"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": {
"in-octets": "13502",
"out-octets": "117434"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"infix-interfaces:bridge-port": {
"pvid": 1,
"bridge": "br0",
"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": "11449",
"out-octets": "113004"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"infix-interfaces:bridge-port": {
"pvid": 1,
"bridge": "br0",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"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": "31213",
"out-octets": "34316"
},
"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": "48652",
"out-octets": "60687"
},
"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"
}
]
},
"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": "31741",
"out-octets": "34279"
},
"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:veth",
"name": "veth0b",
"if-index": 11,
"admin-status": "up",
"oper-status": "up",
"phys-address": "e6:19:75:86:80:dd",
"statistics": {
"in-octets": "2013",
"out-octets": "34341"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"infix-interfaces:bridge-port": {
"pvid": 1,
"bridge": "br0",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:veth",
"name": "veth2b",
"if-index": 13,
"admin-status": "up",
"oper-status": "up",
"phys-address": "b2:fa:30:63:98:f0",
"statistics": {
"in-octets": "266",
"out-octets": "37752"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"infix-interfaces:bridge-port": {
"pvid": 1,
"bridge": "br0",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:bridge",
"name": "br0",
"if-index": 14,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"statistics": {
"in-octets": "3213",
"out-octets": "38442"
},
"ietf-ip:ipv4": {
"mtu": 1500,
"address": [
{
"ip": "169.254.1.1",
"prefix-length": 16,
"origin": "random"
}
]
},
"ietf-ip:ipv6": {
"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": 16,
"admin-status": "up",
"oper-status": "up",
"phys-address": "3e:67:0f:15:24:14",
"statistics": {
"in-octets": "726",
"out-octets": "812"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"infix-interfaces:bridge-port": {
"pvid": 6,
"bridge": "br1",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:veth",
"name": "veth3b",
"if-index": 18,
"admin-status": "up",
"oper-status": "up",
"phys-address": "b2:1c:fa:a7:45:eb",
"statistics": {
"in-octets": "726",
"out-octets": "512"
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"infix-interfaces:bridge-port": {
"bridge": "br1",
"flood": {
"broadcast": true,
"unicast": true,
"multicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
}
},
{
"type": "infix-if-type:bridge",
"name": "br1",
"if-index": 19,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"statistics": {
"in-octets": "600"
},
"ietf-ip:ipv4": {
"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": 20,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:03",
"statistics": {
"in-octets": "10654",
"out-octets": "14688"
},
"ietf-ip:ipv4": {
"mtu": 1500,
"address": [
{
"ip": "10.1.1.1",
"prefix-length": 32,
"origin": "static"
}
]
},
"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": 21,
"admin-status": "up",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:04",
"statistics": {
"in-octets": "8835",
"out-octets": "15085"
},
"ietf-ip:ipv4": {
"mtu": 1500,
"address": [
{
"ip": "10.1.1.1",
"prefix-length": 32,
"origin": "static"
}
]
},
"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": 12,
"admin-status": "up",
"oper-status": "up",
"description": "eth0",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "38078",
"out-octets": "266"
},
"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": 17,
"admin-status": "up",
"oper-status": "up",
"description": "eth1",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "768",
"out-octets": "726"
},
"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": 10,
"admin-status": "up",
"oper-status": "up",
"description": "br0",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "35483",
"out-octets": "2013"
},
"ietf-ip:ipv4": {
"mtu": 1500,
"address": [
{
"ip": "169.254.1.2",
"prefix-length": 16,
"origin": "other"
}
]
},
"ietf-ip:ipv6": {
"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": 15,
"admin-status": "up",
"oper-status": "up",
"description": "br1",
"phys-address": "06:a0:85:00:03:00",
"statistics": {
"in-octets": "812",
"out-octets": "726"
},
"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-A"
]
}
}
]
}
}