SettingVlan
Object Hierarchy:
Description:
Namespace: NM
Package: libnm-util
Content:
Constants:
- public const string EGRESS_PRIORITY_MAP
- public const string FLAGS
- public const string ID
- public const string INGRESS_PRIORITY_MAP
- public const string INTERFACE_NAME
- public const string PARENT
- public const string SETTING_NAME
Properties:
- public uint flags { get; set construct; }
One or more flags which control the behavior and features of the VLAN interface.
- public uint id { get; set construct; }
The VLAN identifier that the interface created by this connection should be assigned.
- public string interface_name { owned get; set construct; }
If given, specifies the kernel name of the VLAN interface.
- public string parent { owned get; set construct; }
If given, specifies the parent interface name or parent connection UUID from which this VLAN interface should be created.
Creation methods:
- public SettingVlan ()
Creates a new SettingVlan object with default values.
Methods:
- public bool add_priority (VlanPriorityMap map, uint32 from, uint32 to)
Adds a priority mapping to the
NMSettingVlan:ingress_priority_map
orNMSettingVlan:egress_priority_map
properties of the setting. - public bool add_priority_str (VlanPriorityMap map, string str)
Adds a priority map entry into either the
NMSettingVlan:ingress_priority_map
or theNMSettingVlan:egress_priority_map
properties. - public void clear_priorities (VlanPriorityMap map)
Clear all the entries from
NMSettingVlan:ingress_priority_map
orNMSettingVlan:egress_priority_map
properties. - public uint32 get_flags ()
- public uint32 get_id ()
- public unowned string get_interface_name ()
- public int32 get_num_priorities (VlanPriorityMap map)
Returns the number of entries in the
NMSettingVlan:ingress_priority_map
orNMSettingVlan:egress_priority_map
properties of this setting. - public unowned string get_parent ()
- public bool get_priority (VlanPriorityMap map, uint32 idx, out uint32 out_from, out uint32 out_to)
Retrieve one of the entries of the
NMSettingVlan:ingress_priority_map
orNMSettingVlan:egress_priority_map
properties of this setting. - public void remove_priority (VlanPriorityMap map, uint32 idx)
Removes the priority map at index
idx
from theNMSettingVlan:ingress_priority_map
orNMSettingVlan:egress_priority_map
properties. - public bool remove_priority_by_value (VlanPriorityMap map, uint32 from, uint32 to)
Removes the priority map
form
:to
from theNMSettingVlan:ingress_priority_map
orNMSettingVlan:egress_priority_map
(according tomap
argument) properties. - public bool remove_priority_str_by_value (VlanPriorityMap map, string str)
Removes the priority map
str
from theNMSettingVlan:ingress_priority_map
orNMSettingVlan:egress_priority_map
(according tomap
argument) properties.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object