bugfix for handling match=strict in iosxr_config
Resolves an issue where match=strict would act like match=exact when evaluating the configuration
This commit is contained in:
parent
a7f67921fd
commit
e9ab4d688d
1 changed files with 5 additions and 8 deletions
|
@ -153,9 +153,6 @@ def build_candidate(lines, parents, config, strategy):
|
|||
candidate = list()
|
||||
|
||||
if strategy == 'strict':
|
||||
if len(lines) != len(config):
|
||||
candidate = list(lines)
|
||||
else:
|
||||
for index, cmd in enumerate(lines):
|
||||
try:
|
||||
if cmd != config[index]:
|
||||
|
|
Loading…
Reference in a new issue