Skip to content
Snippets Groups Projects
Commit 133467fa authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

using reflection to identify top-level device field

parent afc41ebd
No related branches found
No related tags found
2 merge requests!106Resolve "Job Failed #240443",!90Develop
[
{
"time": "1970-01-01T01:00:00+01:00",
"updates": [
{
"Path": "interfaces/interface[name=Ethernet510]",
"values": {
"interfaces/interface": {
"openconfig-if-ethernet:ethernet": {
"arista-intf-augments:pfc": {
"priorities": {
"priority": [
{
"index": 0,
"state": {
"in-frames": "0",
"index": 0,
"out-frames": "0"
}
},
{
"index": 1,
"state": {
"in-frames": "0",
"index": 1,
"out-frames": "0"
}
},
{
"index": 2,
"state": {
"in-frames": "0",
"index": 2,
"out-frames": "0"
}
},
{
"index": 3,
"state": {
"in-frames": "0",
"index": 3,
"out-frames": "0"
}
},
{
"index": 4,
"state": {
"in-frames": "0",
"index": 4,
"out-frames": "0"
}
},
{
"index": 5,
"state": {
"in-frames": "0",
"index": 5,
"out-frames": "0"
}
},
{
"index": 6,
"state": {
"in-frames": "0",
"index": 6,
"out-frames": "0"
}
},
{
"index": 7,
"state": {
"in-frames": "0",
"index": 7,
"out-frames": "0"
}
}
]
}
},
"config": {
"arista-intf-augments:fec-encoding": {
"disabled": false,
"fire-code": false,
"reed-solomon": false,
"reed-solomon544": false
},
"arista-intf-augments:sfp-1000base-t": false,
"mac-address": "00:00:00:00:00:00",
"openconfig-hercules-interfaces:forwarding-viable": true,
"port-speed": "SPEED_UNKNOWN"
},
"state": {
"arista-intf-augments:supported-speeds": [
"SPEED_200GB_8LANE",
"SPEED_100MB",
"SPEED_1GB",
"SPEED_10GB",
"SPEED_400GB",
"SPEED_40GB",
"SPEED_2500MB",
"SPEED_50GB",
"SPEED_50GB_1LANE",
"SPEED_25GB",
"SPEED_100GB",
"SPEED_100GB_2LANE",
"SPEED_10MB",
"SPEED_200GB_4LANE",
"SPEED_5GB"
],
"auto-negotiate": false,
"counters": {
"in-crc-errors": "0",
"in-fragment-frames": "0",
"in-jabber-frames": "0",
"in-mac-control-frames": "0",
"in-mac-pause-frames": "0",
"in-oversize-frames": "0",
"out-mac-control-frames": "0",
"out-mac-pause-frames": "0"
},
"duplex-mode": "FULL",
"enable-flow-control": false,
"hw-mac-address": "02:42:c0:a8:02:42",
"mac-address": "02:42:c0:a8:02:42",
"negotiated-port-speed": "SPEED_UNKNOWN",
"openconfig-hercules-interfaces:forwarding-viable": true,
"port-speed": "SPEED_UNKNOWN"
}
},
"openconfig-interfaces:config": {
"arista-intf-augments:load-interval": 300,
"description": "",
"enabled": true,
"loopback-mode": false,
"mtu": 0,
"name": "Ethernet510",
"openconfig-vlan:tpid": "openconfig-vlan-types:TPID_0X8100",
"type": "iana-if-type:ethernetCsmacd"
},
"openconfig-interfaces:hold-time": {
"config": {
"down": 0,
"up": 0
},
"state": {
"down": 0,
"up": 0
}
},
"openconfig-interfaces:name": "Ethernet510",
"openconfig-interfaces:state": {
"admin-status": "UP",
"arista-intf-augments:inactive": false,
"counters": {
"in-broadcast-pkts": "344691",
"in-discards": "0",
"in-errors": "0",
"in-fcs-errors": "0",
"in-multicast-pkts": "1",
"in-octets": "93260151",
"in-unicast-pkts": "0",
"out-broadcast-pkts": "0",
"out-discards": "0",
"out-errors": "0",
"out-multicast-pkts": "0",
"out-octets": "0",
"out-unicast-pkts": "0"
},
"description": "",
"enabled": true,
"ifindex": 510,
"last-change": "1614091948142304000",
"loopback-mode": false,
"mtu": 0,
"name": "Ethernet510",
"openconfig-platform-port:hardware-port": "Port510",
"openconfig-vlan:tpid": "openconfig-vlan-types:TPID_0X8100",
"oper-status": "UP",
"type": "iana-if-type:ethernetCsmacd"
},
"openconfig-interfaces:subinterfaces": {
"subinterface": [
{
"config": {
"description": "",
"enabled": true,
"index": 0
},
"index": 0,
"openconfig-if-ip:ipv4": {
"config": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
},
"state": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
},
"unnumbered": {
"config": {
"enabled": false
},
"state": {
"enabled": false
}
}
},
"openconfig-if-ip:ipv6": {
"config": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
},
"state": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
}
},
"state": {
"counters": {
"in-fcs-errors": "0"
},
"description": "",
"enabled": true,
"index": 0
}
}
]
}
}
}
}
]
}
]
[
{
"time": "1970-01-01T01:00:00+01:00",
"updates": [
{
"Path": "interfaces",
"values": {
"interfaces": {
"openconfig-interfaces:interface": [
{
"config": {
"arista-intf-augments:load-interval": 300,
"description": "",
"enabled": true,
"loopback-mode": false,
"mtu": 0,
"name": "Ethernet510",
"openconfig-vlan:tpid": "openconfig-vlan-types:TPID_0X8100",
"type": "iana-if-type:ethernetCsmacd"
},
"hold-time": {
"config": {
"down": 0,
"up": 0
},
"state": {
"down": 0,
"up": 0
}
},
"name": "Ethernet510",
"openconfig-if-ethernet:ethernet": {
"arista-intf-augments:pfc": {
"priorities": {
"priority": [
{
"index": 0,
"state": {
"in-frames": "0",
"index": 0,
"out-frames": "0"
}
},
{
"index": 1,
"state": {
"in-frames": "0",
"index": 1,
"out-frames": "0"
}
},
{
"index": 2,
"state": {
"in-frames": "0",
"index": 2,
"out-frames": "0"
}
},
{
"index": 3,
"state": {
"in-frames": "0",
"index": 3,
"out-frames": "0"
}
},
{
"index": 4,
"state": {
"in-frames": "0",
"index": 4,
"out-frames": "0"
}
},
{
"index": 5,
"state": {
"in-frames": "0",
"index": 5,
"out-frames": "0"
}
},
{
"index": 6,
"state": {
"in-frames": "0",
"index": 6,
"out-frames": "0"
}
},
{
"index": 7,
"state": {
"in-frames": "0",
"index": 7,
"out-frames": "0"
}
}
]
}
},
"config": {
"arista-intf-augments:fec-encoding": {
"disabled": false,
"fire-code": false,
"reed-solomon": false,
"reed-solomon544": false
},
"arista-intf-augments:sfp-1000base-t": false,
"mac-address": "00:00:00:00:00:00",
"openconfig-hercules-interfaces:forwarding-viable": true,
"port-speed": "SPEED_UNKNOWN"
},
"state": {
"arista-intf-augments:supported-speeds": [
"SPEED_200GB_8LANE",
"SPEED_100MB",
"SPEED_1GB",
"SPEED_10GB",
"SPEED_400GB",
"SPEED_40GB",
"SPEED_2500MB",
"SPEED_50GB",
"SPEED_50GB_1LANE",
"SPEED_25GB",
"SPEED_100GB",
"SPEED_100GB_2LANE",
"SPEED_10MB",
"SPEED_200GB_4LANE",
"SPEED_5GB"
],
"auto-negotiate": false,
"counters": {
"in-crc-errors": "0",
"in-fragment-frames": "0",
"in-jabber-frames": "0",
"in-mac-control-frames": "0",
"in-mac-pause-frames": "0",
"in-oversize-frames": "0",
"out-mac-control-frames": "0",
"out-mac-pause-frames": "0"
},
"duplex-mode": "FULL",
"enable-flow-control": false,
"hw-mac-address": "02:42:c0:a8:02:42",
"mac-address": "02:42:c0:a8:02:42",
"negotiated-port-speed": "SPEED_UNKNOWN",
"openconfig-hercules-interfaces:forwarding-viable": true,
"port-speed": "SPEED_UNKNOWN"
}
},
"state": {
"admin-status": "UP",
"arista-intf-augments:inactive": false,
"counters": {
"in-broadcast-pkts": "344691",
"in-discards": "0",
"in-errors": "0",
"in-fcs-errors": "0",
"in-multicast-pkts": "1",
"in-octets": "93260151",
"in-unicast-pkts": "0",
"out-broadcast-pkts": "0",
"out-discards": "0",
"out-errors": "0",
"out-multicast-pkts": "0",
"out-octets": "0",
"out-unicast-pkts": "0"
},
"description": "",
"enabled": true,
"ifindex": 510,
"last-change": "1614091948142304000",
"loopback-mode": false,
"mtu": 0,
"name": "Ethernet510",
"openconfig-platform-port:hardware-port": "Port510",
"openconfig-vlan:tpid": "openconfig-vlan-types:TPID_0X8100",
"oper-status": "UP",
"type": "iana-if-type:ethernetCsmacd"
},
"subinterfaces": {
"subinterface": [
{
"config": {
"description": "",
"enabled": true,
"index": 0
},
"index": 0,
"openconfig-if-ip:ipv4": {
"config": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
},
"state": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
},
"unnumbered": {
"config": {
"enabled": false
},
"state": {
"enabled": false
}
}
},
"openconfig-if-ip:ipv6": {
"config": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
},
"state": {
"dhcp-client": false,
"enabled": false,
"mtu": 1500
}
},
"state": {
"counters": {
"in-fcs-errors": "0"
},
"description": "",
"enabled": true,
"index": 0
}
}
]
}
}
]
}
}
}
]
}
]
Source diff could not be displayed: it is too large. Options to address this: view the blob.
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment