diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-29 20:15:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 20:15:22 +0200 |
commit | 0c13a4fa454926f9891450b12ffc34ef7c54d523 (patch) | |
tree | 52b0edd946c39b9d86a5f76b259dbd864ba31914 /src/migration-scripts/isis/0-to-1 | |
parent | 63fe6b566ad38041aedc80ebc318af01566754a1 (diff) | |
parent | 73557d68b1cb54714fc0c3652a9ab29559da00ee (diff) | |
download | vyos-1x-0c13a4fa454926f9891450b12ffc34ef7c54d523.tar.gz vyos-1x-0c13a4fa454926f9891450b12ffc34ef7c54d523.zip |
Merge pull request #793 from c-po/bgp-cli
bgp: T1711: remove ASN tagNode and move to "local-as"
Diffstat (limited to 'src/migration-scripts/isis/0-to-1')
-rwxr-xr-x | src/migration-scripts/isis/0-to-1 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/migration-scripts/isis/0-to-1 b/src/migration-scripts/isis/0-to-1 index 6773f4009..93cbbbed5 100755 --- a/src/migration-scripts/isis/0-to-1 +++ b/src/migration-scripts/isis/0-to-1 @@ -47,12 +47,13 @@ config.copy(isis_base, tmp_base) # Now it's save to delete the old configuration config.delete(base) -# Rename temporary copy to new final config and set domain key +# Rename temporary copy to new final config (IS-IS domain key is static and no +# longer required to be set via CLI) config.rename(tmp_base, 'isis') try: with open(file_name, 'w') as f: f.write(config.to_string()) except OSError as e: - print("Failed to save the modified config: {}".format(e)) - sys.exit(1) + print(f'Failed to save the modified config: {e}') + exit(1) |