parent
0b2619ff2b
commit
772dab55c6
|
@ -385,10 +385,12 @@ def check_declarative_intent_params(module, want, result):
|
||||||
if item.startswith('Port Description:'):
|
if item.startswith('Port Description:'):
|
||||||
have_port.append(item.split(':')[1].strip())
|
have_port.append(item.split(':')[1].strip())
|
||||||
for item in want_neighbors:
|
for item in want_neighbors:
|
||||||
if item['host'] not in have_host:
|
host = item.get('host')
|
||||||
failed_conditions.append('host ' + item['host'])
|
port = item.get('port')
|
||||||
if item['port'] not in have_port:
|
if host and host not in have_host:
|
||||||
failed_conditions.append('port ' + item['port'])
|
failed_conditions.append('host ' + host)
|
||||||
|
if port and port not in have_port:
|
||||||
|
failed_conditions.append('port ' + port)
|
||||||
return failed_conditions
|
return failed_conditions
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue