summaryrefslogtreecommitdiff
path: root/src/migration-scripts/system/8-to-9
diff options
context:
space:
mode:
authoragh <from-github-vyos@agh2342.de>2020-02-08 20:19:12 +0100
committeragh <from-github-vyos@agh2342.de>2020-02-09 02:13:26 +0100
commita7f329f129f5488feece70c8e775b7c9e7a1caf0 (patch)
treed7884ecf9b405c36a58f65fcfcc2609cfc4c2d6c /src/migration-scripts/system/8-to-9
parente035548f88388cd12f54a94b4c89bac97ad09ba6 (diff)
downloadvyos-1x-a7f329f129f5488feece70c8e775b7c9e7a1caf0.tar.gz
vyos-1x-a7f329f129f5488feece70c8e775b7c9e7a1caf0.zip
service lldp: T2019: modify handling of interface 'all'
Modify lldpd config template in './src/conf_mode/lldp.py'. conf_mode uses 'all' to specify all interfaces. lldpd config file uses '*' to specify all interfaces. Both use an exclamation mark ('!') as prefix to disable lldp on an interface, eg. '!eth1' or '!all'. Add jinja2 template filters to create and merge following sub-lists a) take list of conf_mode lldp interfaces, remove every interface except 'all', replace 'all' with '*' -> support interface all b) take list of conf_mode lldp interfaces, remove every interface except '!all', replace '!all' with '!*' -> support interface all disabled c) take list of conf_mode lldp interfaces, remove every interface named 'all' or '!all' -> support any other interface
Diffstat (limited to 'src/migration-scripts/system/8-to-9')
0 files changed, 0 insertions, 0 deletions