Esempio n. 1
0
 def set_run_normal(self):
     """Selects normal run mode which makes meraki api calls"""
     os.chdir("{}/automation".format(self.cwd))
     set_cli_selections("dry-run", False)
     print("\n\n# selected run-normal #")
     os.chdir("{}".format(self.cwd))
     EOM()
Esempio n. 2
0
 def set_s2svpnrules_version(self, version):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_s2svpnrules_version(version) is False:
         return
     print("\n\n# selected s2svpnrules-version: #\n{}".format(version))
     set_cli_selections("s2svpnrules-version", version)
     EOM()
Esempio n. 3
0
 def set_l3fwrules_store_list(self, store_list):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_store_list(store_list) is False:
         return
     print("\n\n# selected l3fwrules-store-list: #\n{}".format(store_list))
     set_cli_selections("l3fwrules-store-list", store_list)
     EOM()
Esempio n. 4
0
 def set_s2svpnrules_org(self, org_name):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_org_list(org_name) is False:
         return
     print("\n\n# selected s2svpnrules-org: #\n{}".format(org_name))
     set_cli_selections("s2svpnrules-org", org_name)
     EOM()
Esempio n. 5
0
 def set_store_lists_org(self, org_name):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_org_list(org_name) is False:
         return
     print("\n\n# Selected store-lists-org #\n{}".format(org_name))
     set_cli_selections("store-lists-org", org_name)
     EOM()
Esempio n. 6
0
 def set_networks_clone_source(self, clone_source):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_clone_source(clone_source) is False:
         return
     print("\n\n# Selected networks-clone-source #\n{}".format(clone_source))
     set_cli_selections("networks-clone-source", clone_source)
     EOM()
Esempio n. 7
0
 def set_networks_serials(self, serials):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_serials(serials) is False:
         return
     print("\n\n# Selected networks-serials #\n{}".format(serials))
     set_cli_selections("networks-serials", serials)
     EOM()
Esempio n. 8
0
 def set_vlans_delete_list(self, vlans_delete_list):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_vlans_delete_list(vlans_delete_list) is False:
         return
     print("\n\n# Selected vlans-delete-list #\n{}".format(vlans_delete_list))
     set_cli_selections("vlans-delete-list", vlans_delete_list)
     EOM()
Esempio n. 9
0
 def set_vlans_delete_org(self, org_name):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_org_list(org_name) is False:
         return
     print("\n\n# Selected vlans-delete-org #\n{}".format(org_name))
     set_cli_selections("vlans-delete-org", org_name)
     EOM()
Esempio n. 10
0
 def set_networks_store_list(self, store_list):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_store_list(store_list) is False:
         return
     print("\n\n# Selected networks/sites-store-list #\n{}".format(store_list))
     set_cli_selections("networks-store-list", store_list)
     set_cli_selections("sites-store-list", store_list)
     EOM()
Esempio n. 11
0
 def set_networks_org(self, org_name):
     os.chdir("{}/automation".format(self.cwd))
     if self.validate_org_list(org_name) is False:
         return
     print("\n\n# Selected networks/sites-org #\n{}".format(org_name))
     set_cli_selections("networks-org", org_name)
     set_cli_selections("sites-org", org_name)
     EOM()
Esempio n. 12
0
 def set_run_dry(self):
     """This is the default and selects dry-run mode which bypaasses meraki api calls ,
     It is useful to verify valid org name, store id and that the scripts are running
     okay. This will generate all the logs also on ./data/<fname>.log"""
     os.chdir("{}/automation".format(self.cwd))
     set_cli_selections("dry-run", True)
     print("\n\n# selected run-dry #")
     os.chdir("{}".format(self.cwd))
     EOM()