NM.SettingBridge

g GObject.Object GObject.Object NM.Setting NM.Setting GObject.Object->NM.Setting NM.SettingBridge NM.SettingBridge NM.Setting->NM.SettingBridge

Subclasses:

None

Methods

Inherited:

NM.Setting (21), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_vlan (vlan)

clear_vlans ()

get_ageing_time ()

get_forward_delay ()

get_group_address ()

get_group_forward_mask ()

get_hello_time ()

get_mac_address ()

get_max_age ()

get_multicast_hash_max ()

get_multicast_last_member_count ()

get_multicast_last_member_interval ()

get_multicast_membership_interval ()

get_multicast_querier ()

get_multicast_querier_interval ()

get_multicast_query_interval ()

get_multicast_query_response_interval ()

get_multicast_query_use_ifaddr ()

get_multicast_router ()

get_multicast_snooping ()

get_multicast_startup_query_count ()

get_multicast_startup_query_interval ()

get_num_vlans ()

get_priority ()

get_stp ()

get_vlan (idx)

get_vlan_default_pvid ()

get_vlan_filtering ()

get_vlan_protocol ()

get_vlan_stats_enabled ()

remove_vlan (idx)

remove_vlan_by_vid (vid_start, vid_end)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

ageing-time

int

r/w/en

forward-delay

int

r/w/en

group-address

str

r/w/en

group-forward-mask

int

r/w/en

hello-time

int

r/w/en

mac-address

str

r/w/en

deprecated

max-age

int

r/w/en

multicast-hash-max

int

r/w/en

multicast-last-member-count

int

r/w/en

multicast-last-member-interval

int

r/w/en

multicast-membership-interval

int

r/w/en

multicast-querier

bool

r/w/en

multicast-querier-interval

int

r/w/en

multicast-query-interval

int

r/w/en

multicast-query-response-interval

int

r/w/en

multicast-query-use-ifaddr

bool

r/w/en

multicast-router

str

r/w/en

multicast-snooping

bool

r/w/en

multicast-startup-query-count

int

r/w/en

multicast-startup-query-interval

int

r/w/en

priority

int

r/w/en

stp

bool

r/w/en

vlan-default-pvid

int

r/w/en

vlan-filtering

bool

r/w/en

vlan-protocol

str

r/w/en

vlan-stats-enabled

bool

r/w/en

vlans

GLib.PtrArray

