Dear Maintainers,

The situation is even worse. All interfaces with dot and without colon
symbol will be removed from the system after ifdown call.

After crashing the condition statement, instructions in "else" block
will be executed (link.defn, none down method):

     if test `cat /sys/class/net/%link%/type` -eq 32; then \
         echo 0x%vlan_id1% > /sys/class/net/%link%/delete_child; \
     else \
         ip link del %iface%; \
     fi if (iface_has(".") && !iface_has(":"))

Interface will be deleted.

Note that it will be created after ifup call only if it fits
<parent>.<vlan_id> pattern. link.defn, none up:

     if test -d /sys/class/net/%link% && \
         ! ip link show %iface0% >/dev/null 2>&1; \
     then \
         if test `cat /sys/class/net/%link%/type` -eq 32; then \
             echo 0x%vlan_id1% > /sys/class/net/%link%/create_child; \
         else \
             ip link set up dev %link%; \
             ip link add link %link% name %iface0% type vlan id %vlan_id%; \
     fi; \

Best regards
Aleksandr Muravev

Reply via email to