Skip to content

Commit

Permalink
Fix allowed settings for Link/Network
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Gauci authored and priv-kweihmann committed Jun 11, 2024
1 parent d97409c commit 54e365d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions systemdlint/systemdlint/conf/knownSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,22 +448,26 @@
Setting(section="Link", name="AlternativeNamesPolicy", allowedValue=EnumValue(["database", "onboard", "slot", "path", "mac"]), sinceRel="2.45"),
Setting(section="Link", name="ARP", allowedValue=BooleanValue()),
Setting(section="Link", name="AutoNegotiationFlowControl", allowedValue=BooleanValue(), sinceRel="2.46"),
Setting(section="Link", name="Description", allowedValue=TextValue(), sinceRel="2.11"),
Setting(section="Link", name="GenericSegmentOffloadMaxBytes", allowedValue=NumericValue(base=1024, lower=1, upper=65536, suffixes=["K", "M", "G"]), sinceRel="2.48"),
Setting(section="Link", name="GenericSegmentOffloadMaxSegments", allowedValue=NumericValue(lower=1, upper=65535, suffixes=["K", "M", "G"]), sinceRel="2.48"),
Setting(section="Link", name="Group", allowedValue=NumericValue(lower=0, upper=4294967294), sinceRel="2.46"),
Setting(section="Link", name="MACAddress", allowedValue=ListOf(MacAddressValue())),
Setting(section="Link", name="MACAddressPolicy", allowedValue=TextValue()), # TODO: parser
Setting(section="Link", name="MTUBytes", allowedValue=NumericValue(suffixes=["K", "M", "G"], base=1024)),
Setting(section="Link", name="MTUBytes", allowedValue=NumericValue(suffixes=["K", "M", "G"])),
Setting(section="Link", name="Multicast", allowedValue=BooleanValue()),
Setting(section="Link", name="Name", allowedValue=TextValue(), sinceRel="2.11"),
Setting(section="Link", name="OriginalName", allowedValue=ListOf(TextValue()), sinceRel="2.43"),
Setting(section="Link", name="ReceiveQueues", allowedValue=NumericValue(lower=1, upper=4096), sinceRel="2.48"),
Setting(section="Link", name="RequiredFamilyForOnline", allowedValue=EnumValue(["ipv4", "ipv6", "both", "any"]), sinceRel="2.49"),
Setting(section="Link", name="RequiredForOnline", allowedValue=BooleanValue()),
Setting(section="Link", name="RxBufferSize", allowedValue=NumericValue(lower=0), sinceRel="2.44"),
Setting(section="Link", name="RxBufferSize", allowedValue=NumericValue(lower=1, upper=4294967295, specials=["max"]), sinceRel="2.44"),
Setting(section="Link", name="RxJumboBufferSize", allowedValue=NumericValue(lower=1, upper=4294967295, specials=["max"]), sinceRel="2.44"),
Setting(section="Link", name="RxMiniBufferSize", allowedValue=NumericValue(lower=1, upper=4294967295, specials=["max"]), sinceRel="2.44"),
Setting(section="Link", name="RxFlowControl", allowedValue=BooleanValue(), sinceRel="2.46"),
Setting(section="Link", name="TransmitQueueLength", allowedValue=NumericValue(lower=0, upper=4294967294), sinceRel="2.48"),
Setting(section="Link", name="TransmitQueues", allowedValue=NumericValue(lower=1, upper=4096), sinceRel="2.48"),
Setting(section="Link", name="TxBufferSize", allowedValue=NumericValue(lower=0), sinceRel="2.44"),
Setting(section="Link", name="TxBufferSize", allowedValue=NumericValue(lower=1, upper=4294967295, specials=["max"]), sinceRel="2.44"),
Setting(section="Link", name="TxFlowControl", allowedValue=BooleanValue(), sinceRel="2.46"),
Setting(section="Link", name="Unmanaged", allowedValue=BooleanValue()),
Setting(section="Link", name="WakeOnLan", allowedValue=ListOf(EnumValue(["off", "phy", "unicast", "multicast", "broadcast", "arp", "magic", "secureon"])), sinceRel="2.49"),
Expand Down Expand Up @@ -787,6 +791,7 @@
Setting(section="Network", name="Bridge", allowedValue=TextValue()),
Setting(section="Network", name="ConfigureWithoutCarrier", allowedValue=BooleanValue()),
Setting(section="Network", name="DefaultRouteOnDevice", allowedValue=BooleanValue(), sinceRel="2.43"),
Setting(section="Network", name="Description", allowedValue=TextValue(), sinceRel="2.11"),
Setting(section="Network", name="DHCP", allowedValue=EnumValue(["yes", "no", "ipv4", "ipv6"])),
Setting(section="Network", name="DHCPServer", allowedValue=BooleanValue()),
Setting(section="Network", name="DHCPv6PrefixDelegation", allowedValue=BooleanValue(), sinceRel="2.47"),
Expand Down

0 comments on commit 54e365d

Please sign in to comment.