Skip to content

Commit

Permalink
autotest: check nat64stateless module
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Aitov committed Sep 25, 2023
1 parent b55acfe commit f089898
Show file tree
Hide file tree
Showing 23 changed files with 287 additions and 0 deletions.
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 autotests/units/001_one_port/009_nat64stateless/autotest.yaml
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 autotests/units/001_one_port/009_nat64stateless/controlplane.conf
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"
}
}
}
}
}
191 changes: 191 additions & 0 deletions autotests/units/001_one_port/009_nat64stateless/gen.py

Large diffs are not rendered by default.

0 comments on commit f089898

Please sign in to comment.