def create_all_epg_domains(): aci = AciHandler(apic=excel.APIC, pword=excel.PWORD, user=excel.USER) aci.login(show_auth_status=True) if not aci.cookies: return table = excel.get_table('TABLE_EPG_DOMAIN') for row in table: epg = table[row] status_code = aci.tenant_policies.create_epg_domain(**epg) excel.update_row_status(row, status_code) excel.update_script_status(table_name='TABLE_EPG_DOMAIN', last_action=' Update end point group domain association')
def create_all_anps(): aci = AciHandler(apic=excel.APIC, pword=excel.PWORD, user=excel.USER) aci.login(show_auth_status=True) table = excel.get_table('TABLE_ANP') if not aci.cookies: return for row in table: anp = table[row] status_code = aci.tenant_policies.create_anp(**anp) excel.update_row_status(row, status_code) excel.update_script_status(table_name='TABLE_ANP', last_action=' Update application network profiles')
def create_all_subnets(): aci = AciHandler(apic=excel.APIC, pword=excel.PWORD, user=excel.USER) aci.login(show_auth_status=True) if not aci.cookies: return table = excel.get_table('TABLE_BD_SUBNET') for row in table: bd = table[row] status_code = aci.tenant_policies.create_subnet(**bd) excel.update_row_status(row, status_code) excel.update_script_status(table_name='TABLE_BD_SUBNET', last_action=' Update bridge domain subnet configuration')
def create_all_vrfs(): aci = AciHandler(apic=excel.APIC, pword=excel.PWORD, user=excel.USER) aci.login(show_auth_status=True) if not aci.cookies: return table = excel.get_table('TABLE_VRF') for row in table: vrf = table[row] status_code = aci.tenant_policies.create_vrf(**vrf) excel.update_row_status(row, status_code) excel.update_script_status(table_name='TABLE_VRF', last_action=' Update VRF configuration')