@@ -24,10 +24,19 @@ class BridgeSettings(NetworkManagerSettingsMixin):
2424 metadata = {'dbus_name' : 'group-address' , 'dbus_type' : 'ay' },
2525 default = None ,
2626 )
27+ """If specified, The MAC address of the multicast group this bridge uses for
28+ STP. The address must be a link-local address in standard Ethernet MAC address
29+ format, ie an address of the form 01:80:C2:00:00:0X, with X in [0, 4..F]. If
30+ not specified the default value is 01:80:C2:00:00:00."""
2731 group_forward_mask : Optional [int ] = field (
2832 metadata = {'dbus_name' : 'group-forward-mask' , 'dbus_type' : 'u' },
2933 default = None ,
3034 )
35+ """A mask of group addresses to forward. Usually, group addresses in the range
36+ from 01:80:C2:00:00:00 to 01:80:C2:00:00:0F are not forwarded according to
37+ standards. This property is a mask of 16 bits, each corresponding to a group
38+ address in that range that must be forwarded. The mask can't have bits 0, 1 or
39+ 2 set because they are used for STP, MAC pause frames and LACP."""
3140 hello_time : Optional [int ] = field (
3241 metadata = {'dbus_name' : 'hello-time' , 'dbus_type' : 'u' },
3342 default = 2 ,
@@ -36,10 +45,19 @@ class BridgeSettings(NetworkManagerSettingsMixin):
3645 metadata = {'dbus_name' : 'interface-name' , 'dbus_type' : 's' },
3746 default = None ,
3847 )
48+ """Deprecated in favor of connection.interface-name, but can be used for
49+ backward-compatibility with older daemons, to set the bridge's interface
50+ name."""
3951 mac_address : Optional [bytes ] = field (
4052 metadata = {'dbus_name' : 'mac-address' , 'dbus_type' : 'ay' },
4153 default = None ,
4254 )
55+ """If specified, the MAC address of bridge. When creating a new bridge, this
56+ MAC address will be set. If this field is left unspecified, the
57+ "ethernet.cloned-mac-address" is referred instead to generate the initial MAC
58+ address. Note that setting "ethernet.cloned-mac-address" anyway overwrites the
59+ MAC address of the bridge later while activating the bridge. Hence, this
60+ property is deprecated. Deprecated: 1"""
4361 max_age : Optional [int ] = field (
4462 metadata = {'dbus_name' : 'max-age' , 'dbus_type' : 'u' },
4563 default = 20 ,
@@ -52,45 +70,68 @@ class BridgeSettings(NetworkManagerSettingsMixin):
5270 metadata = {'dbus_name' : 'multicast-last-member-count' , 'dbus_type' : 'u' },
5371 default = 2 ,
5472 )
73+ """Set the number of queries the bridge will send before stopping forwarding a
74+ multicast group after a "leave" message has been received."""
5575 multicast_last_member_interval : Optional [int ] = field (
5676 metadata = {'dbus_name' : 'multicast-last-member-interval' ,
5777 'dbus_type' : 't' },
5878 default = 100 ,
5979 )
80+ """Set interval (in deciseconds) between queries to find remaining members of
81+ a group, after a "leave" message is received."""
6082 multicast_membership_interval : Optional [int ] = field (
6183 metadata = {'dbus_name' : 'multicast-membership-interval' ,
6284 'dbus_type' : 't' },
6385 default = 26000 ,
6486 )
87+ """Set delay (in deciseconds) after which the bridge will leave a group, if no
88+ membership reports for this group are received."""
6589 multicast_querier : Optional [bool ] = field (
6690 metadata = {'dbus_name' : 'multicast-querier' , 'dbus_type' : 'b' },
6791 default = False ,
6892 )
93+ """Enable or disable sending of multicast queries by the bridge. If not
94+ specified the option is disabled."""
6995 multicast_querier_interval : Optional [int ] = field (
7096 metadata = {'dbus_name' : 'multicast-querier-interval' , 'dbus_type' : 't' },
7197 default = 25500 ,
7298 )
99+ """If no queries are seen after this delay (in deciseconds) has passed, the
100+ bridge will start to send its own queries."""
73101 multicast_query_interval : Optional [int ] = field (
74102 metadata = {'dbus_name' : 'multicast-query-interval' , 'dbus_type' : 't' },
75103 default = 12500 ,
76104 )
105+ """Interval (in deciseconds) between queries sent by the bridge after the end
106+ of the startup phase."""
77107 multicast_query_response_interval : Optional [int ] = field (
78108 metadata = {'dbus_name' : 'multicast-query-response-interval' ,
79109 'dbus_type' : 't' },
80110 default = 1000 ,
81111 )
112+ """Set the Max Response Time/Max Response Delay (in deciseconds) for IGMP/MLD
113+ queries sent by the bridge."""
82114 multicast_query_use_ifaddr : Optional [bool ] = field (
83115 metadata = {'dbus_name' : 'multicast-query-use-ifaddr' , 'dbus_type' : 'b' },
84116 default = False ,
85117 )
118+ """If enabled the bridge's own IP address is used as the source address for
119+ IGMP queries otherwise the default of 0.0.0.0 is used."""
86120 multicast_router : Optional [str ] = field (
87121 metadata = {'dbus_name' : 'multicast-router' , 'dbus_type' : 's' },
88122 default = None ,
89123 )
124+ """Sets bridge's multicast router. Multicast-snooping must be enabled for this
125+ option to work. Supported values are: 'auto', 'disabled', 'enabled' to which
126+ kernel assigns the numbers 1, 0, and 2, respectively. If not specified the
127+ default value is 'auto' (1)."""
90128 multicast_snooping : Optional [bool ] = field (
91129 metadata = {'dbus_name' : 'multicast-snooping' , 'dbus_type' : 'b' },
92130 default = True ,
93131 )
132+ """Controls whether IGMP snooping is enabled for this bridge. Note that if
133+ snooping was automatically disabled due to hash collisions, the system may
134+ refuse to enable the feature until the collisions are resolved."""
94135 multicast_startup_query_count : Optional [int ] = field (
95136 metadata = {'dbus_name' : 'multicast-startup-query-count' ,
96137 'dbus_type' : 'u' },
@@ -101,18 +142,27 @@ class BridgeSettings(NetworkManagerSettingsMixin):
101142 'dbus_type' : 't' },
102143 default = 3125 ,
103144 )
145+ """Sets the time (in deciseconds) between queries sent out at startup to
146+ determine membership information."""
104147 priority : Optional [int ] = field (
105148 metadata = {'dbus_name' : 'priority' , 'dbus_type' : 'u' },
106149 default = 32768 ,
107150 )
151+ """Sets the Spanning Tree Protocol (STP) priority for this bridge. Lower
152+ values are "better"; the lowest priority bridge will be elected the root
153+ bridge."""
108154 stp : Optional [bool ] = field (
109155 metadata = {'dbus_name' : 'stp' , 'dbus_type' : 'b' },
110156 default = True ,
111157 )
158+ """Controls whether Spanning Tree Protocol (STP) is enabled for this
159+ bridge."""
112160 vlan_default_pvid : Optional [int ] = field (
113161 metadata = {'dbus_name' : 'vlan-default-pvid' , 'dbus_type' : 'u' },
114162 default = 1 ,
115163 )
164+ """The default PVID for the ports of the bridge, that is the VLAN id assigned
165+ to incoming untagged frames."""
116166 vlan_filtering : Optional [bool ] = field (
117167 metadata = {'dbus_name' : 'vlan-filtering' , 'dbus_type' : 'b' },
118168 default = False ,
@@ -121,6 +171,8 @@ class BridgeSettings(NetworkManagerSettingsMixin):
121171 metadata = {'dbus_name' : 'vlan-protocol' , 'dbus_type' : 's' },
122172 default = None ,
123173 )
174+ """If specified, the protocol used for VLAN filtering. Supported values are:
175+ '802.1Q', '802.1ad'. If not specified the default value is '802.1Q'."""
124176 vlan_stats_enabled : Optional [bool ] = field (
125177 metadata = {'dbus_name' : 'vlan-stats-enabled' , 'dbus_type' : 'b' },
126178 default = False ,
0 commit comments