From d76ac65581d90e9bd2c1c1e100360641248cdccf Mon Sep 17 00:00:00 2001 From: Till Maas Date: Tue, 31 Jul 2018 16:43:56 +0200 Subject: [PATCH] Do not require profiles to be specified for 'up' This allows to up profiles that are only available on disk. --- module_utils/network_lsr/argument_validator.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/module_utils/network_lsr/argument_validator.py b/module_utils/network_lsr/argument_validator.py index a1dffc5..9bccb81 100644 --- a/module_utils/network_lsr/argument_validator.py +++ b/module_utils/network_lsr/argument_validator.py @@ -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(