diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-04-12 08:11:40 -0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-04-12 08:11:40 -0700 |
commit | 4fb463c1e0f61fc449802d4d2d42d9b0c6623c94 (patch) | |
tree | 1c8c315a059496d1667adea42de83b4aab0eed34 | |
parent | 65289163fce66a7d6a55a97a9510a5323d71315f (diff) | |
download | vyatta-cfg-system-4fb463c1e0f61fc449802d4d2d42d9b0c6623c94.tar.gz vyatta-cfg-system-4fb463c1e0f61fc449802d4d2d42d9b0c6623c94.zip |
Bug #170: Set link up at after creating tunnel.
-rw-r--r-- | templates/interfaces/l2tpv3/node.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/interfaces/l2tpv3/node.def b/templates/interfaces/l2tpv3/node.def index 134a5c02..847146a8 100644 --- a/templates/interfaces/l2tpv3/node.def +++ b/templates/interfaces/l2tpv3/node.def @@ -38,6 +38,7 @@ create: 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 link set $VAR(@) up delete: ip link set $VAR(@) down |