Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Num NameLoad Dict Str Str Str Str Num NameLoad ListLoad Dict Str Str Str NameLoad Str Str Dict Str Str Str NameLoad Str Str Call NameLoad AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad Call NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad Call NameLoad attr attr attr Str keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad IfExp NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Str Str Str NameLoad Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Call NameLoad Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword Num decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign NameStore ListLoad Dict Str Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A copy N/A mock oslo_utils uuidutils neutron.agent.common utils neutron.agent.l3 dvr_fip_ns neutron.agent.l3 link_local_allocator lla neutron.agent.linux ip_lib neutron.agent.linux iptables_manager neutron.tests base N/A _uuid N/A uuidutils generate_uuid TestDvrFipNs N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestDvrFipNs self setUp N/A N/A self conf N/A N/A mock Mock N/A N/A N/A self conf state_path /tmp N/A N/A self driver N/A N/A mock Mock N/A N/A N/A self driver DEV_NAME_LEN 14 N/A N/A self net_id N/A _uuid N/A N/A self fip_ns N/A N/A dvr_fip_ns FipNamespace N/A self net_id N/A self conf N/A self driver use_ipv6 True N/A test_subscribe N/A N/A self N/A N/A N/A is_first N/A N/A N/A self fip_ns subscribe N/A N/A mock sentinel external_net_id N/A N/A N/A self assertTrue is_first N/A test_subscribe_not_first N/A N/A self N/A N/A N/A N/A N/A N/A self fip_ns subscribe N/A N/A mock sentinel external_net_id N/A is_first N/A N/A N/A self fip_ns subscribe N/A N/A mock sentinel external_net_id2 N/A N/A N/A self assertFalse is_first N/A test_unsubscribe N/A N/A self N/A N/A N/A N/A N/A N/A self fip_ns subscribe N/A N/A mock sentinel external_net_id N/A is_last N/A N/A N/A self fip_ns unsubscribe N/A N/A mock sentinel external_net_id N/A N/A N/A self assertTrue is_last N/A test_unsubscribe_not_last N/A N/A self N/A N/A N/A N/A N/A N/A self fip_ns subscribe N/A N/A mock sentinel external_net_id N/A N/A N/A N/A self fip_ns subscribe N/A N/A mock sentinel external_net_id2 N/A is_last N/A N/A N/A self fip_ns unsubscribe N/A N/A mock sentinel external_net_id2 N/A N/A N/A self assertFalse is_last N/A test_allocate_rule_priority N/A N/A self N/A N/A N/A pr N/A N/A N/A self fip_ns allocate_rule_priority 20.0.0.30 N/A N/A N/A self assertIn 20.0.0.30 N/A N/A N/A self fip_ns _rule_priorities allocations N/A N/A N/A self assertNotIn pr N/A N/A N/A self fip_ns _rule_priorities pool N/A test_deallocate_rule_priority N/A N/A self N/A N/A N/A pr N/A N/A N/A self fip_ns allocate_rule_priority 20.0.0.30 N/A N/A N/A N/A self fip_ns deallocate_rule_priority 20.0.0.30 N/A N/A N/A self assertNotIn 20.0.0.30 N/A N/A N/A self fip_ns _rule_priorities allocations N/A N/A N/A self assertIn pr N/A N/A N/A self fip_ns _rule_priorities pool N/A _get_agent_gw_port N/A N/A self N/A N/A N/A v4_subnet_id N/A _uuid N/A v6_subnet_id N/A _uuid N/A agent_gw_port N/A fixed_ips subnets id network_id mac_address N/A N/A ip_address prefixlen subnet_id 20.0.0.30 24 v4_subnet_id N/A ip_address prefixlen subnet_id cafe:dead:beef::3 64 v6_subnet_id N/A N/A id cidr gateway_ip v4_subnet_id 20.0.0.0/24 20.0.0.1 N/A id cidr gateway_ip v6_subnet_id cafe:dead:beef::/64 cafe:dead:beef::1 N/A _uuid N/A self net_id ca:fe:de:ad:be:ef N/A agent_gw_port N/A test_gateway_added N/A N/A self device_exists ip_wrapper N/A N/A N/A agent_gw_port N/A N/A self _get_agent_gw_port N/A N/A device_exists return_value False N/A N/A N/A self fip_ns update_gateway_port N/A N/A mock Mock N/A N/A N/A N/A self fip_ns _gateway_added agent_gw_port N/A N/A mock sentinel interface_name N/A N/A N/A self assertEqual 1 N/A N/A N/A self driver plug call_count N/A N/A N/A self assertEqual 1 N/A N/A N/A self driver init_l3 call_count N/A N/A N/A N/A N/A self fip_ns update_gateway_port assert_called_once_with agent_gw_port N/A N/A N/A N/A mock patch object ip_lib IPWrapper N/A N/A N/A mock patch object ip_lib device_exists test_update_gateway_port N/A N/A self send_adv_notif IPDevice N/A N/A N/A N/A N/A self fip_ns _check_for_gateway_ip_change N/A N/A mock Mock return_value True N/A N/A N/A self fip_ns agent_gateway_port None N/A agent_gw_port N/A N/A self _get_agent_gw_port N/A N/A N/A N/A self fip_ns update_gateway_port agent_gw_port N/A expected N/A N/A N/A mock call N/A N/A N/A self fip_ns get_name N/A N/A N/A self fip_ns get_ext_device_name N/A agent_gw_port N/A id N/A N/A N/A agent_gw_port N/A fixed_ips N/A 0 N/A ip_address N/A mock ANY N/A N/A mock call N/A N/A N/A self fip_ns get_name N/A N/A N/A self fip_ns get_ext_device_name N/A agent_gw_port N/A id N/A N/A N/A agent_gw_port N/A fixed_ips N/A 1 N/A ip_address N/A mock ANY N/A N/A N/A send_adv_notif assert_has_calls expected N/A gw_ipv4 N/A N/A N/A agent_gw_port N/A subnets N/A 0 N/A gateway_ip N/A gw_ipv6 N/A N/A N/A agent_gw_port N/A subnets N/A 1 N/A gateway_ip N/A expected N/A N/A N/A mock call gw_ipv4 N/A N/A mock call gw_ipv6 N/A N/A N/A N/A N/A N/A IPDevice route add_gateway assert_has_calls expected N/A N/A N/A N/A mock patch object ip_lib IPDevice N/A N/A N/A mock patch object ip_lib send_ip_addr_adv_notif test_update_gateway_port_gateway_outside_subnet_added N/A N/A self send_adv_notif IPDevice N/A N/A N/A N/A N/A self fip_ns agent_gateway_port None N/A agent_gw_port N/A N/A self _get_agent_gw_port N/A N/A N/A N/A agent_gw_port N/A subnets N/A 0 N/A gateway_ip 20.0.1.1 N/A N/A N/A N/A self fip_ns update_gateway_port agent_gw_port N/A N/A N/A N/A N/A N/A IPDevice route add_route assert_called_once_with 20.0.1.1 scope link N/A N/A N/A N/A mock patch object ip_lib IPDevice N/A N/A N/A mock patch object ip_lib send_ip_addr_adv_notif test_check_gateway_ip_changed_no_change N/A N/A self N/A N/A N/A agent_gw_port N/A N/A self _get_agent_gw_port N/A N/A N/A self fip_ns agent_gateway_port N/A N/A copy deepcopy agent_gw_port N/A N/A agent_gw_port N/A mac_address aa:bb:cc:dd:ee:ff N/A N/A N/A self assertFalse N/A N/A N/A self fip_ns _check_for_gateway_ip_change agent_gw_port N/A test_check_gateway_ip_changed_v4 N/A N/A self N/A N/A N/A agent_gw_port N/A N/A self _get_agent_gw_port N/A N/A N/A self fip_ns agent_gateway_port N/A N/A copy deepcopy agent_gw_port N/A N/A N/A N/A agent_gw_port N/A subnets N/A 0 N/A gateway_ip 20.0.0.2 N/A N/A N/A self assertTrue N/A N/A N/A self fip_ns _check_for_gateway_ip_change agent_gw_port N/A test_check_gateway_ip_changed_v6 N/A N/A self N/A N/A N/A agent_gw_port N/A N/A self _get_agent_gw_port N/A N/A N/A self fip_ns agent_gateway_port N/A N/A copy deepcopy agent_gw_port N/A N/A N/A N/A agent_gw_port N/A subnets N/A 1 N/A gateway_ip cafe:dead:beef::2 N/A N/A N/A self assertTrue N/A N/A N/A self fip_ns _check_for_gateway_ip_change agent_gw_port N/A _test_create N/A N/A self old_kernel exists execute IPTables N/A N/A N/A N/A exists return_value True N/A N/A execute side_effect N/A N/A old_kernel RuntimeError None None None None N/A N/A N/A self fip_ns _iptables_manager N/A IPTables N/A N/A N/A N/A self fip_ns create N/A ns_name N/A N/A N/A self fip_ns get_name N/A netns_cmd N/A ip netns exec ns_name N/A bind_cmd N/A sysctl -w net.ipv4.ip_nonlocal_bind=1 N/A expected N/A N/A N/A mock call N/A netns_cmd bind_cmd check_exit_code True extra_ok_codes None log_fail_as_error False run_as_root True N/A old_kernel N/A N/A N/A N/A expected append N/A N/A mock call bind_cmd check_exit_code True extra_ok_codes None log_fail_as_error True run_as_root True N/A N/A N/A execute assert_has_calls expected N/A N/A N/A N/A mock patch object iptables_manager IptablesManager N/A N/A N/A mock patch object utils execute N/A N/A N/A mock patch object N/A ip_lib IpNetnsCommand exists test_create_old_kernel N/A N/A self N/A N/A N/A N/A N/A self _test_create True N/A test_create_new_kernel N/A N/A self N/A N/A N/A N/A N/A self _test_create False N/A test_destroy N/A N/A self IPWrapper N/A N/A N/A ip_wrapper N/A IPWrapper N/A dev1 N/A N/A mock Mock N/A N/A dev1 name fpr-aaaa N/A dev2 N/A N/A mock Mock N/A N/A dev2 name fg-aaaa N/A N/A N/A ip_wrapper get_devices return_value N/A dev1 dev2 N/A N/A N/A N/A mock patch object N/A N/A N/A self fip_ns ip_wrapper_root netns delete delete N/A N/A N/A N/A N/A self fip_ns delete N/A N/A N/A delete assert_called_once_with N/A mock ANY N/A ext_net_bridge N/A N/A self conf external_network_bridge N/A ns_name N/A N/A N/A self fip_ns get_name N/A N/A N/A N/A N/A self driver unplug assert_called_once_with fg-aaaa bridge ext_net_bridge prefix fg- namespace ns_name N/A N/A N/A N/A ip_wrapper del_veth assert_called_once_with fpr-aaaa N/A N/A N/A N/A mock patch object ip_lib IPWrapper test_create_rtr_2_fip_link N/A N/A self device_exists IPDevice IPWrapper N/A N/A N/A ri N/A N/A mock Mock N/A N/A ri router_id N/A _uuid N/A N/A ri rtr_fip_subnet None N/A N/A ri ns_name N/A N/A mock sentinel router_ns N/A rtr_2_fip_name N/A N/A N/A self fip_ns get_rtr_ext_device_name N/A ri router_id N/A fip_2_rtr_name N/A N/A N/A self fip_ns get_int_device_name N/A ri router_id N/A fip_ns_name N/A N/A N/A self fip_ns get_name N/A N/A N/A self fip_ns local_subnets allocator N/A N/A mock Mock N/A pair N/A N/A lla LinkLocalAddressPair 169.254.31.28/31 N/A N/A N/A allocator allocate return_value pair N/A N/A device_exists return_value False N/A ip_wrapper N/A IPWrapper N/A N/A N/A self conf network_device_mtu 2000 N/A N/A N/A ip_wrapper add_veth return_value N/A N/A IPDevice N/A IPDevice N/A N/A N/A N/A self fip_ns create_rtr_2_fip_link ri N/A N/A N/A N/A ip_wrapper add_veth assert_called_with rtr_2_fip_name fip_2_rtr_name fip_ns_name N/A device N/A IPDevice N/A N/A N/A N/A N/A device link set_mtu assert_called_with 2000 N/A N/A N/A self assertEqual 2 N/A N/A N/A device link set_mtu call_count N/A N/A N/A N/A N/A device route add_gateway assert_called_once_with 169.254.31.29 table 16 N/A N/A N/A N/A mock patch object ip_lib IPWrapper N/A N/A N/A mock patch object ip_lib IPDevice N/A N/A N/A mock patch object ip_lib device_exists test_create_rtr_2_fip_link_already_exists N/A N/A self device_exists IPDevice IPWrapper N/A N/A N/A ri N/A N/A mock Mock N/A N/A ri router_id N/A _uuid N/A N/A ri rtr_fip_subnet None N/A N/A device_exists return_value True N/A N/A N/A self fip_ns local_subnets allocator N/A N/A mock Mock N/A pair N/A N/A lla LinkLocalAddressPair 169.254.31.28/31 N/A N/A N/A allocator allocate return_value pair N/A N/A N/A N/A self fip_ns create_rtr_2_fip_link ri N/A ip_wrapper N/A IPWrapper N/A N/A N/A self assertFalse N/A N/A ip_wrapper add_veth called N/A N/A N/A N/A mock patch object ip_lib IPWrapper N/A N/A N/A mock patch object ip_lib IPDevice N/A N/A N/A mock patch object ip_lib device_exists _test_scan_fip_ports N/A N/A self ri ip_list IPDevice N/A N/A N/A N/A IPDevice return_value device N/A N/A mock Mock N/A N/A N/A N/A device addr list return_value ip_list N/A N/A N/A self fip_ns get_rtr_ext_device_name N/A N/A mock Mock return_value N/A N/A mock sentinel rtr_ext_device_name N/A N/A N/A N/A self fip_ns scan_fip_ports ri N/A N/A N/A N/A mock patch object ip_lib IPDevice test_scan_fip_ports_restart_fips N/A N/A self device_exists N/A N/A N/A N/A device_exists return_value True N/A ri N/A N/A mock Mock N/A N/A ri dist_fip_count None N/A N/A ri floating_ips_dict N/A N/A ip_list N/A N/A cidr 111.2.3.4/32 N/A cidr 111.2.3.5/32 N/A N/A N/A self _test_scan_fip_ports ri ip_list N/A N/A N/A self assertEqual 2 N/A ri dist_fip_count N/A N/A N/A N/A mock patch object ip_lib device_exists test_scan_fip_ports_restart_none N/A N/A self device_exists N/A N/A N/A N/A device_exists return_value True N/A ri N/A N/A mock Mock N/A N/A ri dist_fip_count None N/A N/A ri floating_ips_dict N/A N/A N/A N/A self _test_scan_fip_ports ri N/A N/A N/A N/A self assertEqual 0 N/A ri dist_fip_count N/A N/A N/A N/A mock patch object ip_lib device_exists test_scan_fip_ports_restart_zero N/A N/A self N/A N/A N/A ri N/A N/A mock Mock N/A N/A ri dist_fip_count 0 N/A N/A N/A self _test_scan_fip_ports ri None N/A N/A N/A self assertEqual 0 N/A ri dist_fip_count N/A N/A