mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-18 00:46:05 +00:00
Do not require profiles to be specified for 'up'
This allows to up profiles that are only available on disk.
This commit is contained in:
parent
382c34197b
commit
d76ac65581
1 changed files with 0 additions and 11 deletions
|
|
@ -981,17 +981,6 @@ class ArgValidator_ListConnections(ArgValidatorList):
|
|||
|
||||
def _validate_post(self, value, name, result):
|
||||
for idx, connection in enumerate(result):
|
||||
if connection["state"] in ["up"]:
|
||||
if connection["state"] == "up" and "type" in connection:
|
||||
pass
|
||||
elif not ArgUtil.connection_find_by_name(
|
||||
connection["name"], result, idx
|
||||
):
|
||||
raise ValidationError(
|
||||
name + "[" + str(idx) + "].name",
|
||||
"state '%s' references non-existing connection '%s'"
|
||||
% (connection["state"], connection["name"]),
|
||||
)
|
||||
if "type" in connection:
|
||||
if connection["master"]:
|
||||
c = ArgUtil.connection_find_by_name(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue