Skip to content

Commit 90754db

Browse files
author
Bernhard Kaindl
committed
sdbus_async/networkmanager/settings: Add generated attr docstrings
1 parent ad53e9b commit 90754db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1583
-0
lines changed

sdbus_async/networkmanager/settings/bluetooth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ class BluetoothSettings(NetworkManagerSettingsMixin):
1919
metadata={'dbus_name': 'type', 'dbus_type': 's'},
2020
default=None,
2121
)
22+
"""Either "dun" for Dial-Up Networking connections or "panu" for Personal Area
23+
Networking connections to devices supporting the NAP profile."""

sdbus_async/networkmanager/settings/bond.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ class BondSettings(NetworkManagerSettingsMixin):
1515
metadata={'dbus_name': 'interface-name', 'dbus_type': 's'},
1616
default=None,
1717
)
18+
"""Deprecated in favor of connection.interface-name, but can be used for
19+
backward-compatibility with older daemons, to set the bond's interface
20+
name."""
1821
options: Optional[Dict[str, str]] = field(
1922
metadata={'dbus_name': 'options', 'dbus_type': 'a{ss}'},
2023
default={'Mode': 'Balance-Rr'},
2124
)
25+
"""Dictionary of key/value pairs of bonding options. Both keys and values
26+
must be strings. Option names must contain only alphanumeric characters (ie,
27+
[a-zA-Z0-9])."""

sdbus_async/networkmanager/settings/bond_port.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ class BondPortSettings(NetworkManagerSettingsMixin):
1515
metadata={'dbus_name': 'queue-id', 'dbus_type': 'u'},
1616
default=None,
1717
)
18+
"""The queue ID of this bond port. The maximum value of queue ID is the number
19+
of TX queues currently active in device."""

sdbus_async/networkmanager/settings/bridge.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

sdbus_async/networkmanager/settings/bridge_port.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ class BridgePortSettings(NetworkManagerSettingsMixin):
1616
metadata={'dbus_name': 'hairpin-mode', 'dbus_type': 'b'},
1717
default=False,
1818
)
19+
"""Enables or disables "hairpin mode" for the port, which allows frames to be
20+
sent back out through the port the frame was received on."""
1921
path_cost: Optional[int] = field(
2022
metadata={'dbus_name': 'path-cost', 'dbus_type': 'u'},
2123
default=100,
2224
)
25+
"""The Spanning Tree Protocol (STP) port cost for destinations via this
26+
port."""
2327
priority: Optional[int] = field(
2428
metadata={'dbus_name': 'priority', 'dbus_type': 'u'},
2529
default=32,

sdbus_async/networkmanager/settings/cdma.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,22 @@ class CdmaSettings(NetworkManagerSettingsMixin):
1515
metadata={'dbus_name': 'mtu', 'dbus_type': 'u'},
1616
default=None,
1717
)
18+
"""If non-zero, only transmit packets of the specified size or smaller,
19+
breaking larger packets up into multiple frames."""
1820
number: Optional[str] = field(
1921
metadata={'dbus_name': 'number', 'dbus_type': 's'},
2022
default=None,
2123
)
24+
"""The number to dial to establish the connection to the CDMA-based mobile
25+
broadband network, if any. If not specified, the default number (#777) is
26+
used when required."""
2227
password: Optional[str] = field(
2328
metadata={'dbus_name': 'password', 'dbus_type': 's'},
2429
default=None,
2530
)
31+
"""The password used to authenticate with the network, if required. Many
32+
providers do not require a password, or accept any password. But if a
33+
password is required, it is specified here."""
2634
password_flags: Optional[int] = field(
2735
metadata={'dbus_name': 'password-flags', 'dbus_type': 'i'},
2836
default=None,
@@ -31,3 +39,6 @@ class CdmaSettings(NetworkManagerSettingsMixin):
3139
metadata={'dbus_name': 'username', 'dbus_type': 's'},
3240
default=None,
3341
)
42+
"""The username used to authenticate with the network, if required. Many
43+
providers do not require a username, or accept any username. But if a
44+
username is required, it is specified here."""

0 commit comments

Comments
 (0)