Skip to content

Commit

Permalink
Patched where the TFA_Version gets written in ceos-config (#12)
Browse files Browse the repository at this point in the history
Now only gets written if ceos-config does not exist
  • Loading branch information
networkRob authored Aug 22, 2023
1 parent 383c22b commit 1cc3f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/topo-builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,9 @@ def main(args):
create_output.append("# Creating the ceos-config file.\n")
create_output.append(f'echo "SERIALNUMBER={CEOS[_node].ceos_name}" > {CONFIGS}/{_tag}/{_node}/ceos-config\n')
create_output.append(f'echo "SYSTEMMACADDR={CEOS[_node].system_mac}" >> {CONFIGS}/{_tag}/{_node}/ceos-config\n')
create_output.append('fi\n')
if _tfa_version > 1:
create_output.append('echo "TFA_VERSION={0}" >> {1}/{2}/{3}/ceos-config\n'.format(_tfa_version, CONFIGS, _tag, _node))
create_output.append('fi\n')
# Perform check to see if a bare startup-config needs to be created
if create_startup:
create_output.append(f"# Creating a bare startup configuration for {_node}\n")
Expand Down

0 comments on commit 1cc3f68

Please sign in to comment.