NM.DeviceVlan
- Subclasses:
None
Class Details
-
class NM.DeviceVlan(**kwargs)
- Bases:
NM.Device
- Abstract:
No
- Structure:
NM.DeviceVlanClass
-
get_carrier()
- Returns:
True
if the device has carrier
- Return type:
bool
Whether the device has carrier.
-
get_parent()
- Returns:
the device’s parent device
- Return type:
NM.Device
-
get_vlan_id()
- Returns:
the device’s VLAN ID
- Return type:
int
Property Details
-
NM.DeviceVlan.props.carrier
- Name:
carrier
- Type:
bool
- Default Value:
False
- Flags:
READABLE
Whether the device has carrier.
-
NM.DeviceVlan.props.parent
- Name:
parent
- Type:
NM.Device
- Default Value:
None
- Flags:
READABLE
The devices’s parent device.
-
NM.DeviceVlan.props.vlan_id
- Name:
vlan-id
- Type:
int
- Default Value:
0
- Flags:
READABLE
The device’s VLAN ID.