networkd: allow setting RouteMetric in Address section of a network config file
This commit is contained in:
parent
f3e8ebc58b
commit
fde313902f
1 changed files with 2 additions and 0 deletions
|
@ -584,6 +584,7 @@ let
|
|||
"Label"
|
||||
"PreferredLifetime"
|
||||
"Scope"
|
||||
"RouteMetric"
|
||||
"HomeAddress"
|
||||
"DuplicateAddressDetection"
|
||||
"ManageTemporaryAddress"
|
||||
|
@ -592,6 +593,7 @@ let
|
|||
])
|
||||
(assertHasField "Address")
|
||||
(assertValueOneOf "PreferredLifetime" ["forever" "infinity" "0" 0])
|
||||
(assertInt "RouteMetric")
|
||||
(assertValueOneOf "HomeAddress" boolValues)
|
||||
(assertValueOneOf "DuplicateAddressDetection" ["ipv4" "ipv6" "both" "none"])
|
||||
(assertValueOneOf "ManageTemporaryAddress" boolValues)
|
||||
|
|
Loading…
Reference in a new issue