The vmware_nsx.tests.unit.nsx_v.vshield.fake_vcns Module

class vmware_nsx.tests.unit.nsx_v.vshield.fake_vcns.FakeVcns(unique_router_name=True)

Bases: object

add_firewall_rule(edge_id, fwr_req)
add_firewall_rule_above(edge_id, ref_vcns_rule_id, fwr_req)
add_member_to_security_group(security_group_id, member_id)
add_vdr_internal_interface(edge_id, interface)
add_vm_to_exclude_list(vm_id)
allocate_ipam_ip_from_pool(pool_id, ip_addr=None)
approve_assigned_addresses(policy_id, vnic_id, mac_addr, addresses)
change_edge_appliance(edge_id, request)
change_edge_appliance_size(edge_id, size)
configure_aggregate_publishing()
configure_reservations()
create_app_profile(edge_id, app_profile)
create_app_rule(edge_id, app_rule)
create_bridge(edge_id, request)
create_dhcp_binding(edge_id, request)
create_health_monitor(edge_id, monitor_new)
create_ipam_ip_pool(request)
create_lswitch(lsconfig)
create_pool(edge_id, pool_new)
create_port_group(dvs_id, request)
create_redirect_section(request)
create_section(type, request, insert_top=False, insert_before=None)
create_security_group(request)
create_spoofguard_policy(enforcement_points, name, enable)
create_vip(edge_id, vip_new)
create_virtual_wire(vdn_scope_id, request)
delete_app_profile(edge_id, app_profileid)
delete_app_rule(edge_id, app_ruleid)
delete_bgp_routing_config(edge_id)
delete_bridge(edge_id)
delete_dhcp_binding(edge_id, binding_id)
delete_edge(edge_id)
delete_edge_syslog(edge_id)
delete_firewall(edge_id)
delete_firewall_rule(edge_id, vcns_rule_id)
delete_health_monitor(edge_id, monitor_vseid)
delete_interface(edge_id, vnic_index)
delete_ipam_ip_pool(pool_id)
delete_ipsec_config(edge_id)
delete_lswitch(id)
delete_nat_rule(edge_id, rule_id)
delete_pool(edge_id, pool_vseid)
delete_port_group(dvs_id, portgroup_id)
delete_section(section_uri)
delete_security_group(securitygroup_id)
delete_spoofguard_policy(policy_id)
delete_vdr_internal_interface(edge_id, interface_index)
delete_vip(edge_id, vip_vseid)
delete_virtual_wire(virtualwire_id)
delete_vm_from_exclude_list(vm_id)
deploy_edge(request)
do_request(method, uri, params=None, format='json', **kwargs)
edges_lock_operation()
enable_ha(edge_id, request_config)
enable_service_loadbalancer(edge_id, config)
errors = {303: <class 'vmware_nsx.plugins.nsx_v.vshield.common.exceptions.ResourceRedirect'>, 400: <class 'vmware_nsx.plugins.nsx_v.vshield.common.exceptions.RequestBad'>, 403: <class 'vmware_nsx.plugins.nsx_v.vshield.common.exceptions.Forbidden'>, 404: <class 'vmware_nsx.plugins.nsx_v.vshield.common.exceptions.ResourceNotFound'>, 503: <class 'vmware_nsx.plugins.nsx_v.vshield.common.exceptions.ServiceUnavailable'>, 415: <class 'vmware_nsx.plugins.nsx_v.vshield.common.exceptions.MediaTypeUnsupport'>}
get_application_id(name)
get_bgp_routing_config(edge_id)
get_default_l3_id()
get_dfw_config()
get_dhcp_binding(edge_id, binding_id)
get_dvs_list()
get_edge(edge_id)
get_edge_appliances(edge_id)
get_edge_deploy_status(edge_id)
get_edge_id(job_id)
get_edge_interfaces(edge_id)
get_edge_jobs(edge_id)
get_edge_routing_config(edge_id)
get_edge_status(edge_id)
get_edge_syslog(edge_id)
get_edges()
get_firewall(edge_id)
get_firewall_rule(edge_id, vcns_rule_id)
get_health_monitor(edge_id, monitor_vseid)
get_interfaces(edge_id)
get_ipam_ip_pool(pool_id)
get_ipsec_config(edge_id)
get_loadbalancer_config(edge_id)
get_loadbalancer_statistics(edge_id)
get_nat_config(edge_id)
get_pool(edge_id, pool_vseid)
get_routes(edge_id)
get_scoping_objects()
get_section(section_uri)
get_section_id(section_name)
get_security_group(sg_id)
get_security_group_id(sg_name)
get_security_policies()
get_security_policy(policy_id, return_xml=True)
get_service_insertion_profile(profile_id)
get_spoofguard_policies()
get_spoofguard_policy(policy_id)
get_tuning_configration()
get_vdn_switch(dvs_id)
get_vdr_internal_interface(edge_id, interface_index)
get_version()
get_vip(edge_id, vip_vseid)
inactivate_vnic_assigned_addresses(policy_id, vnic_id)
is_name_unique(objs_dict, name)
list_applications()
list_security_groups()
publish_assigned_addresses(policy_id, vnic_id)
query_dhcp_configuration(edge_id)
query_interface(edge_id, vnic_index)
reconfigure_dhcp_service(edge_id, request)
release_ipam_ip_to_pool(pool_id, ip_addr)
remove_member_from_security_group(security_group_id, member_id)
remove_rule_from_section(section_uri, rule_id)
reset_all()
return_helper(header, response)
set_fake_nsx_api(fake_nsx_api)
sync_firewall()
update_app_profile(edge_id, app_profileid, app_profile)
update_app_rule(edge_id, app_ruleid, app_rule)
update_bgp_dynamic_routing(edge_id, bgp_request)
update_dynamic_routing_service(edge_id, request_config)
update_edge(edge_id, request)
update_edge_config_with_modifier(edge_id, module, modifier)
update_edge_routing_config(edge_id, request)
update_edge_syslog(edge_id, config)
update_firewall(edge_id, fw_req)
update_firewall_rule(edge_id, vcns_rule_id, fwr_req)
update_health_monitor(edge_id, monitor_vseid, monitor_new)
update_interface(edge_id, vnic)
update_ipsec_config(edge_id, ipsec_config)
update_nat_config(edge_id, nat)
update_pool(edge_id, pool_vseid, pool_new)
update_routes(edge_id, routes)
update_section(section_uri, request, h)
update_section_by_id(id, type, request)
update_security_group(sg_id, sg_name, description)
update_security_policy(policy_id, request)
update_service_insertion_profile_binding(profile_id, request)
update_spoofguard_policy(policy_id, enforcement_points, name, enable)
update_vdn_switch(switch)
update_vdr_internal_interface(edge_id, interface_index, interface)
update_vip(edge_id, vip_vseid, vip_new)
validate_datacenter_moid(object_id, during_init=False)
validate_dvs(object_id, dvs_list=None)
validate_inventory(moref)
validate_network(object_id, during_init=False)
validate_network_name(object_id, name, during_init=False)
validate_vdn_scope(object_id)

This Page