Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad keyword NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore ListComp Dict Str AttributeLoad NameLoad attr comprehension NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Assign NameStore ListComp Dict Str AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Index Num attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad attr Assign NameStore Str Assert UnaryOpNot NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assert CompareEq AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad keyword NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Num NameLoad Return AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad Assign NameStore Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd AttributeLoad SubscriptLoad NameLoad Index Num attr Num Return Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr BoolOpOr CompareNotIn Str AttributeLoad NameLoad attr CompareNotIn Str AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Copyright 2015 Rackspace

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 IPy IP N/A os N/A time cafe.engine.config EngineConfig cloudcafe.common.tools.datagen rand_name cloudcafe.compute.common.types InstanceAuthStrategies N/A PING_PACKET_LOSS_REGEX (\d{1,3})\.?\d*\%.*loss Instance N/A object N/A __init__ N/A N/A self entity isolated_ips remote_client N/A None N/A N/A N/A self entity entity N/A N/A network_name ip N/A N/A isolated_ips items N/A N/A N/A setattr self network_name ip N/A N/A self remote_client remote_client N/A N/A ScenarioMixin N/A object N/A N/A 
    This class provides utility methods for networking scenario tests

    Child classes can over-ride the definition of constant NAMES_PREFIX, that
    is used by methods that create resources like networks or instances
     N/A NAMES_PREFIX neutron_scenario _create_network_with_subnet N/A N/A cls name cidr allocation_pools gateway_ip N/A None None N/A N/A create_name N/A N/A {}_{} format N/A rand_name N/A cls NAMES_PREFIX name N/A network N/A N/A N/A N/A N/A N/A N/A cls net behaviors networks_behaviors create_network name create_name use_exact_name True response entity N/A N/A N/A N/A cls delete_networks append N/A network id N/A subnet N/A N/A N/A N/A N/A N/A N/A cls net behaviors subnets_behaviors create_subnet N/A network id name create_name ip_version N/A cls ip_version cidr cidr allocation_pools allocation_pools gateway_ip gateway_ip use_exact_name True response entity N/A N/A N/A N/A cls delete_subnets append N/A subnet id N/A N/A network subnet N/A classmethod _create_server N/A N/A cls name isolated_networks_to_connect public_and_service security_groups scheduler_hints N/A None True None None N/A N/A isolated_networks_to_connect N/A isolated_networks_to_connect N/A N/A security_groups N/A security_groups N/A N/A networks N/A N/A uuid N/A net id N/A net isolated_networks_to_connect N/A public_and_service N/A N/A N/A N/A networks append N/A uuid N/A cls public_network_id N/A N/A N/A networks append N/A uuid N/A cls service_network_id N/A nova_secgroups N/A N/A name N/A secgroup name N/A secgroup security_groups N/A server N/A N/A N/A N/A N/A N/A cls compute servers behaviors create_active_server name N/A N/A {}_{} format N/A rand_name N/A cls NAMES_PREFIX name key_name N/A N/A cls keypair name networks networks security_groups nova_secgroups scheduler_hints scheduler_hints entity N/A N/A N/A N/A cls delete_servers append N/A server id N/A isolated_ips N/A N/A cls _get_server_isolated_ips server isolated_networks_to_connect N/A N/A Instance server isolated_ips N/A classmethod _get_server_isolated_ips N/A N/A cls server isolated_networks N/A N/A N/A ips N/A N/A net isolated_networks N/A N/A N/A ips N/A N/A net name N/A N/A N/A N/A getattr N/A server addresses N/A net name addresses N/A 0 addr N/A ips N/A classmethod _create_keypair N/A N/A cls N/A N/A N/A name N/A rand_name N/A cls NAMES_PREFIX N/A N/A cls keypair N/A N/A N/A N/A N/A N/A cls compute keypairs client create_keypair name entity N/A N/A N/A N/A cls resources add name N/A N/A N/A N/A cls compute keypairs client delete_keypair N/A classmethod _get_remote_client N/A N/A cls server N/A N/A N/A ip_address N/A N/A N/A N/A N/A cls compute servers behaviors get_public_ip_address N/A server entity N/A remote_client N/A N/A N/A N/A N/A cls compute servers behaviors get_remote_instance_client N/A server entity ip_address ip_address username root key N/A N/A cls keypair private_key auth_strategy N/A InstanceAuthStrategies KEY N/A remote_client N/A classmethod _transfer_private_key_to_vm N/A N/A cls ssh_client private_key remote_file_path N/A N/A N/A pkey_file_path N/A N/A N/A os path join N/A N/A EngineConfig temp_directory pkey N/A N/A open pkey_file_path w private_key_file N/A N/A N/A N/A private_key_file write private_key N/A N/A N/A ssh_client transfer_file_to pkey_file_path remote_file_path N/A error N/A N/A N/A ssh_client execute_command N/A N/A chmod 600 {} format remote_file_path stderr N/A msg Error changing access permission to private key file in gateway server N/A N/A error msg N/A classmethod _create_empty_security_group N/A N/A cls name N/A N/A N/A 
        @summary: Creates an empty security group
        @param name: A string that will be part of the security group name
        @type secgroup_id: string
        @return: security group
        @rtype: security group entity
         N/A sg_name N/A N/A {}_{} format N/A rand_name N/A cls NAMES_PREFIX name N/A sg_desc N/A sg_name  description N/A resp N/A N/A N/A N/A cls security_groups client create_security_group name sg_name description sg_desc N/A msg Security group create returned unexpected status code: {} N/A msg N/A N/A msg format N/A resp status_code N/A N/A N/A resp status_code 201 msg N/A secgroup N/A resp entity N/A N/A N/A N/A cls delete_secgroups append N/A secgroup id N/A msg Security group create returned unexpected security group name: {} N/A msg N/A N/A msg format N/A secgroup name N/A N/A N/A secgroup name sg_name msg N/A msg Security group create returned unexpected security group description: {} N/A N/A N/A secgroup description sg_desc msg N/A secgroup N/A classmethod _get_port_id_owned_by_instance_on_net N/A N/A cls instance_id net_id N/A N/A N/A 
        @summary: Gets the uuid of the port owned by the specified instance on
         the specified network
        @return: port uuid
        @rtype: string
         N/A resp N/A N/A N/A N/A N/A cls net ports client list_ports device_id instance_id network_id net_id N/A msg Ports list returned unexpected status code: {} N/A msg N/A N/A msg format N/A resp status_code N/A N/A N/A resp status_code 200 msg N/A ports N/A resp entity N/A msg Ports list returned unexpected number of ports given provided filter. Expected 1 port, {0} returned N/A msg N/A N/A msg format N/A len ports N/A N/A N/A len ports 1 msg N/A N/A N/A ports N/A 0 id N/A classmethod _update_port_secgroups N/A N/A self port_id security_groups_ids N/A N/A N/A resp N/A N/A N/A N/A N/A self net ports client update_port port_id security_groups security_groups_ids N/A msg Port security groups update returned unexpected status code: {} N/A msg N/A N/A msg format N/A resp status_code N/A N/A N/A self assertEqual N/A resp status_code 200 msg N/A msg Port list of security group of unexpected length: {} N/A msg N/A N/A msg format N/A len N/A N/A resp entity security_groups N/A N/A N/A self assertEqual N/A len N/A N/A resp entity security_groups N/A len security_groups_ids msg N/A msg Missing security group after port update: {} N/A secgroup_id security_groups_ids N/A N/A N/A N/A self assertIn secgroup_id N/A N/A resp entity security_groups N/A N/A msg format secgroup_id N/A N/A N/A time sleep N/A N/A N/A self security_groups config data_plane_delay N/A _next_sequential_cidr N/A N/A self cidr N/A N/A N/A 
        @summary: Computes the next sequential contiguous cidr to the one
          provided as input. Both cidr's will have the same prefix size
        @param cidr: A cidr that will be used as the base to compute the next
          contiguous one
        @type cidr: IPy.IP
        @return: next contigous cidr
        @rtype: IPy.IP
         N/A next_cidr_1st_ip N/A N/A N/A cidr N/A -1 ip 1 N/A N/A IP N/A N/A {}/{} format N/A str next_cidr_1st_ip N/A str N/A N/A cidr prefixlen N/A _execute_ssh_command N/A N/A self ssh_client cmd N/A N/A N/A response N/A N/A ssh_client execute_command cmd N/A N/A N/A response stderr N/A N/A Warning: Permanently added N/A response stderr N/A to the list of known hosts N/A response stderr N/A N/A msg Error executing command in test instance over ssh: {} N/A msg N/A N/A msg format N/A response stderr N/A N/A N/A self fail msg N/A N/A response stdout N/A N/A