From 0787bd4f36e368ae2718572d4f0ce87d400616ba Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Tue, 26 Apr 2016 14:07:18 -0700 Subject: [PATCH] Remove unused cisco-deploy-startup-config.py template --- data/templates/cisco-deploy-startup-config.py | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 data/templates/cisco-deploy-startup-config.py diff --git a/data/templates/cisco-deploy-startup-config.py b/data/templates/cisco-deploy-startup-config.py deleted file mode 100644 index ea98b3248..000000000 --- a/data/templates/cisco-deploy-startup-config.py +++ /dev/null @@ -1,25 +0,0 @@ -def main(): - import os - - # Python module names vary depending on nxos version - try: - from cli import cli - except: - from cisco import cli - - tmp_config_path = "volatile:poap.cfg" - tmp_config_path_unix = "/volatile/poap.cfg" - - try: - os.remove(tmp_config_path_unix) - except: - pass - - cli("copy <%=startupConfigUri%> %s vrf management" % tmp_config_path) - cli("copy %s running-config" % tmp_config_path) - cli("copy running-config startup-config") - # copying to scheduled-config is necessary for POAP to exit on the next - # reboot and apply the configuration. We want to merge the running-config - # so we can work well with any other scripts that may also be applying - # their changes to scheduled-config - cli("copy running-config scheduled-config")