|
9 | 9 | {"params": {"mode": "all-same", "operator_data": True}}, |
10 | 10 | "result[0].vrfs.default.peerList[*].[$peerAddress$,peerGroup,vrf,state]", |
11 | 11 | ( |
12 | | - [ |
13 | | - { |
14 | | - "7.7.7.7": { |
15 | | - "peerGroup": "EVPN-OVERLAY-SPINE", |
16 | | - "state": "Idle", |
17 | | - "vrf": "default", |
18 | | - } |
19 | | - }, |
20 | | - { |
21 | | - "10.1.0.0": { |
22 | | - "peerGroup": "IPv4-UNDERLAY-SPINE", |
23 | | - "state": "Idle", |
24 | | - "vrf": "default", |
25 | | - } |
26 | | - }, |
27 | | - { |
28 | | - "10.2.0.0": { |
29 | | - "peerGroup": "IPv4-UNDERLAY-SPINE", |
30 | | - "state": "Idle", |
31 | | - "vrf": "default", |
32 | | - } |
33 | | - }, |
34 | | - { |
35 | | - "10.64.207.255": { |
36 | | - "peerGroup": "IPv4-UNDERLAY-MLAG-PEER", |
37 | | - "state": "Idle", |
38 | | - "vrf": "default", |
39 | | - } |
40 | | - }, |
41 | | - ], |
| 12 | + [ |
| 13 | + { |
| 14 | + "7.7.7.7": { |
| 15 | + "peerGroup": "EVPN-OVERLAY-SPINE", |
| 16 | + "state": "Idle", |
| 17 | + "vrf": "default", |
| 18 | + } |
| 19 | + }, |
| 20 | + { |
| 21 | + "10.1.0.0": { |
| 22 | + "peerGroup": "IPv4-UNDERLAY-SPINE", |
| 23 | + "state": "Idle", |
| 24 | + "vrf": "default", |
| 25 | + } |
| 26 | + }, |
| 27 | + { |
| 28 | + "10.2.0.0": { |
| 29 | + "peerGroup": "IPv4-UNDERLAY-SPINE", |
| 30 | + "state": "Idle", |
| 31 | + "vrf": "default", |
| 32 | + } |
| 33 | + }, |
| 34 | + { |
| 35 | + "10.64.207.255": { |
| 36 | + "peerGroup": "IPv4-UNDERLAY-MLAG-PEER", |
| 37 | + "state": "Idle", |
| 38 | + "vrf": "default", |
| 39 | + } |
| 40 | + }, |
| 41 | + ], |
42 | 42 | True, |
43 | 43 | ), |
44 | 44 | ) |
|
55 | 55 | {"params": {"mode": "not-contains", "operator_data": "EVPN"}}, |
56 | 56 | "result[0].vrfs.default.peerList[*].[$peerAddress$,peerGroup]", |
57 | 57 | ( |
58 | | - |
59 | | - [ |
60 | | - {"10.1.0.0": {"peerGroup": "IPv4-UNDERLAY-SPINE"}}, |
61 | | - {"10.2.0.0": {"peerGroup": "IPv4-UNDERLAY-SPINE"}}, |
62 | | - {"10.64.207.255": {"peerGroup": "IPv4-UNDERLAY-MLAG-PEER"}}, |
63 | | - ], |
| 58 | + [ |
| 59 | + {"10.1.0.0": {"peerGroup": "IPv4-UNDERLAY-SPINE"}}, |
| 60 | + {"10.2.0.0": {"peerGroup": "IPv4-UNDERLAY-SPINE"}}, |
| 61 | + {"10.64.207.255": {"peerGroup": "IPv4-UNDERLAY-MLAG-PEER"}}, |
| 62 | + ], |
64 | 63 | False, |
65 | 64 | ), |
66 | 65 | ) |
|
70 | 69 | {"params": {"mode": "is-gt", "operator_data": 20}}, |
71 | 70 | "result[0].vrfs.default.peerList[*].[$peerAddress$,prefixesSent]", |
72 | 71 | ( |
73 | | - [ |
74 | | - {"7.7.7.7": {"prefixesSent": 50}}, |
75 | | - {"10.1.0.0": {"prefixesSent": 50}}, |
76 | | - {"10.2.0.0": {"prefixesSent": 50}}, |
77 | | - {"10.64.207.255": {"prefixesSent": 50}}, |
78 | | - ], |
| 72 | + [ |
| 73 | + {"7.7.7.7": {"prefixesSent": 50}}, |
| 74 | + {"10.1.0.0": {"prefixesSent": 50}}, |
| 75 | + {"10.2.0.0": {"prefixesSent": 50}}, |
| 76 | + {"10.64.207.255": {"prefixesSent": 50}}, |
| 77 | + ], |
79 | 78 | False, |
80 | 79 | ), |
81 | 80 | ) |
|
85 | 84 | {"params": {"mode": "is-lt", "operator_data": 60}}, |
86 | 85 | "result[0].vrfs.default.peerList[*].[$peerAddress$,prefixesSent]", |
87 | 86 | ( |
88 | | - [ |
89 | | - {"7.7.7.7": {"prefixesSent": 50}}, |
90 | | - {"10.1.0.0": {"prefixesSent": 50}}, |
91 | | - {"10.2.0.0": {"prefixesSent": 50}}, |
92 | | - {"10.64.207.255": {"prefixesSent": 50}}, |
93 | | - ], |
| 87 | + [ |
| 88 | + {"7.7.7.7": {"prefixesSent": 50}}, |
| 89 | + {"10.1.0.0": {"prefixesSent": 50}}, |
| 90 | + {"10.2.0.0": {"prefixesSent": 50}}, |
| 91 | + {"10.64.207.255": {"prefixesSent": 50}}, |
| 92 | + ], |
94 | 93 | False, |
95 | 94 | ), |
96 | 95 | ) |
|
100 | 99 | {"params": {"mode": "is-in", "operator_data": [20, 40, 50]}}, |
101 | 100 | "result[0].vrfs.default.peerList[*].[$peerAddress$,prefixesSent]", |
102 | 101 | ( |
103 | | - [ |
104 | | - {"7.7.7.7": {"prefixesSent": 50}}, |
105 | | - {"10.1.0.0": {"prefixesSent": 50}}, |
106 | | - {"10.2.0.0": {"prefixesSent": 50}}, |
107 | | - {"10.64.207.255": {"prefixesSent": 50}}, |
108 | | - ], |
| 102 | + [ |
| 103 | + {"7.7.7.7": {"prefixesSent": 50}}, |
| 104 | + {"10.1.0.0": {"prefixesSent": 50}}, |
| 105 | + {"10.2.0.0": {"prefixesSent": 50}}, |
| 106 | + {"10.64.207.255": {"prefixesSent": 50}}, |
| 107 | + ], |
109 | 108 | False, |
110 | 109 | ), |
111 | 110 | ) |
|
115 | 114 | {"params": {"mode": "not-in", "operator_data": [20, 40, 60]}}, |
116 | 115 | "result[0].vrfs.default.peerList[*].[$peerAddress$,prefixesSent]", |
117 | 116 | ( |
118 | | - [ |
119 | | - {"7.7.7.7": {"prefixesSent": 50}}, |
120 | | - {"10.1.0.0": {"prefixesSent": 50}}, |
121 | | - {"10.2.0.0": {"prefixesSent": 50}}, |
122 | | - {"10.64.207.255": {"prefixesSent": 50}}, |
123 | | - ], |
| 117 | + [ |
| 118 | + {"7.7.7.7": {"prefixesSent": 50}}, |
| 119 | + {"10.1.0.0": {"prefixesSent": 50}}, |
| 120 | + {"10.2.0.0": {"prefixesSent": 50}}, |
| 121 | + {"10.64.207.255": {"prefixesSent": 50}}, |
| 122 | + ], |
124 | 123 | False, |
125 | 124 | ), |
126 | 125 | ) |
|
130 | 129 | {"params": {"mode": "in-range", "operator_data": (20, 60)}}, |
131 | 130 | "result[0].vrfs.default.peerList[*].[$peerAddress$,prefixesSent]", |
132 | 131 | ( |
133 | | - [ |
134 | | - {"7.7.7.7": {"prefixesSent": 50}}, |
135 | | - {"10.1.0.0": {"prefixesSent": 50}}, |
136 | | - {"10.2.0.0": {"prefixesSent": 50}}, |
137 | | - {"10.64.207.255": {"prefixesSent": 50}}, |
138 | | - ], |
| 132 | + [ |
| 133 | + {"7.7.7.7": {"prefixesSent": 50}}, |
| 134 | + {"10.1.0.0": {"prefixesSent": 50}}, |
| 135 | + {"10.2.0.0": {"prefixesSent": 50}}, |
| 136 | + {"10.64.207.255": {"prefixesSent": 50}}, |
| 137 | + ], |
139 | 138 | False, |
140 | 139 | ), |
141 | 140 | ) |
|
145 | 144 | {"params": {"mode": "not-range", "operator_data": (20, 40)}}, |
146 | 145 | "result[0].vrfs.default.peerList[*].[$peerAddress$,prefixesSent]", |
147 | 146 | ( |
148 | | - [ |
149 | | - {"7.7.7.7": {"prefixesSent": 50}}, |
150 | | - {"10.1.0.0": {"prefixesSent": 50}}, |
151 | | - {"10.2.0.0": {"prefixesSent": 50}}, |
152 | | - {"10.64.207.255": {"prefixesSent": 50}}, |
153 | | - ], |
| 147 | + [ |
| 148 | + {"7.7.7.7": {"prefixesSent": 50}}, |
| 149 | + {"10.1.0.0": {"prefixesSent": 50}}, |
| 150 | + {"10.2.0.0": {"prefixesSent": 50}}, |
| 151 | + {"10.64.207.255": {"prefixesSent": 50}}, |
| 152 | + ], |
154 | 153 | False, |
155 | 154 | ), |
156 | 155 | ) |
|
0 commit comments