Skip to content

Commit

Permalink
tests: add tests for mgmt get-data exact node request
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Jan 13, 2024
1 parent 202cb53 commit c5f09aa
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"frr-interface:description": "r1-eth0-desc"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"frr-interface:interface": [
{
"name": "r1-eth0",
"vrf": "default",
"state": {
"if-index": "rubout",
"mtu": 1500,
"mtu6": 1500,
"speed": 10000,
"metric": 0,
"phy-address": "rubout"
},
"frr-zebra:zebra": {
"state": {
"up-count": 0,
"down-count": 0
}
}
}
]
}
10 changes: 10 additions & 0 deletions tests/topotests/mgmt_oper/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ def test_oper_simple(tgen):
"simple-results/result-intf-description.json",
"with-config",
),
(
'/frr-interface:lib/interface[name="r1-eth0"]',
"simple-results/result-intf-eth0-exact.json",
"exact",
),
(
'/frr-interface:lib/interface[name="r1-eth0"]/description',
"simple-results/result-intf-eth0-description-exact.json",
"with-config exact",
),
# Interface state
(
'/frr-interface:lib/interface[name="r1-eth0"]/state',
Expand Down

0 comments on commit c5f09aa

Please sign in to comment.