Mini Shell

Direktori : /opt/imh-python/lib/python3.9/site-packages/pyroute2/netlink/rtnl/ifinfmsg/plugins/
Upload File :
Current File : //opt/imh-python/lib/python3.9/site-packages/pyroute2/netlink/rtnl/ifinfmsg/plugins/ipvlan.py

from pyroute2.netlink import nla


class ipvlan(nla):
    prefix = 'IFLA_'
    nla_map = (('IFLA_IPVLAN_UNSPEC', 'none'), ('IFLA_IPVLAN_MODE', 'uint16'))

    modes = {
        0: 'IPVLAN_MODE_L2',
        1: 'IPVLAN_MODE_L3',
        'IPVLAN_MODE_L2': 0,
        'IPVLAN_MODE_L3': 1,
    }

Zerion Mini Shell 1.0