diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-04 20:35:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 20:35:44 +0100 |
commit | 84c7ed21629db338b207dfb11320b49fffda3b3d (patch) | |
tree | c35d9ce74f8c6acbc673b006e56ad6e3fa3967f4 /src/conf_mode | |
parent | cb544fc3e372448e3ed098f09add767d6f449b47 (diff) | |
parent | e1174ad59d396d6e96fcbeb7b90bc5a164e3ad5c (diff) | |
download | vyos-1x-84c7ed21629db338b207dfb11320b49fffda3b3d.tar.gz vyos-1x-84c7ed21629db338b207dfb11320b49fffda3b3d.zip |
Merge pull request #595 from Cheeze-It/current
mpls-conf: T915: Add TTL security for static LDP neighbors
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/protocols_mpls.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conf_mode/protocols_mpls.py b/src/conf_mode/protocols_mpls.py index d2ff0a2ea..d90c208ad 100755 --- a/src/conf_mode/protocols_mpls.py +++ b/src/conf_mode/protocols_mpls.py @@ -161,14 +161,16 @@ def get_config(config=None): for neighbor in conf.list_effective_nodes('neighbor'): mpls_conf['old_ldp']['neighbors'].update({ neighbor : { - 'password' : conf.return_effective_value('neighbor {0} password'.format(neighbor)) + 'password' : conf.return_effective_value('neighbor {0} password'.format(neighbor), default=''), + 'ttl_security' : conf.return_effective_value('neighbor {0} ttl-security'.format(neighbor), default=''), } }) for neighbor in conf.list_nodes('neighbor'): mpls_conf['ldp']['neighbors'].update({ neighbor : { - 'password' : conf.return_value('neighbor {0} password'.format(neighbor)) + 'password' : conf.return_value('neighbor {0} password'.format(neighbor), default=''), + 'ttl_security' : conf.return_value('neighbor {0} ttl-security'.format(neighbor), default=''), } }) |