summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/bonding/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/bonding/node.tag/vif-s/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/bonding/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/bridge/node.def4
-rw-r--r--templates/interfaces/bridge/node.tag/aging/node.def4
-rw-r--r--templates/interfaces/bridge/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/bridge/node.tag/forwarding-delay/node.def2
-rw-r--r--templates/interfaces/bridge/node.tag/hello-time/node.def4
-rw-r--r--templates/interfaces/bridge/node.tag/max-age/node.def4
-rw-r--r--templates/interfaces/bridge/node.tag/priority/node.def4
-rw-r--r--templates/interfaces/bridge/node.tag/stp/node.def12
-rw-r--r--templates/interfaces/ethernet/node.def16
-rw-r--r--templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif-s/node.tag/ip/proxy-arp-pvlan/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/ip/proxy-arp-pvlan/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/ip/proxy-arp-pvlan/node.def3
-rw-r--r--templates/interfaces/l2tpv3/node.def8
-rw-r--r--templates/interfaces/pseudo-ethernet/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/pseudo-ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def2
-rw-r--r--templates/interfaces/tunnel/node.def5
-rw-r--r--templates/interfaces/tunnel/node.tag/6rd-relay-prefix/node.def10
-rw-r--r--templates/interfaces/tunnel/node.tag/dhcp-interface/node.def2
-rw-r--r--templates/interfaces/tunnel/node.tag/local-ip/node.def3
-rw-r--r--templates/interfaces/tunnel/node.tag/parameters/ip/key/node.def6
30 files changed, 76 insertions, 43 deletions
diff --git a/templates/interfaces/bonding/node.tag/dhcpv6-options/node.def b/templates/interfaces/bonding/node.tag/dhcpv6-options/node.def
index 225bd926..d25533f9 100644
--- a/templates/interfaces/bonding/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/bonding/node.tag/dhcpv6-options/node.def
@@ -27,7 +27,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/bonding/node.tag/vif-s/node.tag/dhcpv6-options/node.def b/templates/interfaces/bonding/node.tag/vif-s/node.tag/dhcpv6-options/node.def
index 86b5560f..d6fea411 100644
--- a/templates/interfaces/bonding/node.tag/vif-s/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/bonding/node.tag/vif-s/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/bonding/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def b/templates/interfaces/bonding/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
index ef4c13ad..0be14824 100644
--- a/templates/interfaces/bonding/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/bonding/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/dhcpv6-options/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/dhcpv6-options/node.def
index 81e7055d..41975dea 100644
--- a/templates/interfaces/bonding/node.tag/vif/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/bonding/node.tag/vif/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/bridge/node.def b/templates/interfaces/bridge/node.def
index c20b361c..8525cb9e 100644
--- a/templates/interfaces/bridge/node.def
+++ b/templates/interfaces/bridge/node.def
@@ -5,7 +5,7 @@ help: Bridge interface name
val_help: <brN>; Bridge interface name
syntax:expression: pattern $VAR(@) "^br[0-9]+$" ; "Must be (br0 - br999)"
-create: /usr/sbin/brctl addbr $VAR(@)
+create: /sbin/brctl addbr $VAR(@)
if [ -n "$VAR(mac/@)" ] ; then
ip li set dev $VAR(@) address $VAR(mac/@)
fi
@@ -17,4 +17,4 @@ delete: if ! /opt/vyatta/sbin/vyatta-bridgegroup-depedency.pl \
exit 1
fi
ip link set $VAR(@) down;
- /usr/sbin/brctl delbr $VAR(@);
+ /sbin/brctl delbr $VAR(@);
diff --git a/templates/interfaces/bridge/node.tag/aging/node.def b/templates/interfaces/bridge/node.tag/aging/node.def
index a67a7ca3..ab83140f 100644
--- a/templates/interfaces/bridge/node.tag/aging/node.def
+++ b/templates/interfaces/bridge/node.tag/aging/node.def
@@ -6,5 +6,5 @@ syntax:expression: $VAR(@) == 0 || ( $VAR(@) >= 10 && $VAR(@) < 1000000 ) ;
val_help: 0; Disable retaining address in bridge (always flood)
val_help: u32:10-1000000; Address aging time for bridge seconds (default 300)
-update: /usr/sbin/brctl setageing $VAR(../@) $VAR(@)
-delete: /usr/sbin/brctl setageing $VAR(../@) 300
+update: /sbin/brctl setageing $VAR(../@) $VAR(@)
+delete: /sbin/brctl setageing $VAR(../@) 300
diff --git a/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def b/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def
index 225bd926..d25533f9 100644
--- a/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def
@@ -27,7 +27,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/bridge/node.tag/forwarding-delay/node.def b/templates/interfaces/bridge/node.tag/forwarding-delay/node.def
index 21de2454..7783339b 100644
--- a/templates/interfaces/bridge/node.tag/forwarding-delay/node.def
+++ b/templates/interfaces/bridge/node.tag/forwarding-delay/node.def
@@ -2,4 +2,4 @@ type: u32
help: Forwarding delay
syntax:expression:$VAR(@) <= 200; "Forwarding delay must be between 0 and 200"
val_help: u32:0-200; Spanning Tree Protocol forwarding delay in seconds (default 15)
-update: /usr/sbin/brctl setfd $VAR(../@) $VAR(@)
+update: /sbin/brctl setfd $VAR(../@) $VAR(@)
diff --git a/templates/interfaces/bridge/node.tag/hello-time/node.def b/templates/interfaces/bridge/node.tag/hello-time/node.def
index 8f48b8be..f6d54d73 100644
--- a/templates/interfaces/bridge/node.tag/hello-time/node.def
+++ b/templates/interfaces/bridge/node.tag/hello-time/node.def
@@ -3,5 +3,5 @@ default: 2
help: Hello packet advertisment interval
syntax:expression: $VAR(@) <= 30; "Bridge Hello interval must be between 0 and 30 seconds"
val_help: u32:0-30; Spanning Tree Protocol hello advertisement interval (default 2)
-update: /usr/sbin/brctl sethello $VAR(../@) $VAR(@)
-delete: /usr/sbin/brctl sethello $VAR(../@) 2
+update: /sbin/brctl sethello $VAR(../@) $VAR(@)
+delete: /sbin/brctl sethello $VAR(../@) 2
diff --git a/templates/interfaces/bridge/node.tag/max-age/node.def b/templates/interfaces/bridge/node.tag/max-age/node.def
index b30e5e9e..452313ad 100644
--- a/templates/interfaces/bridge/node.tag/max-age/node.def
+++ b/templates/interfaces/bridge/node.tag/max-age/node.def
@@ -5,6 +5,6 @@ syntax:expression: $VAR(@) >= 6 && $VAR(@) <= 200 ;
"Bridge max aging value must be between 6 and 200"
val_help: u32:6-200; Bridge maximum aging time value (default 20)
-update: /usr/sbin/brctl setmaxage $VAR(../@) $VAR(@)
-delete: /usr/sbin/brctl setmaxage $VAR(../@) 20
+update: /sbin/brctl setmaxage $VAR(../@) $VAR(@)
+delete: /sbin/brctl setmaxage $VAR(../@) 20
diff --git a/templates/interfaces/bridge/node.tag/priority/node.def b/templates/interfaces/bridge/node.tag/priority/node.def
index ba17f841..3e35dc67 100644
--- a/templates/interfaces/bridge/node.tag/priority/node.def
+++ b/templates/interfaces/bridge/node.tag/priority/node.def
@@ -4,5 +4,5 @@ default: 32768
syntax:expression:$VAR(@) < 65536 ; "Bridge priority must be between 0 and 65535 (multiples of 4096)"
val_help: u32:0-65535; Bridge priority (default 32768)
-update: /usr/sbin/brctl setbridgeprio $VAR(../@) $VAR(@)
-delete: /usr/sbin/brctl setbridgeprio $VAR(../@) 32768
+update: /sbin/brctl setbridgeprio $VAR(../@) $VAR(@)
+delete: /sbin/brctl setbridgeprio $VAR(../@) 32768
diff --git a/templates/interfaces/bridge/node.tag/stp/node.def b/templates/interfaces/bridge/node.tag/stp/node.def
index d24a3261..63000648 100644
--- a/templates/interfaces/bridge/node.tag/stp/node.def
+++ b/templates/interfaces/bridge/node.tag/stp/node.def
@@ -6,13 +6,13 @@ val_help: false; Disable Spanning Tree Protocol (default)
update: if [ "$VAR(@)" == "true" ]; then
if [ -z "$VAR(../../forwarding-delay)" ]; then
- /usr/sbin/brctl setfd $VAR(../@) 15
+ /sbin/brctl setfd $VAR(../@) 15
else
- /usr/sbin/brctl setfd $VAR(../@) $VAR(../../forwarding-delay)
+ /sbin/brctl setfd $VAR(../@) $VAR(../../forwarding-delay)
fi
- /usr/sbin/brctl stp $VAR(../@) on
+ /sbin/brctl stp $VAR(../@) on
else
- /usr/sbin/brctl stp $VAR(../@) off
- /usr/sbin/brctl setfd $VAR(../@) 0
+ /sbin/brctl stp $VAR(../@) off
+ /sbin/brctl setfd $VAR(../@) 0
fi
-delete:/usr/sbin/brctl stp $VAR(../@) off
+delete:/sbin/brctl stp $VAR(../@) off
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index bdbdb0d5..2af57e0a 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -4,13 +4,18 @@ type: txt
help: Ethernet interface name
allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=ethernet
val_help: <ethN>; Ethernet interface name
-syntax:expression: pattern $VAR(@) "^eth[0-9]+$" \
+syntax:expression: pattern $VAR(@) "^(eth|lan)[0-9]+$" \
; "interface ethernet $VAR(@): not a valid name"
syntax:expression: exec \
"if [ ! -d /sys/class/net/$VAR(@) ]; then \
echo \"interface ethernet $VAR(@): does not exist\";
exit 1; \
+ fi
+
+ if ip link show | awk '{print $2 }' | grep -ao \"lan[0-9]@$VAR(@)\" > /dev/null 2>&1 ; then \
+ echo \"interface ethernet $VAR(@): is a switch master interface and not configurable, please use 'lan' interfaces\";
+ exit 1; \
fi"
begin: rm -f /tmp/speed-duplex.$VAR(@)
@@ -26,7 +31,14 @@ begin: rm -f /tmp/speed-duplex.$VAR(@)
create: if ! cli-shell-api exists interfaces ethernet $VAR(@) disable;
- then ip link set $VAR(@) up
+ then
+ case "$VAR(@)" in
+ *lan*)
+ masterint=$(ip link show $VAR(@) | awk 'NR==1{print $2 }' | grep -ao "eth[0-9]")
+ ip link set $masterint up
+ ;;
+ esac
+ ip link set $VAR(@) up
fi
/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
diff --git a/templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def
index 225bd926..d25533f9 100644
--- a/templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def
@@ -27,7 +27,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
index 31237d3b..9116b354 100644
--- a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$ifname.conf
+ conffile=/var/lib/dhcp/dhclient_v6_$ifname.conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/ip/proxy-arp-pvlan/node.def b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/ip/proxy-arp-pvlan/node.def
new file mode 100644
index 00000000..e1ab1f00
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/ip/proxy-arp-pvlan/node.def
@@ -0,0 +1,3 @@
+help: Enable private VLAN proxy ARP on this interface
+create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../../@).$VAR(../../@)/proxy_arp_pvlan\" "
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../../@).$VAR(../../@)/proxy_arp_pvlan\" "
diff --git a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
index c5ecf92a..ddebe05b 100644
--- a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$ifname.conf
+ conffile=/var/lib/dhcp/dhclient_v6_$ifname.conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/ip/proxy-arp-pvlan/node.def b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/ip/proxy-arp-pvlan/node.def
new file mode 100644
index 00000000..ce1dcc41
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/ip/proxy-arp-pvlan/node.def
@@ -0,0 +1,3 @@
+help: Enable private VLAN proxy ARP on this interface
+create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../../../@).$VAR(../../../@).$VAR(../../@)/proxy_arp_pvlan\" "
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../../../@).$VAR(../../../@).$VAR(../../@)/proxy_arp_pvlan\" "
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
index 31237d3b..9116b354 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$ifname.conf
+ conffile=/var/lib/dhcp/dhclient_v6_$ifname.conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/proxy-arp-pvlan/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/proxy-arp-pvlan/node.def
new file mode 100644
index 00000000..49bec357
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/ip/proxy-arp-pvlan/node.def
@@ -0,0 +1,3 @@
+help: Enable private VLAN proxy ARP on this interface
+create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../../@).$VAR(../../@)/proxy_arp_pvlan\" "
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../../@).$VAR(../../@)/proxy_arp_pvlan\" "
diff --git a/templates/interfaces/l2tpv3/node.def b/templates/interfaces/l2tpv3/node.def
index fb3d1475..973256bf 100644
--- a/templates/interfaces/l2tpv3/node.def
+++ b/templates/interfaces/l2tpv3/node.def
@@ -1,5 +1,5 @@
tag:
-priority: 460
+priority: 800
type: txt
help: L2TPv3 interface
val_help: <l2tpethN>; L2TPv3 interface name
@@ -48,9 +48,9 @@ create:
delete:
ip link set $VAR(@) down
- if [ -n "$VAR(./tunnel-id@/)" ] && [ -n "$VAR(./session-id@/)" ] ; then
- ip l2tp del session $VAR(./tunnel-id/@) session_id $VAR(./session-id/@)
+ if [ -n "$VAR(./tunnel-id/@)" ] && [ -n "$VAR(./session-id/@)" ] ; then
+ ip l2tp del session tunnel_id $VAR(./tunnel-id/@) session_id $VAR(./session-id/@)
fi
- if [ -n "$VAR(./tunnel-id@/)" ] ; then
+ if [ -n "$VAR(./tunnel-id/@)" ] ; then
ip l2tp del tunnel tunnel_id $VAR(./tunnel-id/@)
fi
diff --git a/templates/interfaces/pseudo-ethernet/node.tag/dhcpv6-options/node.def b/templates/interfaces/pseudo-ethernet/node.tag/dhcpv6-options/node.def
index 225bd926..d25533f9 100644
--- a/templates/interfaces/pseudo-ethernet/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/pseudo-ethernet/node.tag/dhcpv6-options/node.def
@@ -27,7 +27,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def b/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
index 86b5560f..d6fea411 100644
--- a/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def b/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
index ef4c13ad..0be14824 100644
--- a/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/pseudo-ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def b/templates/interfaces/pseudo-ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
index 86b5560f..d6fea411 100644
--- a/templates/interfaces/pseudo-ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/pseudo-ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
@@ -26,7 +26,7 @@ end:
exit 0
fi
- conffile=/var/lib/dhcp3/dhclient_v6_$VAR(../@).conf
+ conffile=/var/lib/dhcp/dhclient_v6_$VAR(../@).conf
if [ ! -e $conffile ]; then
echo "Conf file $conffile doesn't exist"
exit 0
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def
index 720bf64f..1e50a1dd 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -63,8 +63,11 @@ create:
if [ "$VAR(./encapsulation/@)" == "gre" ] && [ -z $VAR(./remote-ip/) ]; then
ip tunnel add $VAR(@) local $LIP mode gre $KEY $TTL $TOS
elif [ "$VAR(./encapsulation/@)" == "sit" ] && [ -n "$VAR(./6rd-prefix/@)" ]; then
+ if [ -n "$VAR(./6rd-relay-prefix/@)" ]; then
+ RP="6rd-relay_prefix $VAR(./6rd-relay-prefix/@)"
+ fi
ip tunnel add $VAR(@) remote $VAR(./remote-ip/@) mode sit
- ip tunnel 6rd dev $VAR(@) 6rd-prefix $VAR(./6rd-prefix/@)
+ ip tunnel 6rd dev $VAR(@) 6rd-prefix $VAR(./6rd-prefix/@) $RP
else
ip tunnel add $VAR(@) local $LIP remote $VAR(./remote-ip/@) mode $VAR(./encapsulation/@) $KEY $TTL $TOS
fi
diff --git a/templates/interfaces/tunnel/node.tag/6rd-relay-prefix/node.def b/templates/interfaces/tunnel/node.tag/6rd-relay-prefix/node.def
new file mode 100644
index 00000000..0f877e2d
--- /dev/null
+++ b/templates/interfaces/tunnel/node.tag/6rd-relay-prefix/node.def
@@ -0,0 +1,10 @@
+multi:
+type: ipv4net
+val_help: ipv4net; IPv4 prefix of interface for 6rd
+help: 6rd relay prefix
+
+syntax:expression: exec "/opt/vyatta/sbin/valid_address $VAR(@)"
+
+create:expression: "true"
+update:expression: "false" ; \
+ "6rd-relay-prefix can only be modified at tunnel creation for $VAR(../@)"
diff --git a/templates/interfaces/tunnel/node.tag/dhcp-interface/node.def b/templates/interfaces/tunnel/node.tag/dhcp-interface/node.def
index 60fbae34..de0450d7 100644
--- a/templates/interfaces/tunnel/node.tag/dhcp-interface/node.def
+++ b/templates/interfaces/tunnel/node.tag/dhcp-interface/node.def
@@ -2,7 +2,7 @@ type: txt
help: DHCP interface that supplies the local IP address for this tunnel
allowed:
local -a array ;
- array=( /var/lib/dhcp3/eth* /var/lib/dhcp3/br* /var/lib/dhcp3/bond* ) ;
+ array=( /var/lib/dhcp/eth* /var/lib/dhcp/br* /var/lib/dhcp/bond* ) ;
echo -n ${array[@]##*/}
create:
sudo /opt/vyatta/sbin/vyatta-update-tunnel.pl --interface=$VAR(@) --tunnel=$VAR(../@) --option=create
diff --git a/templates/interfaces/tunnel/node.tag/local-ip/node.def b/templates/interfaces/tunnel/node.tag/local-ip/node.def
index 03d134e9..4a1cbc15 100644
--- a/templates/interfaces/tunnel/node.tag/local-ip/node.def
+++ b/templates/interfaces/tunnel/node.tag/local-ip/node.def
@@ -17,8 +17,7 @@ update:if ! /opt/vyatta/sbin/local_ip $VAR(@)
sudo ip tunnel cha $VAR(../@) local $VAR(@)
if [ -e "/opt/vyatta/sbin/dmvpn-config.pl" ]; then
sudo /opt/vyatta/sbin/dmvpn-config.pl \
- --config_file='/etc/dmvpn.conf' \
- --secrets_file='/etc/dmvpn.secrets' \
+ --config_file='/etc/swanctl/swanctl.conf' \
--init_script='/etc/init.d/ipsec' \
--tunnel_context --tun_id=$VAR(../@) || exit 1
fi
diff --git a/templates/interfaces/tunnel/node.tag/parameters/ip/key/node.def b/templates/interfaces/tunnel/node.tag/parameters/ip/key/node.def
index b9ed181e..1142d2de 100644
--- a/templates/interfaces/tunnel/node.tag/parameters/ip/key/node.def
+++ b/templates/interfaces/tunnel/node.tag/parameters/ip/key/node.def
@@ -1,8 +1,8 @@
type: u32
help: Tunnel key
-syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 999999; \
- "Must be between 0-999999 for $VAR(../../../@)"
-val_help: u32:0-999999; Tunnel key
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4294967295; \
+ "Must be between 0-4294967295 for $VAR(../../../@)"
+val_help: u32:0-4294967295; Tunnel key
syntax:expression: exec " \
if [ -n \"`ip tunnel show $VAR(../../../@) | grep $VAR(../../../@) `\" ]; then \