From 54e365dfe0f2a37cca9a13f9371e8a56d53e3dfb Mon Sep 17 00:00:00 2001 From: Zach Gauci Date: Mon, 10 Jun 2024 15:18:27 -0400 Subject: [PATCH] Fix allowed settings for Link/Network --- systemdlint/systemdlint/conf/knownSettings.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/systemdlint/systemdlint/conf/knownSettings.py b/systemdlint/systemdlint/conf/knownSettings.py index 2ac970af..7fc3820d 100644 --- a/systemdlint/systemdlint/conf/knownSettings.py +++ b/systemdlint/systemdlint/conf/knownSettings.py @@ -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"), @@ -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"),