problem occurs when both interface created using multiprocessing module of python
----------------
Process 1 execution ->
ip link add link ens34 2icx0 type macvlan
ifconfig 2icx0 up
ip addr add 192.168.49.230/16 dev 2icx0
Process 2 execution ->
ip link add link ens34 2icx1 type macvlan
ifconfig 2icx1 up
ip addr add 192.168.49.231/16 dev 2icx1
----------------
however this works when run in a order like:
----------------------------------------------------------------
ip link add link ens34 2icx0 type macvlan
ifconfig 2icx0 up
ip addr add 192.168.49.230/16 dev 2icx0
ip link add link ens34 2icx1 type macvlan
ifconfig 2icx1 up
ip addr add 192.168.49.231/16 dev 2icx1
problem occurs when both interface created using multiprocessing module of python
----------------
Process 1 execution ->
ip link add link ens34 2icx0 type macvlan
ifconfig 2icx0 up
ip addr add 192.168.49.230/16 dev 2icx0
Process 2 execution ->
ip link add link ens34 2icx1 type macvlan
ifconfig 2icx1 up
ip addr add 192.168.49.231/16 dev 2icx1
----------------
however this works when run in a order like: ------- ------- ------- ------- ------- ------- ------- ------- -
-------
ip link add link ens34 2icx0 type macvlan
ifconfig 2icx0 up
ip addr add 192.168.49.230/16 dev 2icx0
ip link add link ens34 2icx1 type macvlan
ifconfig 2icx1 up
ip addr add 192.168.49.231/16 dev 2icx1