From 019154add51bbaf79de41105d627741897d3b839 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 16 Dec 2018 15:48:25 +0100 Subject: T1087: add wireguard to interface template generators. --- debian/vyatta-cfg-firewall.install | 1 + gen-interface-policy-templates.pl | 1 + gen-interface-templates.pl | 2 ++ 3 files changed, 4 insertions(+) diff --git a/debian/vyatta-cfg-firewall.install b/debian/vyatta-cfg-firewall.install index 780f53c..8127e80 100644 --- a/debian/vyatta-cfg-firewall.install +++ b/debian/vyatta-cfg-firewall.install @@ -16,3 +16,4 @@ opt/vyatta/share/vyatta-cfg/templates/interfaces/wireless opt/vyatta/share/vyatta-cfg/templates/interfaces/wirelessmodem opt/vyatta/share/vyatta-cfg/templates/interfaces/l2tpv3 opt/vyatta/share/vyatta-cfg/templates/interfaces/vxlan +opt/vyatta/share/vyatta-cfg/templates/interfaces/wireguard diff --git a/gen-interface-policy-templates.pl b/gen-interface-policy-templates.pl index ed5ff22..e02e85d 100755 --- a/gen-interface-policy-templates.pl +++ b/gen-interface-policy-templates.pl @@ -62,6 +62,7 @@ my %interface_hash = ( 'wireless/node.tag' => '$VAR(../../@)', 'wireless/node.tag/vif/node.tag' => '$VAR(../../../@).$VAR(../../@)', 'wirelessmodem/node.tag' => '$VAR(../../@)', + 'wireguard/node.tag' => '$VAR(../../@)', ); # The subdirectory where the generated templates will go diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl index 4451998..67a69c0 100755 --- a/gen-interface-templates.pl +++ b/gen-interface-templates.pl @@ -62,6 +62,7 @@ my %interface_hash = ( 'wireless/node.tag' => '$VAR(../../../@)', 'wireless/node.tag/vif/node.tag' => '$VAR(../../../../@).$VAR(../../../@)', 'wirelessmodem/node.tag' => '$VAR(../../../@)', + 'wireguard/node.tag' => '$VAR(../../../@)', ); # Firewall node hashes @@ -92,6 +93,7 @@ my %firewall_hash = ( 'wireless/node.tag' => 'wireless $VAR(../@)', 'wireless/node.tag/vif/node.tag' => 'wireless $VAR(../../../@) vif $VAR(../@)', 'wirelessmodem/node.tag' => 'wirelessmodem $VAR(../@)', + 'wireguard/node.tag' => 'wireless $VAR(../@)', ); # Hash table to check if the priority needs to set @ root -- cgit v1.2.3