tests/qemu: pass MS_PROTO to gtp-tunnel delete
The MS protocol needs to be passed to gtp-tunnel delete, instead of the SGSN_GGSN_PROTO. Fix for: + gtp-tunnel add gtp_sgsn v1 200 100 172.99.0.1 fd00::2 … + gtp-tunnel delete gtp_sgsn v1 200 ip6 genl_socket_talk: No such file or directory Change-Id: Ib6b011520fe41855b87ed0e2f6f8a6af3d0b2400
This commit is contained in:
parent
7928152581
commit
170337196b
|
@ -8,6 +8,7 @@ alias ggsn_side="ip netns exec ggsn_side"
|
|||
|
||||
# MS - SGSN -gtp- GGSN - WEBSERVER
|
||||
tunnel_start() {
|
||||
test -n "$MS_PROTO"
|
||||
test -n "$MS"
|
||||
test -n "$MS_PREFLEN"
|
||||
test -n "$SGSN_GGSN_PROTO"
|
||||
|
@ -67,9 +68,9 @@ tunnel_stop() {
|
|||
|
||||
ip link del veth_sgsn
|
||||
ip route del "$WEBSERVER"/"$MS_PREFLEN" dev gtp_sgsn
|
||||
gtp-tunnel delete gtp_sgsn v1 200 "$SGSN_GGSN_PROTO"
|
||||
gtp-tunnel delete gtp_sgsn v1 200 "$MS_PROTO"
|
||||
gtp-link del gtp_sgsn
|
||||
ggsn_side gtp-tunnel delete gtp_ggsn v1 100 "$SGSN_GGSN_PROTO"
|
||||
ggsn_side gtp-tunnel delete gtp_ggsn v1 100 "$MS_PROTO"
|
||||
ggsn_side gtp-link del gtp_ggsn
|
||||
ip netns del ggsn_side
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh -ex
|
||||
. /tests/00_test_functions.sh
|
||||
|
||||
MS_PROTO="ip"
|
||||
MS="172.99.0.1"
|
||||
MS_PREFLEN="32"
|
||||
SGSN_GGSN_PROTO="ip"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh -ex
|
||||
. /tests/00_test_functions.sh
|
||||
|
||||
MS_PROTO="ip"
|
||||
MS="172.99.0.1"
|
||||
MS_PREFLEN="32"
|
||||
SGSN_GGSN_PROTO="ip6"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh -ex
|
||||
. /tests/00_test_functions.sh
|
||||
|
||||
MS_PROTO="ip6"
|
||||
MS="fd00::"
|
||||
MS_PREFLEN="64"
|
||||
SGSN_GGSN_PROTO="ip"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh -ex
|
||||
. /tests/00_test_functions.sh
|
||||
|
||||
MS_PROTO="ip6"
|
||||
MS="fc00::"
|
||||
MS_PREFLEN="64"
|
||||
SGSN_GGSN_PROTO="ip6"
|
||||
|
|
Loading…
Reference in New Issue