r/w

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingBridge(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingBridgeClass

Bridging Settings

classmethod new()
Returns:

the new empty NM.SettingBridge object

Return type:

NM.Setting

Creates a new NM.SettingBridge object with default values.

add_vlan(vlan)
Parameters:

vlan (NM.BridgeVlan) – the vlan to add

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

New in version 1.18.

clear_vlans()

Removes all configured VLANs.

New in version 1.18.

get_ageing_time()
Returns:

the NM.SettingBridge :ageing-time property of the setting

Return type:

int

get_forward_delay()
Returns:

the NM.SettingBridge :forward-delay property of the setting

Return type:

int

get_group_address()
Returns:

the NM.SettingBridge :group-address property of the setting

Return type:

str

New in version 1.24.

get_group_forward_mask()
Returns:

the NM.SettingBridge :group-forward-mask property of the setting

Return type:

int

New in version 1.10.

get_hello_time()
Returns:

the NM.SettingBridge :hello-time property of the setting

Return type:

int

get_mac_address()
Returns:

the NM.SettingBridge :mac-address property of the setting

Return type:

str

get_max_age()
Returns:

the NM.SettingBridge :max-age property of the setting

Return type:

int

get_multicast_hash_max()
Returns:

the NM.SettingBridge :multicast-hash-max property of the setting

Return type:

int

New in version 1.26.

get_multicast_last_member_count()
Returns:

the NM.SettingBridge :multicast-last-member-count property of the setting

Return type:

int

New in version 1.26.

get_multicast_last_member_interval()
Returns:

the NM.SettingBridge :multicast-last-member-interval property of the setting

Return type:

int

New in version 1.26.

get_multicast_membership_interval()
Returns:

the NM.SettingBridge :multicast-membership-interval property of the setting

Return type:

int

New in version 1.26.

get_multicast_querier()
Returns:

the NM.SettingBridge :multicast-querier property of the setting

Return type:

bool

New in version 1.24.

get_multicast_querier_interval()
Returns:

the NM.SettingBridge :multicast-querier-interval property of the setting

Return type:

int

New in version 1.26.

get_multicast_query_interval()
Returns:

the NM.SettingBridge :multicast-query-interval property of the setting

Return type:

int

New in version 1.26.

get_multicast_query_response_interval()
Returns:

the NM.SettingBridge :multicast-query-response-interval property of the setting

Return type:

int

New in version 1.26.

get_multicast_query_use_ifaddr()
Returns:

the NM.SettingBridge :multicast-query-use-ifaddr property of the setting

Return type:

bool

New in version 1.24.

get_multicast_router()
Returns:

the NM.SettingBridge :multicast-router property of the setting

Return type:

str

New in version 1.24.

get_multicast_snooping()
Returns:

the NM.SettingBridge :multicast-snooping property of the setting

Return type:

bool

New in version 1.2.

get_multicast_startup_query_count()
Returns:

the NM.SettingBridge :multicast-query-response-interval property of the setting

Return type:

int

New in version 1.26.

get_multicast_startup_query_interval()
Returns:

the NM.SettingBridge :multicast-startup-query-interval property of the setting

Return type:

int

New in version 1.26.

get_num_vlans()
Returns:

the number of VLANs

Return type:

int

New in version 1.18.

get_priority()
Returns:

the NM.SettingBridge :priority property of the setting

Return type:

int

get_stp()
Returns:

the NM.SettingBridge :stp property of the setting

Return type:

bool

get_vlan(idx)
Parameters:

idx (int) – index number of the VLAN to return

Returns:

the VLAN at index idx

Return type:

NM.BridgeVlan

New in version 1.18.

get_vlan_default_pvid()
Returns:

the NM.SettingBridge :vlan-default-pvid property of the setting

Return type:

int

New in version 1.18.

get_vlan_filtering()
Returns:

the NM.SettingBridge :vlan-filtering property of the setting

Return type:

bool

New in version 1.18.

get_vlan_protocol()
Returns:

the NM.SettingBridge :vlan-protocol property of the setting

Return type:

str

New in version 1.24.

get_vlan_stats_enabled()
Returns:

the NM.SettingBridge :vlan-stats-enabled property of the setting

Return type:

bool

New in version 1.24.

remove_vlan(idx)
Parameters:

idx (int) – index number of the VLAN.

Removes the vlan at index idx.

New in version 1.18.

remove_vlan_by_vid(vid_start, vid_end)
Parameters:
  • vid_start (int) – the vlan start index

  • vid_end (int) – the vlan end index

Returns:

True if the vlan was found and removed; False otherwise

Return type:

bool

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.

New in version 1.18.

Property Details

NM.SettingBridge.props.ageing_time
Name:

ageing-time

Type:

int

Default Value:

300

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The Ethernet MAC address aging time, in seconds.

NM.SettingBridge.props.forward_delay
Name:

forward-delay

Type:

int

Default Value:

15

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The Spanning Tree Protocol (STP) forwarding delay, in seconds.

NM.SettingBridge.props.group_address
Name:

group-address

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If specified, The MAC address of the multicast group this bridge uses for STP.

The address must be a link-local address in standard Ethernet MAC address format, ie an address of the form 01:80:py:data::C2<NM.SettingBridge.props.C2>:00:00:0X, with X in [0, 4..F]. If not specified the default value is 01:80:py:data::C2<NM.SettingBridge.props.C2>:00:00:00.

New in version 1.24.

NM.SettingBridge.props.group_forward_mask
Name:

group-forward-mask

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

A mask of group addresses to forward. Usually, group addresses in the range from 01:80:py:data::C2<NM.SettingBridge.props.C2>:00:00:00 to 01:80:py:data::C2<NM.SettingBridge.props.C2>:00:00:0F are not forwarded according to standards. This property is a mask of 16 bits, each corresponding to a group address in that range that must be forwarded. The mask can’t have bits 0, 1 or 2 set because they are used for STP, MAC pause frames and LACP.

New in version 1.10.

NM.SettingBridge.props.hello_time
Name:

hello-time

Type:

int

Default Value:

2

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The Spanning Tree Protocol (STP) hello time, in seconds.

NM.SettingBridge.props.mac_address
Name:

mac-address

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If specified, the MAC address of bridge. When creating a new bridge, this MAC address will be set.

If this field is left unspecified, the “ethernet.cloned-mac-address” is referred instead to generate the initial MAC address. Note that setting “ethernet.cloned-mac-address” anyway overwrites the MAC address of the bridge later while activating the bridge.

Deprecated since version 1.12: Use the NM.SettingWired :cloned-mac-address property instead.

NM.SettingBridge.props.max_age
Name:

max-age

Type:

int

Default Value:

20

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The Spanning Tree Protocol (STP) maximum message age, in seconds.

NM.SettingBridge.props.multicast_hash_max
Name:

multicast-hash-max

Type:

int

Default Value:

4096

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Set maximum size of multicast hash table (value must be a power of 2).

NM.SettingBridge.props.multicast_last_member_count
Name:

multicast-last-member-count

Type:

int

Default Value:

2

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Set the number of queries the bridge will send before stopping forwarding a multicast group after a “leave” message has been received.

NM.SettingBridge.props.multicast_last_member_interval
Name:

multicast-last-member-interval

Type:

int

Default Value:

100

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Set interval (in deciseconds) between queries to find remaining members of a group, after a “leave” message is received.

NM.SettingBridge.props.multicast_membership_interval
Name:

multicast-membership-interval

Type:

int

Default Value:

26000

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Set delay (in deciseconds) after which the bridge will leave a group, if no membership reports for this group are received.

NM.SettingBridge.props.multicast_querier
Name:

multicast-querier

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Enable or disable sending of multicast queries by the bridge. If not specified the option is disabled.

NM.SettingBridge.props.multicast_querier_interval
Name:

multicast-querier-interval

Type:

int

Default Value:

25500

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If no queries are seen after this delay (in deciseconds) has passed, the bridge will start to send its own queries.

NM.SettingBridge.props.multicast_query_interval
Name:

multicast-query-interval

Type:

int

Default Value:

12500

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Interval (in deciseconds) between queries sent by the bridge after the end of the startup phase.

NM.SettingBridge.props.multicast_query_response_interval
Name:

multicast-query-response-interval

Type:

int

Default Value:

1000

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Set the Max Response Time/Max Response Delay (in deciseconds) for IGMP/MLD queries sent by the bridge.

NM.SettingBridge.props.multicast_query_use_ifaddr
Name:

multicast-query-use-ifaddr

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If enabled the bridge’s own IP address is used as the source address for IGMP queries otherwise the default of 0.0.0.0 is used.

NM.SettingBridge.props.multicast_router
Name:

multicast-router

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Sets bridge’s multicast router. Multicast-snooping must be enabled for this option to work.

Supported values are: ‘auto’, ‘disabled’, ‘enabled’ to which kernel assigns the numbers 1, 0, and 2, respectively. If not specified the default value is ‘auto’ (1).

NM.SettingBridge.props.multicast_snooping
Name:

multicast-snooping

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Controls whether IGMP snooping is enabled for this bridge. Note that if snooping was automatically disabled due to hash collisions, the system may refuse to enable the feature until the collisions are resolved.

New in version 1.2.

NM.SettingBridge.props.multicast_startup_query_count
Name:

multicast-startup-query-count

Type:

int

Default Value:

2

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Set the number of IGMP queries to send during startup phase.

NM.SettingBridge.props.multicast_startup_query_interval
Name:

multicast-startup-query-interval

Type:

int

Default Value:

3125

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Sets the time (in deciseconds) between queries sent out at startup to determine membership information.

NM.SettingBridge.props.priority
Name:

priority

Type:

int

Default Value:

32768

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Sets the Spanning Tree Protocol (STP) priority for this bridge. Lower values are “better”; the lowest priority bridge will be elected the root bridge.

NM.SettingBridge.props.stp
Name:

stp

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Controls whether Spanning Tree Protocol (STP) is enabled for this bridge.

NM.SettingBridge.props.vlan_default_pvid
Name:

vlan-default-pvid

Type:

int

Default Value:

1

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The default PVID for the ports of the bridge, that is the VLAN id assigned to incoming untagged frames.

New in version 1.18.

NM.SettingBridge.props.vlan_filtering
Name:

vlan-filtering

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Control whether VLAN filtering is enabled on the bridge.

New in version 1.18.

NM.SettingBridge.props.vlan_protocol
Name:

vlan-protocol

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If specified, the protocol used for VLAN filtering.

Supported values are: ‘802.1Q’, ‘802.1ad’. If not specified the default value is ‘802.1Q’.

New in version 1.24.

NM.SettingBridge.props.vlan_stats_enabled
Name:

vlan-stats-enabled

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Controls whether per-VLAN stats accounting is enabled.

NM.SettingBridge.props.vlans
Name:

vlans

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE

Array of bridge VLAN objects. In addition to the VLANs specified here, the bridge will also have the default-pvid VLAN configured by the bridge.vlan-default-pvid property.

In nmcli the VLAN list can be specified with the following syntax:

$vid ‘pvid [untagged]’ [, $vid ‘pvid [untagged]’]…

where $vid is either a single id between 1 and 4094 or a range, represented as a couple of ids separated by a dash.

New in version 1.18.