Merge pull request #430 from shmuelhazan/test-external-yang-feature

Support external yang features
This commit is contained in:
Olof Hagsand 2023-05-05 11:26:27 +02:00 committed by GitHub
commit fc967171f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 6 deletions

View file

@ -73,6 +73,10 @@ module example{
if-feature B;
type "string";
}
leaf u {
if-feature rt:router-id;
type "string";
}
leaf z{
type "string";
}
@ -89,7 +93,7 @@ module example{
type "string";
}
leaf m3{
if-feature "A and B";
if-feature "A and B";
description "Not enabled";
type "string";
}
@ -204,6 +208,7 @@ expecteof_netconf "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO" "<rpc $DEFAULTNS>
testrun x true
testrun y false
testrun u true
# Multiple if-feature
testrun m1 true