Skip to content

Commit 51a5970

Browse files
committed
fixed your bug
1 parent 6e17978 commit 51a5970

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build/topo-builder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,11 @@ def main(args):
444444
# Add in code to perform check in configs directory and create a basis for ceos-config
445445
create_output.append("# Checking for configs directory for each cEOS node\n")
446446
create_output.append(f'if ! [ -d "{CONFIGS}/{_tag}/{_node}" ]; then mkdir {CONFIGS}/{_tag}/{_node}; fi\n')
447+
create_output.append(f'if ! [ -f "{CONFIGS}/{_tag}/{_node}/ceos-config" ]; then ')
447448
create_output.append("# Creating the ceos-config file.\n")
448449
create_output.append(f'echo "SERIALNUMBER={CEOS[_node].ceos_name}" > {CONFIGS}/{_tag}/{_node}/ceos-config\n')
449450
create_output.append(f'echo "SYSTEMMACADDR={CEOS[_node].system_mac}" >> {CONFIGS}/{_tag}/{_node}/ceos-config\n')
451+
create_output.append('fi\n')
450452
if _tfa_version > 1:
451453
create_output.append('echo "TFA_VERSION={0}" >> {1}/{2}/{3}/ceos-config\n'.format(_tfa_version, CONFIGS, _tag, _node))
452454
# Perform check to see if a bare startup-config needs to be created

0 commit comments

Comments
 (0)