NMSettingBridgePort

NMSettingBridgePort — Describes connection properties for bridge ports

Functions

Types and Values

Description

The NMSettingBridgePort object is a NMSetting subclass that describes optional properties that apply to bridge ports.

Functions

nm_setting_bridge_port_new ()

NMSetting *
nm_setting_bridge_port_new (void);

Creates a new NMSettingBridgePort object with default values.

Returns

the new empty NMSettingBridgePort object.

[transfer full]


nm_setting_bridge_port_get_priority ()

guint16
nm_setting_bridge_port_get_priority (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “priority” property of the setting


nm_setting_bridge_port_get_path_cost ()

guint16
nm_setting_bridge_port_get_path_cost (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “path-cost” property of the setting


nm_setting_bridge_port_get_bpdu_guard ()

gboolean
nm_setting_bridge_port_get_bpdu_guard (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “bpdu-guard” property of the setting

Since: 1.60


nm_setting_bridge_port_get_broadcast_flood ()

gboolean
nm_setting_bridge_port_get_broadcast_flood
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “broadcast-flood” property of the setting

Since: 1.60


nm_setting_bridge_port_get_fast_leave ()

gboolean
nm_setting_bridge_port_get_fast_leave (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “fast-leave” property of the setting

Since: 1.60


nm_setting_bridge_port_get_hairpin_mode ()

gboolean
nm_setting_bridge_port_get_hairpin_mode
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “hairpin-mode” property of the setting


nm_setting_bridge_port_get_isolated ()

gboolean
nm_setting_bridge_port_get_isolated (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “isolated” property of the setting

Since: 1.60


nm_setting_bridge_port_get_learning ()

gboolean
nm_setting_bridge_port_get_learning (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “learning” property of the setting

Since: 1.60


nm_setting_bridge_port_get_locked ()

gboolean
nm_setting_bridge_port_get_locked (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “locked” property of the setting

Since: 1.60


nm_setting_bridge_port_get_multicast_flood ()

gboolean
nm_setting_bridge_port_get_multicast_flood
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “multicast-flood” property of the setting

Since: 1.60


nm_setting_bridge_port_get_multicast_to_unicast ()

gboolean
nm_setting_bridge_port_get_multicast_to_unicast
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “multicast-to-unicast” property of the setting

Since: 1.60


nm_setting_bridge_port_get_neighbor_suppress ()

gboolean
nm_setting_bridge_port_get_neighbor_suppress
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “neighbor-suppress” property of the setting

Since: 1.60


nm_setting_bridge_port_get_neighbor_vlan_suppress ()

gboolean
nm_setting_bridge_port_get_neighbor_vlan_suppress
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “neighbor-vlan-suppress” property of the setting

Since: 1.60


nm_setting_bridge_port_get_root_block ()

gboolean
nm_setting_bridge_port_get_root_block (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “root-block” property of the setting

Since: 1.60


nm_setting_bridge_port_get_unicast_flood ()

gboolean
nm_setting_bridge_port_get_unicast_flood
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “unicast-flood” property of the setting

Since: 1.60


nm_setting_bridge_port_get_vlan_tunnel ()

gboolean
nm_setting_bridge_port_get_vlan_tunnel
                               (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the “vlan-tunnel” property of the setting

Since: 1.60


nm_setting_bridge_port_add_vlan ()

void
nm_setting_bridge_port_add_vlan (NMSettingBridgePort *setting,
                                 NMBridgeVlan *vlan);

Appends a new vlan and associated information to the setting. The given vlan gets sealed and a reference to it is added.

Parameters

setting

the NMSettingBridgePort

 

vlan

the vlan to add

 

Since: 1.18


nm_setting_bridge_port_get_num_vlans ()

guint
nm_setting_bridge_port_get_num_vlans (NMSettingBridgePort *setting);

Parameters

setting

the NMSettingBridgePort

 

Returns

the number of VLANs

Since: 1.18


nm_setting_bridge_port_get_vlan ()

NMBridgeVlan *
nm_setting_bridge_port_get_vlan (NMSettingBridgePort *setting,
                                 guint idx);

Parameters

setting

the NMSettingBridgePort

 

idx

index number of the VLAN to return

 

Returns

the VLAN at index idx .

[transfer none]

Since: 1.18


nm_setting_bridge_port_remove_vlan ()

void
nm_setting_bridge_port_remove_vlan (NMSettingBridgePort *setting,
                                    guint idx);

Removes the vlan at index idx .

Parameters

setting

the NMSettingBridgePort

 

idx

index number of the VLAN.

 

Since: 1.18


nm_setting_bridge_port_remove_vlan_by_vid ()

gboolean
nm_setting_bridge_port_remove_vlan_by_vid
                               (NMSettingBridgePort *setting,
                                guint16 vid_start,
                                guint16 vid_end);

Remove the VLAN with range vid_start to vid_end . If vid_end is zero, it is assumed to be equal to vid_start and so the single-id VLAN with id vid_start is removed.

Parameters

setting

the NMSettingBridgePort

 

vid_start

the vlan start index

 

vid_end

the vlan end index

 

Returns

TRUE if the vlan was found and removed; FALSE otherwise

Since: 1.18


nm_setting_bridge_port_clear_vlans ()

void
nm_setting_bridge_port_clear_vlans (NMSettingBridgePort *setting);

Removes all configured VLANs.

Parameters

setting

the NMSettingBridgePort

 

Since: 1.18

Types and Values

NM_SETTING_BRIDGE_PORT_SETTING_NAME

#define NM_SETTING_BRIDGE_PORT_SETTING_NAME "bridge-port"

NM_SETTING_BRIDGE_PORT_PRIORITY

#define NM_SETTING_BRIDGE_PORT_PRIORITY               "priority"

NM_SETTING_BRIDGE_PORT_PATH_COST

#define NM_SETTING_BRIDGE_PORT_PATH_COST              "path-cost"

NM_SETTING_BRIDGE_PORT_BPDU_GUARD

#define NM_SETTING_BRIDGE_PORT_BPDU_GUARD             "bpdu-guard"

NM_SETTING_BRIDGE_PORT_BROADCAST_FLOOD

#define NM_SETTING_BRIDGE_PORT_BROADCAST_FLOOD        "broadcast-flood"

NM_SETTING_BRIDGE_PORT_FAST_LEAVE

#define NM_SETTING_BRIDGE_PORT_FAST_LEAVE             "fast-leave"

NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE

#define NM_SETTING_BRIDGE_PORT_HAIRPIN_MODE           "hairpin-mode"

NM_SETTING_BRIDGE_PORT_ISOLATED

#define NM_SETTING_BRIDGE_PORT_ISOLATED               "isolated"

NM_SETTING_BRIDGE_PORT_LEARNING

#define NM_SETTING_BRIDGE_PORT_LEARNING               "learning"

NM_SETTING_BRIDGE_PORT_LOCKED

#define NM_SETTING_BRIDGE_PORT_LOCKED                 "locked"

NM_SETTING_BRIDGE_PORT_MULTICAST_FLOOD

#define NM_SETTING_BRIDGE_PORT_MULTICAST_FLOOD        "multicast-flood"

NM_SETTING_BRIDGE_PORT_MULTICAST_TO_UNICAST

#define NM_SETTING_BRIDGE_PORT_MULTICAST_TO_UNICAST   "multicast-to-unicast"

NM_SETTING_BRIDGE_PORT_NEIGHBOR_SUPPRESS

#define NM_SETTING_BRIDGE_PORT_NEIGHBOR_SUPPRESS      "neighbor-suppress"

NM_SETTING_BRIDGE_PORT_NEIGHBOR_VLAN_SUPPRESS

#define NM_SETTING_BRIDGE_PORT_NEIGHBOR_VLAN_SUPPRESS "neighbor-vlan-suppress"

NM_SETTING_BRIDGE_PORT_ROOT_BLOCK

#define NM_SETTING_BRIDGE_PORT_ROOT_BLOCK             "root-block"

NM_SETTING_BRIDGE_PORT_UNICAST_FLOOD

#define NM_SETTING_BRIDGE_PORT_UNICAST_FLOOD          "unicast-flood"

NM_SETTING_BRIDGE_PORT_VLAN_TUNNEL

#define NM_SETTING_BRIDGE_PORT_VLAN_TUNNEL            "vlan-tunnel"

NM_SETTING_BRIDGE_PORT_VLANS

#define NM_SETTING_BRIDGE_PORT_VLANS                  "vlans"