Module ImportFrom alias identifier ImportFrom alias Assign NameStore Dict Str Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword Str If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str Str If BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad orelse If BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr CompareIn Str NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad orelse If CompareEq NameLoad Str body Return Call NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body If CompareIn Str NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr orelse Raise Call AttributeLoad NameLoad attr keyword Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse Return If BoolOpAnd CompareIn Str NameLoad CompareNotIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str orelse Return decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse Return If BoolOpAnd CompareIn Str NameLoad CompareNotIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If BinOpSub NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str If CompareNotEq SubscriptLoad NameLoad Index Str Str body Raise Call AttributeLoad NameLoad attr keyword Str orelse Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index NameLoad Dict Str Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr GeneratorExp BinOpMod NameLoad Dict Str NameLoad comprehension NameStore Call NameLoad Num BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr NameLoad decorator_list
N/A networking_cisco.plugins.ml2.drivers.cisco.n1kv exceptions c_exc networking_cisco.plugins.ml2.drivers.cisco.n1kv n1kv_client N/A _resource_metadata N/A network-segment port vmnetwork subnet N/A publishName description id tenantId mode segmentType networkSegmentPool vlan vxlan bridgeDomain N/A id macAddress ipAddress subnetId N/A name networkSegmentId networkSegment portProfile portProfileId tenantId portId macAddress portType ipAddress subnetId N/A addressRangeStart addressRangeEnd ipAddressSubnet description gateway dhcp dnsServersList networkAddress netSegmentName id tenantId TestClient N/A N/A n1kv_client Client N/A N/A Base class for test client __init__ N/A N/A self N/A kwargs N/A N/A N/A self broken False N/A N/A self inject_params False N/A N/A self total_profiles 2 N/A N/A self shared_net False N/A N/A self upd_shared_net False N/A N/A N/A N/A super TestClient self __init__ N/A _get_total_profiles N/A N/A self N/A N/A N/A Return total number of profiles N/A N/A self total_profiles N/A _do_request N/A N/A self method action body headers vsm_ip N/A None None None N/A N/A Handle outgoing requestes based on type N/A N/A self broken N/A N/A N/A N/A c_exc VSMError reason VSM:Internal Server Error N/A N/A N/A self inject_params body N/A N/A N/A body N/A invalidKey catchMeIfYouCan N/A N/A N/A method POST N/A self shared_net N/A N/A N/A _validate_shared_net_resource action body N/A N/A N/A N/A method POST N/A self upd_shared_net N/A /network-segment/ action N/A N/A ret N/A _validate_resource action body N/A N/A self shared_net True N/A ret N/A N/A N/A method POST N/A N/A N/A _validate_resource action body N/A N/A N/A method GET N/A N/A N/A virtual-port-profile action N/A N/A N/A _policy_profile_generator N/A N/A self _get_total_profiles N/A N/A N/A N/A c_exc VSMError reason VSM:Internal Server Error N/A N/A TestClientInvalidRequest N/A TestClient N/A N/A Test invalid request cases __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TestClientInvalidRequest self __init__ N/A N/A self inject_params True N/A N/A TestClientInvalidResponse N/A TestClient N/A N/A Test invalid response cases __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TestClientInvalidResponse self __init__ N/A N/A self broken True N/A N/A TestClientSharedNetwork N/A TestClient N/A N/A Test shared network cases __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TestClientSharedNetwork self __init__ N/A N/A self shared_net True N/A N/A TestClientUpdateSharedNetwork N/A TestClient N/A N/A Test cases where network is updated to be shared __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TestClientUpdateSharedNetwork self __init__ N/A N/A self upd_shared_net True N/A N/A TestClientVSMRetry N/A N/A n1kv_client Client N/A N/A Base class for test client __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TestClientVSMRetry self __init__ N/A N/A N/A self pool spawn N/A self _fake_pool_spawn N/A _fake_pool_spawn N/A N/A self N/A N/A N/A N/A N/A _validate_resource N/A N/A action body N/A None N/A N/A Validate expected keys are present in outgoing request N/A body N/A N/A body_set N/A set N/A N/A body keys N/A N/A N/A N/A N/A vm-network action N/A port action N/A N/A vmnetwork_set N/A set N/A _resource_metadata N/A vmnetwork N/A N/A body_set vmnetwork_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A /network-segment/ action N/A N/A network_set N/A set N/A _resource_metadata N/A network-segment N/A N/A body_set network_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A port action N/A N/A port_set N/A set N/A _resource_metadata N/A port N/A N/A body_set port_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A subnet action N/A N/A subnet_set N/A set N/A _resource_metadata N/A subnet N/A N/A body_set subnet_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A _validate_shared_net_resource N/A N/A action body N/A None N/A N/A Validate keys in outgoing shared network request N/A body N/A N/A body_set N/A set N/A N/A body keys N/A N/A N/A N/A N/A vm-network action N/A port action N/A N/A vmnetwork_set N/A set N/A _resource_metadata N/A vmnetwork N/A N/A body_set vmnetwork_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A port action N/A N/A port_set N/A set N/A _resource_metadata N/A port N/A N/A body_set port_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A subnet action N/A N/A subnet_set N/A set N/A _resource_metadata N/A subnet N/A N/A body_set subnet_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A /network-segment/ action N/A N/A network_set N/A set N/A _resource_metadata N/A network-segment N/A N/A body_set network_set N/A N/A N/A N/A c_exc VSMError reason Invalid Request N/A N/A N/A body N/A tenantId 0 N/A N/A N/A N/A c_exc VSMError reason Invalid Shared Network Handling N/A N/A N/A _policy_profile_generator N/A N/A total_profiles N/A N/A N/A 
    Generate policy profile response and return a dictionary.

    :param total_profiles: integer representing total number of profiles to
                           return
     N/A profiles N/A N/A num N/A range 1 N/A total_profiles 1 N/A N/A name N/A pp-%s num N/A profile_id N/A 00000000-0000-0000-0000-00000000000%s num N/A N/A profiles N/A name N/A properties N/A name id name profile_id N/A profiles N/A _policy_profile_generator_xml N/A N/A total_profiles N/A N/A N/A 
    Generate policy profile response in XML format.

    :param total_profiles: integer representing total number of profiles to
                           return
     N/A xml N/A <?xml version="1.0" encoding="utf-8"?>
           <set name="virtual_port_profile_set"> N/A template <instance name="%(num)d" url="/api/n1k/virtual-port-profile/%(num)s"><properties><id>00000000-0000-0000-0000-00000000000%(num)s</id><name>pp-%(num)s</name></properties></instance> N/A N/A N/A xml extend N/A N/A template N/A num n N/A n N/A range 1 N/A total_profiles 1 N/A N/A N/A xml append </set> N/A N/A N/A join xml N/A