tests: verify ttl is remapped to tunnel-ttl
This commit is contained in:
parent
075352b631
commit
93116920da
4 changed files with 5 additions and 0 deletions
1
tests/fixtures/tunnel-ifupdown2.interfaces
vendored
1
tests/fixtures/tunnel-ifupdown2.interfaces
vendored
|
@ -4,6 +4,7 @@ iface tun0
|
||||||
tunnel-endpoint 203.0.113.1
|
tunnel-endpoint 203.0.113.1
|
||||||
tunnel-mode gre
|
tunnel-mode gre
|
||||||
tunnel-physdev eth0
|
tunnel-physdev eth0
|
||||||
|
tunnel-ttl 255
|
||||||
address 203.0.113.10/30
|
address 203.0.113.10/30
|
||||||
gateway 203.0.113.9
|
gateway 203.0.113.9
|
||||||
|
|
||||||
|
|
1
tests/fixtures/tunnel-legacy.interfaces
vendored
1
tests/fixtures/tunnel-legacy.interfaces
vendored
|
@ -4,6 +4,7 @@ iface tun0
|
||||||
endpoint 203.0.113.1
|
endpoint 203.0.113.1
|
||||||
mode gre
|
mode gre
|
||||||
tunnel-dev eth0
|
tunnel-dev eth0
|
||||||
|
ttl 255
|
||||||
address 203.0.113.10/30
|
address 203.0.113.10/30
|
||||||
gateway 203.0.113.9
|
gateway 203.0.113.9
|
||||||
|
|
||||||
|
|
1
tests/fixtures/tunnel.interfaces
vendored
1
tests/fixtures/tunnel.interfaces
vendored
|
@ -4,6 +4,7 @@ iface tun0
|
||||||
tunnel-remote 203.0.113.1
|
tunnel-remote 203.0.113.1
|
||||||
tunnel-mode gre
|
tunnel-mode gre
|
||||||
tunnel-dev eth0
|
tunnel-dev eth0
|
||||||
|
tunnel-ttl 255
|
||||||
address 203.0.113.10/30
|
address 203.0.113.10/30
|
||||||
gateway 203.0.113.9
|
gateway 203.0.113.9
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,7 @@ tunnel_legacy_rewrite_body() {
|
||||||
-o match:"tunnel-local 203.0.113.2" \
|
-o match:"tunnel-local 203.0.113.2" \
|
||||||
-o match:"tunnel-remote 203.0.113.1" \
|
-o match:"tunnel-remote 203.0.113.1" \
|
||||||
-o match:"tunnel-mode gre" \
|
-o match:"tunnel-mode gre" \
|
||||||
|
-o match:"tunnel-ttl 255" \
|
||||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/tunnel-legacy.interfaces tun0
|
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/tunnel-legacy.interfaces tun0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,5 +177,6 @@ tunnel_ifupdown2_rewrite_body() {
|
||||||
-o match:"tunnel-local 203.0.113.2" \
|
-o match:"tunnel-local 203.0.113.2" \
|
||||||
-o match:"tunnel-remote 203.0.113.1" \
|
-o match:"tunnel-remote 203.0.113.1" \
|
||||||
-o match:"tunnel-mode gre" \
|
-o match:"tunnel-mode gre" \
|
||||||
|
-o match:"tunnel-ttl 255" \
|
||||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/tunnel-ifupdown2.interfaces tun0
|
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/tunnel-ifupdown2.interfaces tun0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue