Fixed: [show compare does not show correct diff while load merge xml](https://github.com/clicon/clixon-controller/issues/101)
Diff code did not check non-yang leaf/terminal values
This commit is contained in:
parent
840233d6fa
commit
4ee6b48abe
4 changed files with 133 additions and 76 deletions
|
|
@ -170,7 +170,7 @@ echo "$clixon_cli -1 -f $cfg show compare xml"
|
|||
expectpart "$($clixon_cli -1 -f $cfg show compare xml)" 0 "<table xmlns=\"urn:example:clixon\">" "^\-\ *<parameter>" "^+\ *<parameter>" "^\-\ *<name>a</name>" "^+\ *<name>c</name>" --not-- "^+\ *<name>a</name>" "^\-\ *<name>c</name>"
|
||||
|
||||
new "check compare text"
|
||||
expectpart "$($clixon_cli -1 -f $cfg show compare text)" 0 "^\ *table {" "^\-\ *parameter a {" "^+\ *parameter c {" "^\-\ *value 98;" "^+\ *value 99;"
|
||||
expectpart "$($clixon_cli -1 -f $cfg show compare text)" 0 "^\ *table {" "^\-\ *parameter a {" "^+\ *parameter c {" "^\-\ *value \"98\";" "^+\ *value \"99\";"
|
||||
|
||||
new "delete section x"
|
||||
expectpart "$($clixon_cli -1 -f $cfg delete top section x)" 0 "^$"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue