Skip to content

Commit f60bf75

Browse files
brmcdougKarthik Kumaravel
authored andcommitted
Get oper snips (#14)
* added some get-oper json snips to examples/json/ * adding cpu and interface stats * added some fib items to json folder * added some interface and rib json files
1 parent 569b76c commit f60bf75

6 files changed

+201
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"Cisco-IOS-XR-ipv4-bgp-oper:bgp": {
3+
"instances": {
4+
"instance": {
5+
"instance-active": {
6+
"default-vrf": {
7+
"neighbors": {
8+
"neighbor": [
9+
{
10+
"neighbor-address": {
11+
},
12+
"description": {
13+
},
14+
"local-as": {
15+
},
16+
"remote-as": {
17+
},
18+
"messages-sent": {
19+
},
20+
"messages-received": {
21+
},
22+
"connection-state": {
23+
}
24+
}
25+
]
26+
}
27+
}
28+
}
29+
}
30+
}
31+
}
32+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"Cisco-IOS-XR-ifmgr-oper:interface-dampening": {
3+
"interfaces": {
4+
"interface": [
5+
{
6+
"interface-name": {
7+
},
8+
"if-dampening": {
9+
"state-transition-count": {
10+
},
11+
"last-state-transition-time": {
12+
},
13+
"interface-dampening": {
14+
"flaps": {
15+
}
16+
}
17+
}
18+
}
19+
]
20+
}
21+
}
22+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"Cisco-IOS-XR-ifmgr-oper:interface-dampening": {
3+
}
4+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"Cisco-IOS-XR-procmem-oper:processes-memory": {
3+
"nodes": {
4+
"node": [
5+
{
6+
"node-name": "0/RP0/CPU0",
7+
"process-ids": {
8+
"process-id": {
9+
}
10+
}
11+
}
12+
]
13+
}
14+
}
15+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"Cisco-IOS-XR-ip-rib-ipv4-oper:rib": {
3+
"vrfs": {
4+
"vrf": [
5+
{
6+
"vrf-name": "default",
7+
"afs": {
8+
"af": [
9+
{
10+
"af-name": "IPv4",
11+
"safs": {
12+
"saf": [
13+
{
14+
"saf-name": "Unicast",
15+
"ip-rib-route-table-names": {
16+
"ip-rib-route-table-name": [
17+
{
18+
"route-table-name": "default",
19+
"routes": {
20+
"route": [
21+
{
22+
"prefix": {
23+
},
24+
"prefix-length": {
25+
},
26+
"protocol-name": {
27+
},
28+
"distance": {
29+
},
30+
"metric": {
31+
},
32+
"instance": {
33+
},
34+
"tag": {
35+
},
36+
"route-path": {
37+
"ipv4-rib-edm-path": [
38+
{
39+
"interface-name": {
40+
},
41+
"information-source": {
42+
}
43+
}
44+
]
45+
}
46+
}
47+
]
48+
}
49+
}
50+
]
51+
}
52+
}
53+
]
54+
}
55+
}
56+
]
57+
}
58+
}
59+
]
60+
}
61+
}
62+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"Cisco-IOS-XR-ip-rib-ipv6-oper:ipv6-rib": {
3+
"vrfs": {
4+
"vrf": [
5+
{
6+
"vrf-name": "default",
7+
"afs": {
8+
"af": [
9+
{
10+
"af-name": "IPv6",
11+
"safs": {
12+
"saf": [
13+
{
14+
"saf-name": "Unicast",
15+
"ip-rib-route-table-names": {
16+
"ip-rib-route-table-name": [
17+
{
18+
"route-table-name": "default",
19+
"protocol": {
20+
"local": {
21+
"non-as": {
22+
"protocol-routes": {
23+
"protocol-route": [
24+
{
25+
"prefix": {
26+
},
27+
"prefix-length": {
28+
},
29+
"protocol-name": {
30+
},
31+
"tag": {
32+
},
33+
"distance": {
34+
},
35+
"metric": {
36+
},
37+
"route-path": {
38+
"ipv6-rib-edm-path": [
39+
{
40+
"information-source": {
41+
},
42+
"interface-name": {
43+
}
44+
}
45+
]
46+
}
47+
}
48+
]
49+
}
50+
}
51+
}
52+
}
53+
}
54+
]
55+
}
56+
}
57+
]
58+
}
59+
}
60+
]
61+
}
62+
}
63+
]
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)