ci: Added napt pytest with vlan example

CI: add vlan example to ethernet patterns
Included a Pytest for the vlan_support example, which focuses on testing
the NAPT module in lwip by forwarding packets between different VLAN interfaces.
This commit is contained in:
Abhik Roy
2023-07-31 13:42:26 +00:00
parent 02f5b9a898
commit ef50beb4d0
9 changed files with 469 additions and 11 deletions
@@ -57,4 +57,48 @@ menu "Example Configuration"
endif #EXAMPLE_EXTRA_VLAN_INTERFACE
choice EXAMPLE_VLAN_DEFAULT_IF
prompt "Choose the default interface"
default EXAMPLE_ETHERNET_DEF_IF
help
Select the interface to be set as default
config EXAMPLE_ETHERNET_DEF_IF
bool
prompt "Internal Ethernet Interface"
config EXAMPLE_VLAN_DEF_IF
bool
prompt "VLAN Interface"
config EXAMPLE_EXTRA_VLAN_DEF_IF
bool
prompt "Additional VLAN Interface"
depends on EXAMPLE_EXTRA_VLAN_INTERFACE
endchoice
choice EXAMPLE_VLAN_ENABLE_NAPT_IF
prompt "Select the network interface to enable NAPT on"
default EXAMPLE_VLAN_NAPT_IF
help
Choose the interface on which NAPT will be enabled
config EXAMPLE_ETHERNET_NAPT_IF
bool
prompt "Internal Ethernet Interface"
config EXAMPLE_VLAN_NAPT_IF
bool
prompt "VLAN Interface"
config EXAMPLE_EXTRA_VLAN_NAPT_IF
bool
prompt "Additional VLAN Interface"
depends on EXAMPLE_EXTRA_VLAN_INTERFACE
endchoice
config EXAMPLE_VLAN_PYTEST_PC_IFACE
string
default "eth1"
help
The example will set this IPV4 address to this interface.
This configuration is used in pytest only.
This is a hidden configuration, i.e it will not show up im menuconfig.
endmenu