Some customers are using container interfaces with custom interface names (inside the container) and with a custom MAC address based on the chassis mac, with an offset 06:00:00:00:00:00.
Create two bridges (generic, non-VLAN filtering is fine), named br0 and br1
Use two veth pairs veth0a<-->veth0b, and veth1a<-->veth1b
Set custom container network interface names of veth0a and veth1a, use br0 and br1, respectively (yes, really)
Set custom MAC address of veth0a (chassis + offset as above)
Set veth0b and vet1b as bridge ports in br0 and br1, respectively
Add IP addresses on all interfaces (except the bridge ports, of course) to verify connectivity
Question: how to verify custom name when interface is inside container?
Maybe it would be useful in this test to also verify that disabling the container, and thus telling podman to move the interfaces back to the host's network namespace, also works? Renaming the interface back to their original names without clashing with the bridges named with the same names as the interfaces inside the container.
Add an ASCII drawing (or svg) to this test so to illustrate the connections. Preferably something prettier than the below:
Note: it's quite possible this test cannot currently be automated since there is no way for Infamy to connect to the the container. (The bundled container images do not have an SSH daemon and we don't want to go down the path of scripting the shell!)
Some customers are using container interfaces with custom interface names (inside the container) and with a custom MAC address based on the chassis mac, with an offset 06:00:00:00:00:00.
br0
andbr1
veth0a<-->veth0b
, andveth1a<-->veth1b
veth0a
andveth1a
, usebr0
andbr1
, respectively (yes, really)veth0a
(chassis + offset as above)veth0b
andvet1b
as bridge ports inbr0
andbr1
, respectivelypodman
to move the interfaces back to the host's network namespace, also works? Renaming the interface back to their original names without clashing with the bridges named with the same names as the interfaces inside the container.Add an ASCII drawing (or svg) to this test so to illustrate the connections. Preferably something prettier than the below: