mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
tests: add tests for mgmt get-data with-defaults parameter
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
c19d0a5bf3
commit
3afea9ccda
@ -15,6 +15,7 @@ debug mgmt client backend
|
|||||||
interface r1-eth0
|
interface r1-eth0
|
||||||
ip address 1.1.1.1/24
|
ip address 1.1.1.1/24
|
||||||
description r1-eth0-desc
|
description r1-eth0-desc
|
||||||
|
evpn mh es-df-pref 32767
|
||||||
exit
|
exit
|
||||||
|
|
||||||
interface r1-eth1 vrf red
|
interface r1-eth1 vrf red
|
||||||
|
@ -10,7 +10,10 @@
|
|||||||
"ip": "1.1.1.1",
|
"ip": "1.1.1.1",
|
||||||
"prefix-length": 24
|
"prefix-length": 24
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"evpn-mh": {
|
||||||
|
"df-preference": 32767
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"frr-zebra:evpn-mh": {
|
||||||
|
"df-preference": 32767,
|
||||||
|
"bypass": false,
|
||||||
|
"@bypass": {
|
||||||
|
"ietf-netconf-with-defaults:default": true
|
||||||
|
},
|
||||||
|
"uplink": false,
|
||||||
|
"@uplink": {
|
||||||
|
"ietf-netconf-with-defaults:default": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"frr-zebra:evpn-mh": {
|
||||||
|
"df-preference": 32767,
|
||||||
|
"bypass": false,
|
||||||
|
"uplink": false
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"frr-zebra:evpn-mh": {
|
||||||
|
"df-preference": 32767
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"frr-zebra:evpn-mh": {}
|
||||||
|
}
|
@ -20,6 +20,9 @@
|
|||||||
"prefix-length": 24
|
"prefix-length": 24
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"evpn-mh": {
|
||||||
|
"df-preference": 32767
|
||||||
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"up-count": 0,
|
"up-count": 0,
|
||||||
"down-count": 0
|
"down-count": 0
|
||||||
|
@ -146,6 +146,27 @@ def test_oper_simple(tgen):
|
|||||||
'/frr-interface:lib/interface[name="r1-eth0"]/state/mtu',
|
'/frr-interface:lib/interface[name="r1-eth0"]/state/mtu',
|
||||||
"simple-results/result-intf-state-mtu.json",
|
"simple-results/result-intf-state-mtu.json",
|
||||||
),
|
),
|
||||||
|
# with-defaults
|
||||||
|
(
|
||||||
|
'/frr-interface:lib/interface[name="r1-eth0"]/frr-zebra:zebra/evpn-mh',
|
||||||
|
"simple-results/result-intf-eth0-wd-explicit.json",
|
||||||
|
"with-config exact",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'/frr-interface:lib/interface[name="r1-eth0"]/frr-zebra:zebra/evpn-mh',
|
||||||
|
"simple-results/result-intf-eth0-wd-trim.json",
|
||||||
|
"with-config exact with-defaults trim",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'/frr-interface:lib/interface[name="r1-eth0"]/frr-zebra:zebra/evpn-mh',
|
||||||
|
"simple-results/result-intf-eth0-wd-all.json",
|
||||||
|
"with-config exact with-defaults all",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'/frr-interface:lib/interface[name="r1-eth0"]/frr-zebra:zebra/evpn-mh',
|
||||||
|
"simple-results/result-intf-eth0-wd-all-tag.json",
|
||||||
|
"with-config exact with-defaults all-tag",
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
r1 = tgen.gears["r1"].net
|
r1 = tgen.gears["r1"].net
|
||||||
|
Loading…
Reference in New Issue
Block a user