diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-20 20:12:53 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-21 21:48:58 +0200 |
commit | f476e456e20393e7e7e91b73e369c9b033fbf048 (patch) | |
tree | cc4c5e73f06069cdda70b0ff7415c014754fc66f /data/vyos-configd-env-set | |
parent | 64c9fdef02323309e97b2bb682604ada52d651e8 (diff) | |
download | vyos-1x-f476e456e20393e7e7e91b73e369c9b033fbf048.tar.gz vyos-1x-f476e456e20393e7e7e91b73e369c9b033fbf048.zip |
vyos.configdict: leaf_node_changed() must return empty dict when node is added
vyos@vyos# show interfaces pppoe
pppoe pppoe10 {
+ access-concentrator asdfg
authentication {
password bar
user foo
}
default-route force
no-peer-dns
source-interface eth0.202
}
vyos@vyos# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from vyos.config import Config
>>> from vyos.configdict import get_interface_dict
>>> from vyos.configdict import leaf_node_changed
>>> conf = Config()
>>> base = ['interfaces', 'pppoe']
>>> tmp = get_interface_dict(conf, base, 'pppoe10')
>>> leaf_node_changed(conf, ['access-concentrator'])
>>> ['']
Diffstat (limited to 'data/vyos-configd-env-set')
0 files changed, 0 insertions, 0 deletions