summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-14 17:33:17 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-14 17:33:17 +0100
commitc4901896a59e6d7e210ef20f13b434acdfa8f018 (patch)
treec2f797c0d05711d5eb2c66805b41eae4b61090f0
parent86503b264707c9f076423f53b783bd45c335a7c4 (diff)
downloadvyos-1x-c4901896a59e6d7e210ef20f13b434acdfa8f018.tar.gz
vyos-1x-c4901896a59e6d7e210ef20f13b434acdfa8f018.zip
bgp: T2174: enable new implementation
-rw-r--r--Makefile1
-rw-r--r--interface-definitions/protocols-bgp.xml.in2
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py2
3 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 11e96d25a..0fd23f713 100644
--- a/Makefile
+++ b/Makefile
@@ -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):