fortigate_vm_account_password = '******' fortigate_vm_account_profile = 'ac_pf' fortigate_vm_dns_primary = 'dns_pr' fortigate_vm_dns_secondary = 'dns_sc' fortigate_vm_ntp_sync_action = 'ntp_sync_act' fortigate_vm_ntp_sync_interval = 'ntp_sync_int' fortigate_vm_ntp_server_ip_address = 'ntp_sv_ip' fortigate_vm_firewall_router_default_gateway_action = 'fw_rt_df_gw_act' fortigate_vm_firewall_router_default_gateway_address = 'fw_rt_df_gw_addr' fortigate_vm_firewall_router_static_network_address = 'fw_rt_st_nw_addr' fortigate_vm_firewall_router_static_network_mask = 'fw_rt_st_nw_mask' fortigate_vm_firewall_router_static_device = 'fw_rt_st_dev' try: client = fortigatevmordercmdws.FortigateVmOrderCommandWs( config.JobConfig()) # create_fortigate_vm_system_common print('create_fortigate_vm_system_common') output = client.create_fortigate_vm_system_common( device_id, host_name, fortigate_vm_system_common_language, fortigate_vm_system_common_timezone) print(type(output)) print(output) print() # create_fortigate_vm_interface print('create_fortigate_vm_interface') output = client.create_fortigate_vm_interface( device_id, port, fortigate_vm_interface_ip_address, fortigate_vm_interface_netmask,
bigip_ve_system_snmp_trap_server_address = 'snmp_trap_sv_addr' community_name = 'comu001' ip_address = '192.168.0.1' bigip_ve_snmp_server_end_number = 'snmp_sv_end' bigip_ve_system_ntp_timezone = 'Asia/Tokyo' route_name = 'rt001' bigip_ve_network_routes_default_gateway_action = 'rt_df_gw_act' bigip_ve_network_routes_gateway_address = 'rt_gw_addr' bigip_ve_network_routes_network_address = 'rt_nw_addr' bigip_ve_network_routes_netmask = 'rt_df_nw_mask' route_no = 'rtnmm001' user_name = 'usr001' bigip_ve_system_user_password = '******' try: client = bigipveordercmdws.BigIpVeOrderCommandWs(config.JobConfig()) # create_big_ip_ve_system_common print('create_big_ip_ve_system_common') output = client.create_big_ip_ve_system_common( device_id, host_name, bigip_ve_system_common_domain) print(type(output)) print(output) print() # delete_big_ip_ve_system_common print('delete_big_ip_ve_system_common') output = client.delete_big_ip_ve_system_common(device_id, host_name) print(type(output)) print(output) print()
import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../../../../../../job/') from conf import config from lib.script import licenseauth client = licenseauth.LicenseAuthClient(config.JobConfig()) # A10_vThunder_authentication params = ['A', 'B'] output = client.a10_vthunder_authentication(params) print('A10_vThunder_authentication') print(type(output)) print(output) print() # Paloalto_authentication params = ['A', 'B'] output = client.paloalto_authentication(params) print('Paloalto_authentication') print(type(output)) print(output) print(type(True))
member_delete = 'member_del' vthunder_system_common_timezone = 'Asia/Tokyo' vthunder_network_vlan_untagged_interface_number = 'nw_vlan_untag_if_num' vthunder_network_virtual_interface_ip_address = 'nw_vr_if_ip' vthunder_network_virtual_interface_netmask = 'nw_vr_if_mask' vthunder_network_vlan_description = 'nw_vlan_descript' vthunder_system_dns_primary_ip_address = 'sys_dns_pr_ip' vthunder_system_dns_secondary_ip_address = 'sys_dns_sc_ip' vthunder_system_syslog_ip_address = 'sys_syslog_ip' vthunder_network_routes_network_address = 'nw_rt_nw_addr' vthunder_network_routes_netmask = 'nw_rt_mask' vthunder_network_routes_gateway_address = 'nw_rt_gw_addr' vthunder_system_user_password = '******' try: client = vthunderordercmdws.VthunderOrderCommandWs(config.JobConfig()) # create_vthunder_system_common print('create_vthunder_system_common') output = client.create_vthunder_system_common( device_id, object_id, vthunder_system_common_timezone) print(type(output)) print(output) print() # update_vthunder_system_common print('update_vthunder_system_common') output = client.update_vthunder_system_common( device_id, object_id, vthunder_system_common_timezone) print(type(output)) print(output)
sys.path.append( os.path.dirname(os.path.abspath(__file__)) + '/../../../../../../job/') from conf import config from lib.soap.msa import fortigateordercmdws device_id = 'dev001' object_id = 'obj001' vdom_name = 'vdom_nm001' vlan_id = 'vlan001' ip_address = '10.0.0.1' netmask = 'mask001' port_no = 'port010' management_flg = '1' try: client = fortigateordercmdws.FortigateOrderCommandWs(config.JobConfig()) # create_fortigate_vdom print('create_fortigate_vdom') output = client.create_fortigate_vdom(device_id, object_id) print(type(output)) print(output) print() # delete_fortigate_vdom print('delete_fortigate_vdom') output = client.delete_fortigate_vdom(device_id, object_id) print(type(output)) print(output) print()
import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../../../../../../job/') from conf import config from lib.script import zerotouch client = zerotouch.ZeroTouchClient(config.JobConfig()) # A10_vThunder_provisioning params = ['A', 'B'] output = client.a10_vthunder_provisioning(params) print('A10_vThunder_provisioning') print(type(output)) print(output) print() # BIGIP_provisioning params = ['A', 'B'] output = client.bigip_provisioning(params) print('BIGIP_provisioning') print(type(output)) print(output) print() # fortiVM_provisioning params = ['A', 'B']
import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../../../../../../job/') from conf import config from lib.script import vxlangw client = vxlangw.VxlanGwClient(config.JobConfig()) # createVxlanGw params = ['A"C', 'B'] output = client.create_vxlan_gw(params, ['A"C']) print('createVxlanGw') print(type(output)) print(output) print() # deleteVxlanGw params = ['C', 'D'] output = client.delete_vxlan_gw(params) print('deleteVxlanGw') print(type(output)) print(output)
tenant_id = '9ba7d56906cc4d0cbe055e06971b12a7' sv_name = 'sv_ksp' nw_name = 'nw_ksp' subnet_name = 'subnet_ksp' port_name = 'port_ksp' cidr = '0.0.0.0/27' imageRef = '55f7012b-4c5b-4fb8-90c7-2e1e1205e128' flavorRef = '2' network_list = [{ 'uuid': '6141844163e191152455519bc83d2bda', 'port': 'b411cd48241a5d2bc11b02cac16e2f91', }] config = config.JobConfig() log = logger.LibLogger(config) try: OscTokens = tokens.OscTokens(config) Networks = networks.OscQuantumNetworks(config) Ports = ports.OscQuantumPorts(config) Servers = servers.OscServers(config) Subnets = subnets.OscQuantumSubnets(config) # create_token print('create_token') token = OscTokens.create_token(admin_user_name, admin_password, endpoint) print(type(token)) print(token) print()
import os import sys import traceback sys.path.append( os.path.dirname(os.path.abspath(__file__)) + '/../../../../../../job/') from conf import config from lib.soap.msa import userws customer_name = 'cm_nma001' customer_id = 'cm001' try: client = userws.UserWs(config.JobConfig()) # create_customer print('create_customer') output = client.create_customer(customer_name) print(type(output)) print(output) print() # delete_customer_by_id print('delete_customer_by_id') msa_params = {} output = client.delete_customer_by_id(customer_id) print(type(output)) print(output) except: print('NG')
os.path.dirname(os.path.abspath(__file__)) + '/../../../../../../job/') from conf import config from lib.soap.msa import devicews customer_id = 'c001' device_name = 'dev001' login_user = '******' password = '******' admin_password = '******' manufacture_id = 'm001' model_id = 'model001' ip_address = '10.0.0.1' device_id = 'dev001' try: client = devicews.DeviceWs(config.JobConfig()) # create_managed_device print('create_managed_device') output = client.create_managed_device(customer_id, device_name, login_user, password, admin_password, manufacture_id, model_id, ip_address) print(type(output)) print(output) print() # delete_device_by_id print('delete_device_by_id') output = client.delete_device_by_id(device_id) print(type(output)) print(output)
paloalto_vm_network_interface_ip_address = 'nw_if_ip' paloalto_vm_network_interface_netmask = 'nw_if_mask' paloalto_vm_system_dns_primary = 'sys_dns_pr' paloalto_vm_system_dns_secondary = 'sys_dns_sc' paloalto_vm_logsetting_snmp_profile = 'log_snm_prof' paloalto_vm_logsetting_syslog_profile = 'log_sys_prof' paloalto_vm_system_primary_ntp_server = 'sys_pr_ntp_sv' paloalto_vm_system_secondary_ntp_server = 'sys_sc_ntp_sv' paloalto_vm_network_staticroute_destination_address = 'nw_strt_dest_addr' paloalto_vm_network_staticroute_destination_netmask = 'nw_strt_dest_mask' paloalto_vm_network_staticroute_nexthop_address = 'nw_strt_nx_addr' paloalto_vm_network_staticroute_source_interface = 'nw_strt_src_if' paloalto_vm_system_user_password = '******' try: client = paloaltovmordercmdws.PaloaltoVmOrderCommandWs(config.JobConfig()) # create_paloalto_vm_system_common print('create_paloalto_vm_system_common') output = client.create_paloalto_vm_system_common( device_id, object_id, paloalto_vm_system_timezone) print(type(output)) print(output) print() # delete_paloalto_vm_system_common print('delete_paloalto_vm_system_common') output = client.delete_paloalto_vm_system_common( device_id, object_id, paloalto_vm_system_timezone) print(type(output)) print(output)
import os import sys import traceback sys.path.append( os.path.dirname(os.path.abspath(__file__)) + '/../../../../../../job/') from conf import config from lib.soap.msa import deviceconfigws device_id = 'dev001' object_file = 'obj_file' try: client = deviceconfigws.DeviceConfigurationWs(config.JobConfig()) # attach_files_to_device print('attach_files_to_device') output = client.attach_files_to_device(device_id, object_file) print(type(output)) print(output) print() # detach_files_from_device print('detach_files_from_device') output = client.detach_files_from_device(device_id, object_file) print(type(output)) print(output) except: print('NG') print(traceback.format_exc())
firefly_vm_lan_interface_segment = 'lan_if_seg' firefly_vm_vrrp_vip = 'vrrp_vip' firefly_vm_vrrp_priority = 'vrrp_pr' firefly_vm_vrrp_group_id = 'vrrp_g001' firefly_vm_vrrp_authkey = 'vrrp_auth' firefly_vm_bgp_peer_ip_address = 'bgp_p_ip' firefly_vm_interface_name = 'if_nm' firefly_vm_vrrp_track_segment = 'vrrp_tr_seg' firefly_vm_vrrp_track_netmask = 'vrrp_tr_mask' firefly_vm_vrrp_track_prioritycost = 'vrrp_tr_pr_cost' firefly_vm_static_destination_ip_address = 'st_dst_ip' firefly_vm_static_destination_netmask = 'st_dst_mask' firefly_vm_static_nexthop_address = 'st_dst_nxhp' try: client = fireflyvmordercmdws.FireflyVmOrderCommandWs(config.JobConfig()) # create_firefly_vm_system_common print('create_firefly_vm_system_common') output = client.create_firefly_vm_system_common( device_id, host_name, firefly_vm_system_common_timezone) print(type(output)) print(output) print() # delete_firefly_vm_system_common print('delete_firefly_vm_system_common') output = client.delete_firefly_vm_system_common( device_id, host_name, firefly_vm_system_common_timezone) print(type(output)) print(output)