diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-14 17:33:17 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-14 17:33:17 +0100 |
commit | c4901896a59e6d7e210ef20f13b434acdfa8f018 (patch) | |
tree | c2f797c0d05711d5eb2c66805b41eae4b61090f0 | |
parent | 86503b264707c9f076423f53b783bd45c335a7c4 (diff) | |
download | vyos-1x-c4901896a59e6d7e210ef20f13b434acdfa8f018.tar.gz vyos-1x-c4901896a59e6d7e210ef20f13b434acdfa8f018.zip |
bgp: T2174: enable new implementation
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | interface-definitions/protocols-bgp.xml.in | 2 | ||||
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 2 |
3 files changed, 2 insertions, 3 deletions
@@ -42,7 +42,6 @@ interface_definitions: $(config_xml_obj) rm -f $(TMPL_DIR)/firewall/node.def rm -f $(TMPL_DIR)/interfaces/node.def rm -f $(TMPL_DIR)/protocols/node.def - rm -rf $(TMPL_DIR)/protocols/nbgp rm -f $(TMPL_DIR)/protocols/static/node.def rm -f $(TMPL_DIR)/policy/node.def rm -f $(TMPL_DIR)/system/node.def diff --git a/interface-definitions/protocols-bgp.xml.in b/interface-definitions/protocols-bgp.xml.in index f152021fb..61bc6ce86 100644 --- a/interface-definitions/protocols-bgp.xml.in +++ b/interface-definitions/protocols-bgp.xml.in @@ -3,7 +3,7 @@ <interfaceDefinition> <node name="protocols"> <children> - <tagNode name="nbgp" owner="${vyos_conf_scripts_dir}/protocols_bgp.py"> + <tagNode name="bgp" owner="${vyos_conf_scripts_dir}/protocols_bgp.py"> <properties> <help>Border Gateway Protocol (BGP) parameters</help> <valueHelp> diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index a511b10ff..e77b1fc28 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -31,7 +31,7 @@ config_file = r'/tmp/bgp.frr' def get_config(): conf = Config() - base = ['protocols', 'nbgp'] + base = ['protocols', 'bgp'] bgp = conf.get_config_dict(base, key_mangling=('-', '_'), get_first_key=True) if not conf.exists(base): |