Skip to content

Commit

Permalink
tests: use private addresses in nhrp_redundancy
Browse files Browse the repository at this point in the history
Use private addresses in nhrp_redundancy.

> cd tests/topotests/nhrp_redundancy
> git grep 176.16  | cut -f1 -d: | uniq | xargs -L1 sed -e 's|176.16|172.16|g' -i
> git grep 5.5.5.  | cut -f1 -d: | uniq | xargs -L1 sed -e 's|5.5.5.|10.5.5.|g' -i
> git grep 4.4.4  | cut -f1 -d: | uniq | xargs -L1 sed -e 's|4.4.4.|10.4.4.|g' -i

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed Aug 30, 2024
1 parent 94ba967 commit 64ad1dc
Show file tree
Hide file tree
Showing 29 changed files with 135 additions and 135 deletions.
4 changes: 2 additions & 2 deletions tests/topotests/nhrp_redundancy/host/zebra.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface host-eth0
ip address 4.4.4.7/24
ip address 10.4.4.7/24
!
ip route 0.0.0.0/0 4.4.4.4
ip route 0.0.0.0/0 10.4.4.4
8 changes: 4 additions & 4 deletions tests/topotests/nhrp_redundancy/nhc1/nhrp_cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"interface": "nhc1-gre0",
"type": "nhs",
"protocol": "176.16.1.2",
"protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
Expand All @@ -17,7 +17,7 @@
{
"interface": "nhc1-gre0",
"type": "local",
"protocol": "176.16.1.4",
"protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
Expand All @@ -28,7 +28,7 @@
{
"interface": "nhc1-gre0",
"type": "nhs",
"protocol": "176.16.1.3",
"protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
Expand All @@ -39,7 +39,7 @@
{
"interface": "nhc1-gre0",
"type": "nhs",
"protocol": "176.16.1.1",
"protocol": "172.16.1.1",
"nbma": "192.168.1.1",
"claimed_nbma": "192.168.1.1",
"used": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"interface": "nhc1-gre0",
"type": "nhs",
"protocol": "176.16.1.2",
"protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
Expand All @@ -17,7 +17,7 @@
{
"interface": "nhc1-gre0",
"type": "local",
"protocol": "176.16.1.4",
"protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
Expand All @@ -28,7 +28,7 @@
{
"interface": "nhc1-gre0",
"type": "nhs",
"protocol": "176.16.1.3",
"protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
Expand Down
12 changes: 6 additions & 6 deletions tests/topotests/nhrp_redundancy/nhc1/nhrp_route.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"176.16.1.1\/32": [
"172.16.1.1\/32": [
{
"prefix": "176.16.1.1\/32",
"prefix": "172.16.1.1\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -22,9 +22,9 @@
]
}
],
"176.16.1.2\/32": [
"172.16.1.2\/32": [
{
"prefix": "176.16.1.2\/32",
"prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -45,9 +45,9 @@
]
}
],
"176.16.1.3\/32": [
"172.16.1.3\/32": [
{
"prefix": "176.16.1.3\/32",
"prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand Down
10 changes: 5 additions & 5 deletions tests/topotests/nhrp_redundancy/nhc1/nhrp_route_nhs1_down.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"176.16.1.1\/32": null,
"176.16.1.2\/32": [
"172.16.1.1\/32": null,
"172.16.1.2\/32": [
{
"prefix": "176.16.1.2\/32",
"prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -23,9 +23,9 @@
]
}
],
"176.16.1.3\/32": [
"172.16.1.3\/32": [
{
"prefix": "176.16.1.3\/32",
"prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand Down
22 changes: 11 additions & 11 deletions tests/topotests/nhrp_redundancy/nhc1/nhrp_route_shortcut.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"5.5.5.0\/24": [
"10.5.5.0\/24": [
{
"prefix": "5.5.5.0\/24",
"prefix": "10.5.5.0\/24",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -15,17 +15,17 @@
"nexthops": [
{
"fib": true,
"ip": "176.16.1.5",
"ip": "172.16.1.5",
"afi": "ipv4",
"interfaceName": "nhc1-gre0",
"active": true
}
]
}
],
"176.16.1.1\/32": [
"172.16.1.1\/32": [
{
"prefix": "176.16.1.1\/32",
"prefix": "172.16.1.1\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -46,9 +46,9 @@
]
}
],
"176.16.1.2\/32": [
"172.16.1.2\/32": [
{
"prefix": "176.16.1.2\/32",
"prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -69,9 +69,9 @@
]
}
],
"176.16.1.3\/32": [
"172.16.1.3\/32": [
{
"prefix": "176.16.1.3\/32",
"prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -92,9 +92,9 @@
]
}
],
"176.16.1.5\/32": [
"172.16.1.5\/32": [
{
"prefix": "176.16.1.5\/32",
"prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"5.5.5.0\/24": [
"10.5.5.0\/24": [
{
"prefix": "5.5.5.0\/24",
"prefix": "10.5.5.0\/24",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -15,18 +15,18 @@
"nexthops": [
{
"fib": true,
"ip": "176.16.1.5",
"ip": "172.16.1.5",
"afi": "ipv4",
"interfaceName": "nhc1-gre0",
"active": true
}
]
}
],
"176.16.1.1\/32": null,
"176.16.1.2\/32": [
"172.16.1.1\/32": null,
"172.16.1.2\/32": [
{
"prefix": "176.16.1.2\/32",
"prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -47,9 +47,9 @@
]
}
],
"176.16.1.3\/32": [
"172.16.1.3\/32": [
{
"prefix": "176.16.1.3\/32",
"prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -70,9 +70,9 @@
]
}
],
"176.16.1.5\/32": [
"172.16.1.5\/32": [
{
"prefix": "176.16.1.5\/32",
"prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"table":[
{
"type":"dynamic",
"prefix":"5.5.5.0/24",
"via":"176.16.1.5"
"prefix":"10.5.5.0/24",
"via":"172.16.1.5"
}
]
}
10 changes: 5 additions & 5 deletions tests/topotests/nhrp_redundancy/nhc1/zebra.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ interface nhc1-eth0
!
ip route 192.168.1.0/24 192.168.2.6
interface nhc1-gre0
ip address 176.16.1.4/32
ip address 172.16.1.4/32
no link-detect
ipv6 nd suppress-ra
!
interface nhc1-eth1
ip address 4.4.4.4/24
ip address 10.4.4.4/24
!
ip route 0.0.0.0/0 176.16.1.1 50
ip route 0.0.0.0/0 176.16.1.2 60
ip route 0.0.0.0/0 176.16.1.3 70
ip route 0.0.0.0/0 172.16.1.1 50
ip route 0.0.0.0/0 172.16.1.2 60
ip route 0.0.0.0/0 172.16.1.3 70
8 changes: 4 additions & 4 deletions tests/topotests/nhrp_redundancy/nhc2/nhrp_cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"interface": "nhc2-gre0",
"type": "nhs",
"protocol": "176.16.1.2",
"protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
Expand All @@ -17,7 +17,7 @@
{
"interface": "nhc2-gre0",
"type": "nhs",
"protocol": "176.16.1.3",
"protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
Expand All @@ -28,7 +28,7 @@
{
"interface": "nhc2-gre0",
"type": "nhs",
"protocol": "176.16.1.1",
"protocol": "172.16.1.1",
"nbma": "192.168.1.1",
"claimed_nbma": "192.168.1.1",
"used": false,
Expand All @@ -39,7 +39,7 @@
{
"interface": "nhc2-gre0",
"type": "local",
"protocol": "176.16.1.5",
"protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"interface": "nhc2-gre0",
"type": "nhs",
"protocol": "176.16.1.2",
"protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
Expand All @@ -17,7 +17,7 @@
{
"interface": "nhc2-gre0",
"type": "nhs",
"protocol": "176.16.1.3",
"protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
Expand All @@ -28,7 +28,7 @@
{
"interface": "nhc2-gre0",
"type": "local",
"protocol": "176.16.1.5",
"protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
Expand Down
12 changes: 6 additions & 6 deletions tests/topotests/nhrp_redundancy/nhc2/nhrp_route.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"176.16.1.1\/32": [
"172.16.1.1\/32": [
{
"prefix": "176.16.1.1\/32",
"prefix": "172.16.1.1\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -22,9 +22,9 @@
]
}
],
"176.16.1.2\/32": [
"172.16.1.2\/32": [
{
"prefix": "176.16.1.2\/32",
"prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand All @@ -45,9 +45,9 @@
]
}
],
"176.16.1.3\/32": [
"172.16.1.3\/32": [
{
"prefix": "176.16.1.3\/32",
"prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
Expand Down
Loading

0 comments on commit 64ad1dc

Please sign in to comment.