File tree Expand file tree Collapse file tree 4 files changed +14
-15
lines changed
tests/topotests/zebra_operational_data Expand file tree Collapse file tree 4 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ def test_zebra_operationalr(tgen):
48
48
49
49
r1 = tgen .gears ["r1" ]
50
50
51
- output = json .loads (r1 .vtysh_cmd ("show mgmt get-data /frr-zebra:zebra" ))
51
+ output = json .loads (r1 .vtysh_cmd ("show mgmt get-data /frr-zebra:zebra/state " ))
52
52
53
53
logger .info ("Output" )
54
54
logger .info (output )
55
55
56
56
logger .info ("Ensuring that the max-multipath value is returned" )
57
- assert "max-multipath" in output ["frr-zebra:zebra" ].keys ()
57
+ assert "max-multipath" in output ["frr-zebra:zebra" ][ "state" ] .keys ()
58
58
59
59
logger .info ("Checking IP forwarding states" )
60
60
state = output ["frr-zebra:zebra" ]["state" ]
Original file line number Diff line number Diff line change @@ -3080,17 +3080,6 @@ module frr-zebra {
3080
3080
container zebra {
3081
3081
description
3082
3082
"Data model for the Zebra daemon." ;
3083
- leaf max-multipath {
3084
- type uint16 {
3085
- range "1..65535" ;
3086
- }
3087
- config false ;
3088
- description
3089
- "The maximum number of nexthops for a route. At this point it
3090
- is unlikely that a multipath number will ever get larger then
3091
- 1024 but to allow for future expansions, the yang returns a
3092
- 16 bit number" ;
3093
- }
3094
3083
leaf ip-forwarding {
3095
3084
type boolean ;
3096
3085
description
@@ -3193,6 +3182,16 @@ module frr-zebra {
3193
3182
config false ;
3194
3183
description
3195
3184
"Operational data." ;
3185
+ leaf max-multipath {
3186
+ type uint16 {
3187
+ range "1..65535" ;
3188
+ }
3189
+ description
3190
+ "The maximum number of nexthops for a route. At this point it
3191
+ is unlikely that a multipath number will ever get larger then
3192
+ 1024 but to allow for future expansions, the yang returns a
3193
+ 16 bit number" ;
3194
+ }
3196
3195
leaf ip-forwarding {
3197
3196
type boolean ;
3198
3197
description
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const struct frr_yang_module_info frr_zebra_info = {
26
26
.features = features ,
27
27
.nodes = {
28
28
{
29
- .xpath = "/frr-zebra:zebra/max-multipath" ,
29
+ .xpath = "/frr-zebra:zebra/state/ max-multipath" ,
30
30
.cbs = {
31
31
.get_elem = zebra_max_multipath_get_elem ,
32
32
}
Original file line number Diff line number Diff line change @@ -1177,7 +1177,7 @@ lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_weight_get_elem(
1177
1177
1178
1178
/*
1179
1179
* XPath:
1180
- * /frr-zebra:zebra/max-multipath
1180
+ * /frr-zebra:zebra/state/ max-multipath
1181
1181
*/
1182
1182
struct yang_data * zebra_max_multipath_get_elem (struct nb_cb_get_elem_args * args )
1183
1183
{
You can’t perform that action at this time.
0 commit comments