diff options
author | higebu <yuya.kusakabe@gmail.com> | 2014-03-18 07:00:03 +0900 |
---|---|---|
committer | higebu <yuya.kusakabe@gmail.com> | 2014-03-18 07:00:03 +0900 |
commit | 189a8f7f3bb1ed5a8eb94010c212e4c4bfc25a42 (patch) | |
tree | 8b03efb42befe22a895b2f6ff925e88835b188f1 /templates/interfaces/l2tpv3 | |
parent | b3f4391cbc72f1b1d79397d2dc7d17ebcc4d0027 (diff) | |
download | vyatta-cfg-system-189a8f7f3bb1ed5a8eb94010c212e4c4bfc25a42.tar.gz vyatta-cfg-system-189a8f7f3bb1ed5a8eb94010c212e4c4bfc25a42.zip |
Fix support for l2tpv3 over ip
Diffstat (limited to 'templates/interfaces/l2tpv3')
-rw-r--r-- | templates/interfaces/l2tpv3/node.def | 3 | ||||
-rw-r--r-- | templates/interfaces/l2tpv3/node.tag/encap/node.def | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/templates/interfaces/l2tpv3/node.def b/templates/interfaces/l2tpv3/node.def index 924d27b7..4ee4cc17 100644 --- a/templates/interfaces/l2tpv3/node.def +++ b/templates/interfaces/l2tpv3/node.def @@ -26,6 +26,9 @@ commit:expression: $VAR(./peer-session-id/) != "" ; \ begin: [ -d /sys/module/l2tp_eth ] || sudo modprobe l2tp_eth [ -d /sys/module/l2tp_netlink ] || sudo modprobe l2tp_netlink + if [ "$VAR(./encap/@)" = "ip" ] && [ ! -d /sys/module/l2tp_ip ] ; then + sudo modprobe l2tp_ip + fi create: for i in `seq 1 $VAR(./wait/@)` diff --git a/templates/interfaces/l2tpv3/node.tag/encap/node.def b/templates/interfaces/l2tpv3/node.tag/encap/node.def index c3726314..f5d4eb9d 100644 --- a/templates/interfaces/l2tpv3/node.tag/encap/node.def +++ b/templates/interfaces/l2tpv3/node.tag/encap/node.def @@ -1,7 +1,7 @@ -help: Encryption algorithm +help: Encapsulation type type: txt default: "udp" syntax:expression: $VAR(@) in "ip", "udp"; "must be ip, or udp" -val_help: udp; udp encryption (default) -val_help: ip; ip encryption +val_help: udp; udp encapsulation (default) +val_help: ip; ip encapsulation |