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/node.def | |
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/node.def')
-rw-r--r-- | templates/interfaces/l2tpv3/node.def | 3 |
1 files changed, 3 insertions, 0 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/@)` |