diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-09 09:47:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 09:47:21 +0100 |
commit | c49922accf5793f8eb750d51883c6a9458c11c31 (patch) | |
tree | d7884ecf9b405c36a58f65fcfcc2609cfc4c2d6c /src/conf_mode | |
parent | e035548f88388cd12f54a94b4c89bac97ad09ba6 (diff) | |
parent | a7f329f129f5488feece70c8e775b7c9e7a1caf0 (diff) | |
download | vyos-1x-c49922accf5793f8eb750d51883c6a9458c11c31.tar.gz vyos-1x-c49922accf5793f8eb750d51883c6a9458c11c31.zip |
Merge pull request #213 from agh2342/feature/lldp-template
service lldp: T2019: modify handling of interface 'all'
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/lldp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/lldp.py b/src/conf_mode/lldp.py index b664d9eba..b72916ab8 100755 --- a/src/conf_mode/lldp.py +++ b/src/conf_mode/lldp.py @@ -39,7 +39,7 @@ vyos_tmpl = """ configure system platform VyOS configure system description "VyOS {{ options.description }}" {% if options.listen_on -%} -configure system interface pattern "{{ options.listen_on | join(",") }}" +configure system interface pattern "{{ ( options.listen_on | select('equalto','all') | map('replace','all','*') | list + options.listen_on | select('equalto','!all') | map('replace','!all','!*') | list + options.listen_on | reject('equalto','all') | reject('equalto','!all') | list ) | unique | join(",") }}" {%- endif %} {% if options.mgmt_addr -%} configure system ip management pattern {{ options.mgmt_addr | join(",") }} |