From c3fa5fd1e8cc670afaa73fedd75ceba758d307f3 Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Sun, 18 Nov 2018 13:21:08 +0100
Subject: T941: add "interface" option to enable using IPv6 link-local peer
 addresses.

---
 scripts/bgp/vyatta-bgp.pl                                             | 4 ++++
 templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def | 2 ++
 2 files changed, 6 insertions(+)
 create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def

diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index 31f97dea..522a0788 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -494,6 +494,10 @@ my %qcom = (
       set => 'router bgp #3 ; neighbor #5 remote-as #7 ; neighbor #5 activate',
       del => 'router bgp #3 ; no neighbor #5 remote-as #7',
   },
+  'protocols bgp var neighbor var interface' => {
+      set => 'router bgp #3 ; neighbor #5 interface #7',
+      del => 'router bgp #3 ; no neighbor #5 interface #7',
+  },
   'protocols bgp var neighbor var disable-capability-negotiation' => {
       set => 'router bgp #3 ; neighbor #5 dont-capability-negotiate',
       del => 'router bgp #3 ; no neighbor #5 dont-capability-negotiate',
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def
new file mode 100644
index 00000000..4f49f816
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: Network interface to use for the BGP session
-- 
cgit v1.2.3