summaryrefslogtreecommitdiff
path: root/templates/interfaces/l2tpv3/node.def
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-04-12 08:43:33 -0700
committerDaniil Baturin <daniil@baturin.org>2014-04-12 08:43:33 -0700
commit7a09318750a8617ba1f188c7b4b6a48960c8f4ef (patch)
treee87cbd18fd5992cb784cea895eb5e68a1d57ede6 /templates/interfaces/l2tpv3/node.def
parent869d864c2a5c82703230c317ab6119c47ad7b618 (diff)
downloadvyatta-cfg-system-7a09318750a8617ba1f188c7b4b6a48960c8f4ef.tar.gz
vyatta-cfg-system-7a09318750a8617ba1f188c7b4b6a48960c8f4ef.zip
Bug #170: Break iproute2 commands in multiple line for better readability.
Diffstat (limited to 'templates/interfaces/l2tpv3/node.def')
-rw-r--r--templates/interfaces/l2tpv3/node.def13
1 files changed, 10 insertions, 3 deletions
diff --git a/templates/interfaces/l2tpv3/node.def b/templates/interfaces/l2tpv3/node.def
index 847146a8..e8e2e01d 100644
--- a/templates/interfaces/l2tpv3/node.def
+++ b/templates/interfaces/l2tpv3/node.def
@@ -35,9 +35,16 @@ create:
sleep 1
done
fi
- ip l2tp add tunnel tunnel_id $VAR(./tunnel-id/@) peer_tunnel_id $VAR(./peer-tunnel-id/@) udp_sport $VAR(./source-port/@) udp_dport $VAR(./destination-port/@) encap $VAR(./encapsulation/@) local $VAR(./local-ip/@) remote $VAR(./remote-ip/@) ||
- echo "ip l2tp add tunnel tunnel_id $VAR(./tunnel-id/@) peer_tunnel_id $VAR(./peer-tunnel-id/@) udp_sport $VAR(./sport/@) udp_dport $VAR(./dport/@) encap $VAR(./encap/@) local $VAR(./local-ip/@) remote $VAR(./remote-ip/@)"
- ip l2tp add session tunnel_id $VAR(./tunnel-id/@) session_id $VAR(./session-id/@) peer_session_id $VAR(./peer-session-id/@) || echo "ip l2tp add session tunnel_id $VAR(./tunnel-id/@) session_id $VAR(./session-id/@) peer_session_id $VAR(./peer-session-id/@)"
+ ip l2tp add tunnel tunnel_id $VAR(./tunnel-id/@) \
+ peer_tunnel_id $VAR(./peer-tunnel-id/@) \
+ udp_sport $VAR(./source-port/@) \
+ udp_dport $VAR(./destination-port/@) \
+ encap $VAR(./encapsulation/@) \
+ local $VAR(./local-ip/@) \
+ remote $VAR(./remote-ip/@)
+ ip l2tp add session session_id $VAR(./session-id/@) \
+ tunnel_id $VAR(./tunnel-id/@) \
+ peer_session_id $VAR(./peer-session-id/@)
ip link set $VAR(@) up
delete: