SettingVlan
Object Hierarchy:
Description:
VLAN Settings
Namespace: NM
Package: libnm
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 PARENT
- public const string PROTOCOL
- public const string SETTING_NAME
Properties:
- public string[] egress_priority_map { owned get; set; }
For outgoing packets, a list of mappings from Linux SKB priorities to 802.1p priorities.
- public VlanFlags flags { get; set; }
One or more flags which control the behavior and features of the VLAN interface.
- public uint id { get; set; }
The VLAN identifier that the interface created by this connection should be assigned.
- public string[] ingress_priority_map { owned get; set; }
For incoming packets, a list of mappings from 802.1p priorities to Linux SKB priorities.
- public string parent { owned get; set; }
If given, specifies the parent interface name or parent connection UUID from which this VLAN interface should be created.
- public string protocol { owned get; set; }
Specifies the VLAN protocol to use for encapsulation.
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 ingress_priority_map or egress_priority_map properties of the setting.
- public bool add_priority_str (VlanPriorityMap map, string str)
Adds a priority map entry into either the ingress_priority_map or the egress_priority_map properties.
- public void clear_priorities (VlanPriorityMap map)
Clear all the entries from ingress_priority_map or egress_priority_map properties.
- public uint32 get_flags ()
- public uint32 get_id ()
- public int32 get_num_priorities (VlanPriorityMap map)
Returns the number of entries in the ingress_priority_map or 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 ingress_priority_map or egress_priority_map properties of this setting.
- public unowned string get_protocol ()
- public void remove_priority (VlanPriorityMap map, uint32 idx)
Removes the priority map at index
idx
from the ingress_priority_map or egress_priority_map properties. - public bool remove_priority_by_value (VlanPriorityMap map, uint32 from, uint32 to)
Removes the priority map
form
:to
from the ingress_priority_map or egress_priority_map (according tomap
argument) properties. - public bool remove_priority_str_by_value (VlanPriorityMap map, string str)
Removes the priority map
str
from the ingress_priority_map or 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