test_feature: add test for external features
This commit is contained in:
parent
447b8eb1d3
commit
8732d118dd
1 changed files with 6 additions and 1 deletions
|
|
@ -73,6 +73,10 @@ module example{
|
||||||
if-feature B;
|
if-feature B;
|
||||||
type "string";
|
type "string";
|
||||||
}
|
}
|
||||||
|
leaf u {
|
||||||
|
if-feature rt:router-id;
|
||||||
|
type "string";
|
||||||
|
}
|
||||||
leaf z{
|
leaf z{
|
||||||
type "string";
|
type "string";
|
||||||
}
|
}
|
||||||
|
|
@ -89,7 +93,7 @@ module example{
|
||||||
type "string";
|
type "string";
|
||||||
}
|
}
|
||||||
leaf m3{
|
leaf m3{
|
||||||
if-feature "A and
B";
|
if-feature "A and B";
|
||||||
description "Not enabled";
|
description "Not enabled";
|
||||||
type "string";
|
type "string";
|
||||||
}
|
}
|
||||||
|
|
@ -204,6 +208,7 @@ expecteof_netconf "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO" "<rpc $DEFAULTNS>
|
||||||
testrun x true
|
testrun x true
|
||||||
|
|
||||||
testrun y false
|
testrun y false
|
||||||
|
testrun u true
|
||||||
|
|
||||||
# Multiple if-feature
|
# Multiple if-feature
|
||||||
testrun m1 true
|
testrun m1 true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue