mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-19 09:24:41 +00:00
Allow to take down connections if not in config
Allow to take down connections regardless of whether they are defined in the configuration. It should be enough that the connection is defined on the system.
This commit is contained in:
parent
d370966ee2
commit
756be9a8de
1 changed files with 1 additions and 1 deletions
|
|
@ -1120,7 +1120,7 @@ class ArgValidator_ListConnections(ArgValidatorList):
|
|||
|
||||
def _validate_post(self, value, name, result):
|
||||
for idx, connection in enumerate(result):
|
||||
if connection['state'] in ['down', 'up']:
|
||||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue