Files
infix/test/case/statd/bridge-mdb/operational.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

341 lines
8.0 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": "15212",
"out-octets": "15212"
},
"type": "infix-if-type:loopback"
},
{
"admin-status": "up",
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"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": "143181",
"out-octets": "1975737"
},
"type": "infix-if-type:ethernet"
},
{
"admin-status": "up",
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"ietf-ip:ipv4": {
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"if-index": 3,
"infix-interfaces:bridge-port": {
"bridge": "br0",
"flood": {
"broadcast": true,
"multicast": true,
"unicast": true
},
"multicast": {
"fast-leave": false,
"router": "auto"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
},
"name": "e2",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:02",
"statistics": {
"in-octets": "1980",
"out-octets": "46052"
},
"type": "infix-if-type:ethernet"
},
{
"admin-status": "up",
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"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"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
},
"name": "e3",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:03",
"statistics": {
"in-octets": "866",
"out-octets": "47146"
},
"type": "infix-if-type:ethernet"
},
{
"admin-status": "up",
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"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"
},
"stp": {
"cist": {
"state": "forwarding"
}
}
},
"name": "e4",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:04",
"statistics": {
"in-octets": "936",
"out-octets": "46200"
},
"type": "infix-if-type:ethernet"
},
{
"admin-status": "up",
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"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": "14460",
"out-octets": "17169"
},
"type": "infix-if-type:ethernet"
},
{
"admin-status": "up",
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"ietf-ip:ipv4": {
"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": "15383",
"out-octets": "17129"
},
"type": "infix-if-type:ethernet"
},
{
"admin-status": "up",
"ieee802-ethernet-interface:ethernet": {
"auto-negotation": {
"enable": false
}
},
"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": "12245",
"out-octets": "17169"
},
"type": "infix-if-type:ethernet"
},
{
"admin-status": "up",
"ietf-ip:ipv4": {
"address": [
{
"ip": "10.0.0.1",
"origin": "static",
"prefix-length": 24
}
],
"mtu": 1500
},
"ietf-ip:ipv6": {
"mtu": 1500
},
"if-index": 9,
"infix-interfaces:bridge": {
"multicast": {
"querier": "auto",
"query-interval": 125,
"snooping": true
},
"multicast-filters": {
"multicast-filter": [
{
"group": "01:00:00:01:02:03",
"ports": [
{
"port": "e3",
"state": "permanent"
}
]
},
{
"group": "224.1.1.1",
"ports": [
{
"port": "e3",
"state": "permanent"
}
]
},
{
"group": "ff02::6a",
"ports": [
{
"port": "br0",
"state": "temporary"
}
]
}
]
}
},
"name": "br0",
"oper-status": "up",
"phys-address": "00:a0:85:00:03:00",
"statistics": {
"in-octets": "2312",
"out-octets": "38953"
},
"type": "infix-if-type:bridge"
}
]
}
}