summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-04-06 15:47:41 +0200
committerDaniil Baturin <daniil@baturin.org>2014-04-06 15:47:41 +0200
commitbf7dadcc54a10f007cc231af3a2a96e684961da1 (patch)
treec094837701fdd517bd7bdbbd0c73a3860017f98c
parentdc16009e16929091ab8833cf8c4822587fe1fad9 (diff)
downloadvyatta-cfg-firewall-bf7dadcc54a10f007cc231af3a2a96e684961da1.tar.gz
vyatta-cfg-firewall-bf7dadcc54a10f007cc231af3a2a96e684961da1.zip
Bug #170: add L2TPv3 interface type to firewall templates generator.
-rw-r--r--debian/vyatta-cfg-firewall.install1
-rwxr-xr-xgen-interface-templates.pl3
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-firewall.install b/debian/vyatta-cfg-firewall.install
index b29f443..fe5610d 100644
--- a/debian/vyatta-cfg-firewall.install
+++ b/debian/vyatta-cfg-firewall.install
@@ -14,3 +14,4 @@ opt/vyatta/share/vyatta-cfg/templates/interfaces/tunnel
opt/vyatta/share/vyatta-cfg/templates/interfaces/vti
opt/vyatta/share/vyatta-cfg/templates/interfaces/wireless
opt/vyatta/share/vyatta-cfg/templates/interfaces/wirelessmodem
+opt/vyatta/share/vyatta-cfg/templates/interfaces/l2tpv3
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index d22ab8a..3addf4d 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -59,6 +59,8 @@ my %interface_hash = (
'bridge/node.tag' => '$VAR(../../../@)',
'openvpn/node.tag' => '$VAR(../../../@)',
+ 'l2tpv3/node.tag' => '$VAR(../../../@)',
+
'multilink/node.tag/vif/node.tag' => '$VAR(../../../../@)',
'serial/node.tag/cisco-hdlc/vif/node.tag' =>
@@ -98,6 +100,7 @@ my %firewall_hash = (
'wireless/node.tag' => 'wireless $VAR(../@)',
'wireless/node.tag/vif/node.tag' => 'wireless $VAR(../../../@) vif $VAR(../@)',
'wirelessmodem/node.tag' => 'wirelessmodem $VAR(../@)',
+ 'l2tpv3/node.tag' => 'l2tpv3 $VAR(../@)'
);
# Hash table to check if the priority needs to set @ root