-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autotest: check nat64stateless module
- Loading branch information
Timur Aitov
committed
Sep 25, 2023
1 parent
b55acfe
commit f089898
Showing
23 changed files
with
287 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
43 changes: 43 additions & 0 deletions
43
autotests/units/001_one_port/009_nat64stateless/autotest.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
steps: | ||
- ipv4Update: "102.102.102.102/31 -> 200.0.0.1" | ||
- ipv6Update: "aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa/128 -> aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1" | ||
- sendPackets: | ||
- port: kni0 | ||
send: 001-send.pcap | ||
expect: 001-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 002-send.pcap | ||
expect: 002-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 003-send.pcap | ||
expect: 003-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 004-send.pcap | ||
expect: 004-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 005-send.pcap | ||
expect: 005-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 006-send.pcap | ||
expect: 006-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 007-send.pcap | ||
expect: 007-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 008-send.pcap | ||
expect: 008-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 009-send.pcap | ||
expect: 009-expect.pcap | ||
- sendPackets: | ||
- port: kni0 | ||
send: 010-send.pcap | ||
expect: 010-expect.pcap |
53 changes: 53 additions & 0 deletions
53
autotests/units/001_one_port/009_nat64stateless/controlplane.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"modules": { | ||
"lp0.100": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "100", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "acl0" | ||
}, | ||
"lp0.200": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "200", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "acl0" | ||
}, | ||
"acl0": { | ||
"type": "acl", | ||
"nextModules": [ | ||
"nat64stateless0" | ||
] | ||
}, | ||
"nat64stateless0": { | ||
"type": "nat64stateless", | ||
"translations": [ | ||
{ | ||
"ipv6Address": "aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa", | ||
"ipv6DestinationAddress": "5555:5555:5555:5555:5555:5555::", | ||
"ipv4Address": "153.153.153.153" | ||
} | ||
], | ||
"firewall": "false", | ||
"nextModule": "vrf0" | ||
}, | ||
"vrf0": { | ||
"type": "route", | ||
"interfaces": { | ||
"kni0.100": { | ||
"ipv6Prefix": "aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:2/112", | ||
"neighborIPv6Address": "aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1", | ||
"neighborMacAddress": "00:00:00:11:11:11", | ||
"nextModule": "lp0.100" | ||
}, | ||
"kni0.200": { | ||
"ipv4Prefix": "200.0.0.2/24", | ||
"neighborIPv4Address": "200.0.0.1", | ||
"neighborMacAddress": "00:00:00:22:22:22", | ||
"nextModule": "lp0.200" | ||
} | ||
} | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.