mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-13 21:28:27 +00:00
tests: add unit test case for keyless list xpath queries
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
2fb6519c52
commit
0ce15fb0f7
@ -1,2 +1,5 @@
|
|||||||
show yang operational-data /frr-test-module:frr-test-module
|
show yang operational-data /frr-test-module:frr-test-module
|
||||||
|
show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[2]
|
||||||
|
show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[3]/interface
|
||||||
|
show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[10]
|
||||||
test rpc
|
test rpc
|
||||||
|
@ -119,6 +119,49 @@ test# show yang operational-data /frr-test-module:frr-test-module
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
test# show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[2]
|
||||||
|
{
|
||||||
|
"frr-test-module:frr-test-module": {
|
||||||
|
"vrfs": {
|
||||||
|
"vrf": [
|
||||||
|
{
|
||||||
|
"name": "vrf0",
|
||||||
|
"routes": {
|
||||||
|
"route": [
|
||||||
|
{
|
||||||
|
"prefix": "10.0.0.1/32",
|
||||||
|
"next-hop": "172.16.0.1",
|
||||||
|
"interface": "eth1",
|
||||||
|
"metric": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
test# show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[3]/interface
|
||||||
|
{
|
||||||
|
"frr-test-module:frr-test-module": {
|
||||||
|
"vrfs": {
|
||||||
|
"vrf": [
|
||||||
|
{
|
||||||
|
"name": "vrf0",
|
||||||
|
"routes": {
|
||||||
|
"route": [
|
||||||
|
{
|
||||||
|
"interface": "eth2"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
test# show yang operational-data /frr-test-module:frr-test-module/vrfs/vrf[name='vrf0']/routes/route[10]
|
||||||
|
{}
|
||||||
test# test rpc
|
test# test rpc
|
||||||
vrf testname data testdata
|
vrf testname data testdata
|
||||||
test#
|
test#
|
||||||
|
Loading…
Reference in New Issue
Block a user