Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Dict Str Str Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call NameLoad GeneratorExp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr CompareIn Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad Return Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad attr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr attr Num handlers ExceptHandler type NameLoad body Return NameLoad Return CompareNotEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str If BoolOpAnd CompareNotIn Str AttributeLoad NameLoad attr CompareNotIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Dict Str Str Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Assign TupleStore SubscriptStore NameLoad Index NameLoad NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad keyword NameLoad keyword Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr If CompareEq NameLoad Num body Assign NameStore Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Dict Str Str Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword ListLoad Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Dict Str Str Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword ListLoad Dict Str Str Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad attr Assign NameStore Str For NameStore NameLoad body If BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Call NameLoad NameLoad NameLoad CompareIn NameLoad NameLoad body Break orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str 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 re N/A time cafe.drivers.unittest.decorators tags cloudcafe.common.tools.datagen rand_name cloudroast.networking.networks.fixtures NetworkingComputeFixture cloudroast.networking.networks.scenario.common ScenarioMixin N/A PING_PACKET_LOSS_REGEX (\d{1,3})\.?\d*\%.*loss L2HostroutesGatewayTest N/A NetworkingComputeFixture ScenarioMixin N/A N/A 
    This test verifies that host routes specified for Neutron subnets allow
    vm's to route data traffic between said subnets. In doing so, operations
    on the three basic Neutron abstractions are exercised: networks, subnets
    and ports.

    The following is the scenario outline:
    1. Two networks / subnets are created with non overlapping cidr's. One of
       the networks is considered the 'origin' and the other is considered the
       'destination'.
    2. A 'router' vm is created and connected to both networks, 'origin' and
       'destination'.
    3. The 'origin' subnet is updated with a host route specifying the
       'router's port on that subnet as the nexthop for the 'destination'
       network.
    4. A vm is created and connected only to the 'origin' network.
    5. A vm is created and connected only to the 'destination' network.
    6. ip forwarding is enabled in the 'router' vm
    7. The test verifies that the vm connected only to the 'origin' network
       can ping the the vm connected only to the 'destination' network.
    8. The test verifies that the vm connected only to the 'destination'
       network cannot ping the vm connected to the 'origin' network.
     N/A PRIVATE_KEY_PATH /root/pkey setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super L2HostroutesGatewayTest cls setUpClass N/A N/A cls servers_client N/A N/A N/A cls compute servers client N/A N/A cls keypairs_client N/A N/A N/A cls compute keypairs client N/A N/A cls server_behaviors N/A N/A N/A cls compute servers behaviors N/A N/A cls subnets_client N/A N/A N/A cls net subnets client N/A N/A cls networks_behaviors N/A N/A N/A cls net behaviors networks_behaviors N/A N/A cls subnets_behaviors N/A N/A N/A cls net behaviors subnets_behaviors N/A N/A cls ports_behaviors N/A N/A N/A cls net behaviors ports_behaviors N/A N/A cls networks_client N/A N/A cls networks_behaviors client N/A classmethod _create_networks N/A N/A self N/A N/A N/A N/A network subnet N/A N/A self _create_network_with_subnet destination N/A self base_cidr N/A msg Subnet found with non null gateway_ip attribute. Subnets should be created with null gateway_ip attribute by default N/A N/A N/A self assertFalse N/A subnet gateway_ip msg N/A N/A self destination_network network N/A N/A self destination_subnet subnet N/A next_cidr N/A N/A self _next_sequential_cidr N/A IP N/A self base_cidr N/A allocation_pools N/A N/A start end N/A str N/A IP N/A N/A next_cidr N/A 1 ip N/A str N/A IP N/A N/A next_cidr N/A -2 ip N/A N/A network subnet N/A N/A self _create_network_with_subnet with_route N/A str next_cidr allocation_pools N/A msg Explicit allocation pools requested in subnet creation could not be confirmed in Neutron response N/A expected_allocation_pools N/A set N/A N/A tuple N/A N/A x items N/A x allocation_pools N/A pool N/A subnet allocation_pools N/A N/A N/A N/A self assertTrue N/A N/A tuple N/A N/A pool items expected_allocation_pools msg N/A N/A self network_with_route network N/A N/A self subnet_with_route subnet N/A _create_router N/A N/A self N/A N/A N/A N/A self router N/A N/A self _create_server router N/A N/A self network_with_route N/A self destination_network N/A resp N/A N/A N/A self networks_client delete_network N/A N/A self network_with_route id N/A msg Attempt to delete a network with an active instance should return 409, Conflict. Instead, it returned {} N/A msg N/A N/A msg format N/A str N/A resp status_code N/A N/A N/A self assertEqual N/A resp status_code 409 msg N/A N/A port N/A N/A N/A N/A N/A self ports_behaviors create_port N/A N/A self destination_network id name N/A N/A {}_{} format N/A rand_name N/A self NAMES_PREFIX attached_port device_id N/A N/A N/A self router entity id use_exact_name True response entity N/A N/A N/A N/A self delete_ports append N/A port id N/A msg Port not attached to nova instance after port creation. Port creation request specified instance uuid in device_id attribute N/A N/A N/A self assertEqual N/A N/A N/A self router entity id N/A port device_id msg N/A _enable_ip_forwarding N/A N/A self N/A N/A N/A N/A N/A self router remote_client N/A N/A self _get_remote_client N/A self router N/A cmd N/A self ENABLE_IP_FORWARDING_CMDS N/A N/A N/A N/A self _execute_ssh_command N/A N/A N/A self router remote_client ssh_client cmd N/A _create_communicating_servers N/A N/A self N/A N/A N/A N/A self origin N/A N/A self _create_server origin N/A N/A self network_with_route N/A N/A self destination N/A N/A self _create_server destination N/A N/A self destination_network N/A N/A N/A self origin remote_client N/A N/A self _get_remote_client N/A self origin N/A destination N/A N/A N/A self destination_subnet cidr N/A N/A N/A N/A N/A self destination_subnet cidr rindex / N/A N/A N/A N/A self __class__ __name__ L2HostroutesGatewayTestIPv6 N/A N/A nexthop N/A getattr N/A self router N/A N/A self network_with_route name N/A N/A N/A self _execute_ssh_command N/A N/A N/A self origin remote_client ssh_client N/A N/A route -A inet6 add {}/48 gw {} format destination nexthop N/A route_cmd N/A N/A {} -n | grep {} format N/A self ROUTE_COMMAND destination N/A route N/A N/A N/A N/A self _execute_ssh_command N/A N/A N/A self origin remote_client ssh_client route_cmd split N/A msg Expected route was not found in 'origin' server N/A N/A N/A self assertIn destination N/A route N/A 0 msg N/A N/A N/A self assertIn N/A getattr N/A self router N/A N/A self network_with_route name route msg N/A N/A N/A self destination remote_client N/A N/A self _get_remote_client N/A self destination N/A origin N/A N/A N/A self subnet_with_route cidr N/A N/A N/A N/A N/A self subnet_with_route cidr rindex / N/A route_cmd N/A N/A {} -n | grep {} format N/A self ROUTE_COMMAND origin N/A route N/A N/A self _execute_ssh_command N/A N/A N/A self destination remote_client ssh_client route_cmd N/A msg Unexpected route was found in 'destination' server N/A N/A N/A self assertFalse route msg N/A N/A N/A self _transfer_private_key_to_vm N/A N/A N/A self origin remote_client ssh_client N/A N/A self keypair private_key N/A self PRIVATE_KEY_PATH N/A N/A N/A self _transfer_private_key_to_vm N/A N/A N/A self destination remote_client ssh_client N/A N/A self keypair private_key N/A self PRIVATE_KEY_PATH N/A _set_host_routes N/A N/A self N/A N/A N/A N/A N/A N/A self subnets_client update_subnet N/A N/A self subnet_with_route id host_routes N/A N/A destination nexthop N/A N/A self destination_subnet cidr N/A getattr N/A self router N/A N/A self network_with_route name N/A _ping N/A N/A self ssh_client ip_address N/A N/A N/A ping_cmd N/A N/A N/A self PING_COMMAND format ip_address N/A output N/A N/A ssh_client execute_command ping_cmd N/A N/A N/A packet_loss_percent N/A N/A N/A N/A re search PING_PACKET_LOSS_REGEX N/A output stdout group 1 N/A N/A N/A Exception N/A N/A False N/A N/A packet_loss_percent 100 N/A _ssh N/A N/A self ssh_client ip_address cmd N/A N/A N/A ssh_cmd N/A N/A N/A self SSH_COMMAND format N/A self PRIVATE_KEY_PATH ip_address cmd N/A N/A N/A ssh_client execute_command ssh_cmd N/A _verify_expected_connectivity N/A N/A self N/A N/A N/A 
        Verfies that the expected connectivity takes place after the scenario
        has been set up:

        1) The "origin" instance should be able to ping and ssh the
        "destination" instance
        2) The "destination" instance shouldn't be able to ping and ssh the
        "origin" instance
         N/A origin_address N/A getattr N/A self origin N/A N/A self network_with_route name N/A destination_address N/A getattr N/A self destination N/A N/A self destination_network name N/A msg Connectivity doesn't exist between two instances in two separate isolated networks connected with a router. Host routes were set up to enable this connectivity N/A N/A N/A self assertTrue N/A N/A self _ping N/A N/A N/A self origin remote_client ssh_client destination_address msg N/A response N/A N/A self _ssh N/A N/A N/A self origin remote_client ssh_client destination_address pwd N/A N/A N/A self assertEqual N/A N/A N/A response stdout strip /root msg N/A msg Connectivity exists unexpectedly between two instances in two separate isolated networks connected with a router. Host routes were not set up to enable this connectivity N/A N/A N/A self assertFalse N/A N/A self _ping N/A N/A N/A self destination remote_client ssh_client origin_address msg N/A response N/A N/A self _ssh N/A N/A N/A self destination remote_client ssh_client origin_address pwd N/A N/A N/A port 22: Connection timed out N/A response stderr N/A port 22: No route to host N/A response stderr N/A N/A N/A N/A self fail msg N/A _test_execute N/A N/A self N/A N/A N/A N/A N/A self _create_networks N/A N/A N/A self _create_keypair N/A N/A N/A self _create_router N/A N/A N/A self _set_host_routes N/A N/A N/A self _create_communicating_servers N/A N/A N/A self _enable_ip_forwarding N/A N/A N/A self _verify_expected_connectivity N/A N/A L2HostroutesGatewayTestIPv4 N/A L2HostroutesGatewayTest N/A N/A 
    This class implements the scenario defined by class L2HostroutesGatewayTest
    above, with 'origin' and 'destination' created as IPv4 networks
     N/A PING_COMMAND ping -c 3 {} N/A ROUTE_COMMAND route N/A ENABLE_IP_FORWARDING_CMDS N/A iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward N/A SSH_COMMAND ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=60 -i {} root@{} {} N/A NAMES_PREFIX routes_gateway_IPv4 setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super L2HostroutesGatewayTestIPv4 cls setUpClass N/A N/A cls base_cidr N/A N/A join N/A N/A N/A N/A cls subnets_behaviors config ipv4_prefix / N/A str N/A N/A N/A cls subnets_behaviors config ipv4_suffix N/A N/A cls ip_version N/A N/A N/A IP N/A cls base_cidr version N/A classmethod test_execute_IPv4 N/A N/A self N/A N/A N/A N/A N/A self _test_execute N/A N/A tags type positive net yes N/A GatewayPoliciesTest N/A NetworkingComputeFixture ScenarioMixin N/A N/A 
    This class tests several Neutron policies regarding the assignment of
    gateways to networks / subnets and how that is translated to routes in vm's
    connected to those networks / subnets. The methods in this class each test
    one policy. Please refer to the docstring in each method for a description
    of the tested policy
     N/A NAMES_PREFIX gateway_policies setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super GatewayPoliciesTest cls setUpClass N/A N/A cls servers_client N/A N/A N/A cls compute servers client N/A N/A cls keypairs_client N/A N/A N/A cls compute keypairs client N/A N/A cls server_behaviors N/A N/A N/A cls compute servers behaviors N/A N/A cls subnets_client N/A N/A N/A cls net subnets client N/A N/A cls networks_behaviors N/A N/A N/A cls net behaviors networks_behaviors N/A N/A cls subnets_behaviors N/A N/A N/A cls net behaviors subnets_behaviors N/A N/A cls ports_behaviors N/A N/A N/A cls net behaviors ports_behaviors N/A N/A cls base_cidr N/A N/A join N/A N/A N/A N/A cls subnets_behaviors config ipv4_prefix / N/A str N/A N/A N/A cls subnets_behaviors config ipv4_suffix N/A N/A cls ip_version N/A N/A N/A IP N/A cls base_cidr version N/A N/A N/A cls _create_keypair N/A N/A N/A cls access_network N/A cls access_subnet N/A N/A cls _create_network_with_subnet access N/A cls base_cidr N/A N/A cls gateway N/A N/A cls _create_server gateway N/A N/A cls access_network N/A remote_file_path /root/pkey N/A N/A N/A cls gateway remote_client N/A N/A cls _get_remote_client N/A cls gateway N/A N/A N/A cls _transfer_private_key_to_vm N/A N/A N/A cls gateway remote_client ssh_client N/A N/A cls keypair private_key remote_file_path N/A N/A cls ssh_command_stub ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {} root@ N/A N/A cls ssh_command_stub N/A N/A N/A cls ssh_command_stub format remote_file_path N/A classmethod test_policy_vm_default_route_is_null N/A N/A self N/A N/A N/A 
        This test verifies that a vm doesn't get a default route if it is
        connected to a subnet with no gateway_ip defined
         N/A vm N/A N/A self _create_server vm_with_null_default_route N/A N/A self access_network public_and_service False N/A N/A N/A time sleep 240 N/A N/A N/A self gateway remote_client N/A N/A self _get_remote_client N/A self gateway N/A ssh_cmd N/A N/A {}{} {} format N/A self ssh_command_stub N/A getattr vm N/A N/A self access_network name route | grep default N/A output N/A N/A self _execute_ssh_command N/A N/A N/A self gateway remote_client ssh_client ssh_cmd N/A msg Unexpected default route was found in VM connected to network without a gateway defined N/A N/A N/A self assertFalse output msg N/A test_policy_set_gateway_for_vm N/A N/A self N/A N/A N/A 
        This test verifies that the gateway_ip set for an isolated network
        translates into a the default route in a vm connected to that network.
        It is also verified that only the first network's gateway_ip translates
        into a default route in the created vm
         N/A nets N/A None None N/A cidr N/A IP N/A self base_cidr N/A i N/A xrange 2 N/A N/A cidr N/A N/A self _next_sequential_cidr cidr N/A allocation_pools N/A N/A start end N/A str N/A IP N/A N/A cidr N/A 2 ip N/A str N/A IP N/A N/A cidr N/A -2 ip N/A N/A N/A nets N/A i _ N/A N/A self _create_network_with_subnet with_gateway N/A str cidr allocation_pools allocation_pools gateway_ip N/A str N/A IP N/A N/A cidr N/A 1 ip N/A N/A i 0 N/A N/A expected_gateway_ip N/A str N/A IP N/A N/A cidr N/A 1 ip N/A N/A N/A nets append N/A self access_network N/A vm N/A N/A self _create_server vm_with_default_route nets public_and_service False N/A N/A N/A time sleep 240 N/A N/A N/A self gateway remote_client N/A N/A self _get_remote_client N/A self gateway N/A ssh_cmd N/A N/A {}{} {} format N/A self ssh_command_stub N/A getattr vm N/A N/A self access_network name route | grep default N/A output N/A N/A self _execute_ssh_command N/A N/A N/A self gateway remote_client ssh_client ssh_cmd N/A msg Expected default route not found in VM connected to network with gateway_ip defined N/A N/A N/A self assertTrue output msg N/A msg Default route in VM connected to network does not point to the gateway defined in the network it is connected to N/A N/A N/A self assertIn expected_gateway_ip output msg N/A test_policy_set_gateway_for_vm_with_host_routes N/A N/A self N/A N/A N/A 
        This test verifies that defining a host route 0.0.0.0/0 for a network
        translates in a default route for vm's connected to that network
         N/A cidr N/A N/A self _next_sequential_cidr N/A IP N/A self base_cidr N/A allocation_pools N/A N/A start end N/A str N/A IP N/A N/A cidr N/A 2 ip N/A str N/A IP N/A N/A cidr N/A -2 ip N/A N/A net subnet N/A N/A self _create_network_with_subnet hostroutes N/A str cidr allocation_pools allocation_pools N/A expected_gateway_ip N/A str N/A IP N/A N/A cidr N/A 1 ip N/A N/A N/A N/A self subnets_client update_subnet N/A subnet id host_routes N/A N/A destination nexthop 0.0.0.0/0 expected_gateway_ip N/A vm N/A N/A self _create_server vm_with_default_route_hostroutes N/A net N/A self access_network public_and_service False N/A N/A N/A time sleep 240 N/A N/A N/A self gateway remote_client N/A N/A self _get_remote_client N/A self gateway N/A ssh_cmd N/A N/A {}{} {} format N/A self ssh_command_stub N/A getattr vm N/A N/A self access_network name route | grep default N/A output N/A N/A self _execute_ssh_command N/A N/A N/A self gateway remote_client ssh_client ssh_cmd N/A msg Expected default route not found in VM connected to network with gateway_ip defined with host routes N/A N/A N/A self assertTrue output msg N/A msg Default route in VM connected to network does not point to the gateway defined in the network it is connected to N/A N/A N/A self assertIn expected_gateway_ip output msg N/A test_policy_add_route_to_vm_with_host_routes N/A N/A self N/A N/A N/A 
        This test verifies that defining a host route for a network translates
        to an additional route for vm's connected to that network. It is also
        tested that the vm doesn't get a default route
         N/A cidr N/A N/A self _next_sequential_cidr N/A IP N/A self base_cidr N/A allocation_pools N/A N/A start end N/A str N/A IP N/A N/A cidr N/A 2 ip N/A str N/A IP N/A N/A cidr N/A -2 ip N/A N/A net subnet N/A N/A self _create_network_with_subnet hostroutes N/A str cidr allocation_pools allocation_pools N/A expected_nexthop N/A str N/A IP N/A N/A cidr N/A 1 ip N/A N/A N/A N/A self subnets_client update_subnet N/A subnet id host_routes N/A N/A destination nexthop N/A str cidr expected_nexthop N/A vm N/A N/A self _create_server vm_with_default_route_hostroutes N/A net N/A self access_network public_and_service False N/A N/A N/A time sleep 240 N/A N/A N/A self gateway remote_client N/A N/A self _get_remote_client N/A self gateway N/A range_origin N/A str N/A IP N/A N/A cidr N/A 0 ip N/A route_cmd N/A N/A route -n | grep {} format range_origin N/A ssh_cmd N/A N/A {}{} {} format N/A self ssh_command_stub N/A getattr vm N/A N/A self access_network name route_cmd N/A output N/A N/A N/A N/A self _execute_ssh_command N/A N/A N/A self gateway remote_client ssh_client ssh_cmd splitlines N/A msg Expected route not found in VM connected to network with that route defined N/A line output N/A N/A N/A N/A N/A line N/A N/A len range_origin range_origin N/A expected_nexthop line N/A N/A N/A N/A N/A N/A self fail msg N/A N/A L2HostroutesGatewayTestIPv6 N/A L2HostroutesGatewayTest N/A N/A 
    This class implements the scenario defined by class L2HostroutesGatewayTest
    above, with 'origin' and 'destination' created as IPv6 networks
     N/A PING_COMMAND ping6 -c 3 {} N/A ROUTE_COMMAND route -A inet6 N/A ENABLE_IP_FORWARDING_CMDS N/A ip6tables -t nat -A POSTROUTING -o eth3 -j MASQUERADE echo 1 > /proc/sys/net/ipv6/conf/all/forwarding N/A SSH_COMMAND ssh -6 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=60 -i {} root@{} {} N/A NAMES_PREFIX routes_gateway_IPv6 setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super L2HostroutesGatewayTestIPv6 cls setUpClass N/A N/A cls base_cidr N/A N/A join N/A N/A N/A N/A cls subnets_behaviors config ipv6_prefix / N/A str N/A N/A N/A cls subnets_behaviors config ipv6_suffix N/A N/A cls ip_version N/A N/A N/A IP N/A cls base_cidr version N/A classmethod test_execute_IPv6 N/A N/A self N/A N/A N/A N/A N/A self _test_execute N/A N/A tags type positive net yes N/A