Module Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword ListLoad Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Str keyword Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Num Num NameLoad Str NameLoad Str Str Str Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Num Num NameLoad Str NameLoad Str Str Str Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Num Num NameLoad Str NameLoad Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Dict Str Str Str Str Str Str Str NameLoad Str Num Num Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Assign NameStore Str Assign NameStore Dict Str Dict Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Dict Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Dict Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Dict Expr Call AttributeLoad NameLoad attr keyword Num keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Dict Expr Call AttributeLoad NameLoad attr keyword Num keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str Str Str Str NameLoad Str NameLoad Str Str ListLoad Dict Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str Str Str Str NameLoad Str NameLoad Str Str ListLoad Dict Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str keyword Str Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str keyword Str Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str keyword Str Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str keyword Str Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str AttributeLoad NameLoad attr Assign NameStore Dict AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str Str NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str Str NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str Str NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Assign AttributeStore NameLoad attr Dict Str ListLoad AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str Str keyword NameLoad decorator_list decorator_list
N/A N/A mock neutronclient.common exceptions neutron_client_exc neutronclient.v2_0 client oslo_config cfg oslo_utils uuidutils ironic.common dhcp_factory ironic.common exception ironic.common pxe_utils ironic.conductor task_manager ironic.dhcp neutron ironic.drivers.modules ssh ironic.tests.unit.conductor mgr_utils ironic.tests.unit.db base db_base ironic.tests.unit.objects utils object_utils TestNeutron N/A N/A db_base DbTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestNeutron self setUp N/A N/A N/A mgr_utils mock_the_extension_manager driver fake N/A N/A N/A self config cleaning_network_uuid 00000000-0000-0000-0000-000000000000 group neutron N/A N/A N/A self config enabled_drivers N/A fake N/A N/A N/A self config dhcp_provider neutron group dhcp N/A N/A N/A self config url test-url url_timeout 30 retries 2 group neutron N/A N/A N/A self config insecure False certfile test-file admin_user test-admin-user admin_tenant_name test-admin-tenant admin_password test-admin-password auth_uri test-auth-uri group keystone_authtoken N/A N/A self node N/A N/A object_utils create_test_node N/A self context N/A N/A self ports N/A N/A N/A object_utils create_test_port N/A self context node_id N/A N/A self node id id 2 uuid 1be26c0b-03f2-4d2e-ae87-c02d7f33c782 address 52:54:00:cf:2d:32 N/A N/A self neutron_port N/A id mac_address 132f871f-eaec-4fed-9475-0d54465e0f00 52:54:00:cf:2d:32 N/A N/A N/A dhcp_factory DHCPFactory _dhcp_provider None N/A test__build_client_with_token N/A N/A self mock_client_init N/A N/A N/A token test-token-123 N/A expected N/A timeout retries insecure ca_cert token endpoint_url username tenant_name password auth_url 30 2 False test-file token test-url test-admin-user test-admin-tenant test-admin-password test-auth-uri N/A N/A mock_client_init return_value None N/A N/A N/A neutron _build_client token token N/A N/A N/A mock_client_init assert_called_once_with expected N/A N/A N/A N/A mock patch object N/A client Client __init__ test__build_client_without_token N/A N/A self mock_client_init N/A N/A N/A expected N/A timeout retries insecure ca_cert token endpoint_url username tenant_name password auth_url 30 2 False test-file None test-url test-admin-user test-admin-tenant test-admin-password test-auth-uri N/A N/A mock_client_init return_value None N/A N/A N/A neutron _build_client token None N/A N/A N/A mock_client_init assert_called_once_with expected N/A N/A N/A N/A mock patch object N/A client Client __init__ test__build_client_with_region N/A N/A self mock_client_init N/A N/A N/A expected N/A timeout retries insecure ca_cert token endpoint_url username tenant_name password auth_url region_name 30 2 False test-file None test-url test-admin-user test-admin-tenant test-admin-password test-auth-uri test-region N/A N/A N/A self config region_name test-region group keystone N/A N/A mock_client_init return_value None N/A N/A N/A neutron _build_client token None N/A N/A N/A mock_client_init assert_called_once_with expected N/A N/A N/A N/A mock patch object N/A client Client __init__ test__build_client_noauth N/A N/A self mock_client_init N/A N/A N/A N/A N/A self config auth_strategy noauth group neutron N/A expected N/A ca_cert insecure endpoint_url timeout retries auth_strategy test-file False test-url 30 2 noauth N/A N/A mock_client_init return_value None N/A N/A N/A neutron _build_client token None N/A N/A N/A mock_client_init assert_called_once_with expected N/A N/A N/A N/A mock patch object N/A client Client __init__ test_update_port_dhcp_opts N/A N/A self mock_client_init mock_update_port N/A N/A N/A opts N/A N/A opt_name opt_value bootfile-name pxelinux.0 N/A opt_name opt_value tftp-server 1.1.1.1 N/A opt_name opt_value server-ip-address 1.1.1.1 N/A port_id fake-port-id N/A expected N/A port N/A extra_dhcp_opts opts N/A N/A mock_client_init return_value None N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A N/A api provider update_port_dhcp_opts port_id opts N/A N/A N/A mock_update_port assert_called_once_with port_id expected N/A N/A N/A N/A mock patch object N/A client Client update_port N/A N/A N/A mock patch object N/A client Client __init__ test_update_port_dhcp_opts_with_exception N/A N/A self mock_client_init mock_update_port N/A N/A N/A opts N/A N/A N/A port_id fake-port-id N/A N/A mock_client_init return_value None N/A N/A mock_update_port side_effect N/A N/A neutron_client_exc NeutronClientException N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A self assertRaises N/A exception FailedToUpdateDHCPOptOnPort N/A N/A api provider update_port_dhcp_opts port_id opts N/A N/A N/A N/A mock patch object N/A client Client update_port N/A N/A N/A mock patch object N/A client Client __init__ test_update_port_address N/A N/A self mock_client_init mock_update_port N/A N/A N/A address fe:54:00:77:07:d9 N/A port_id fake-port-id N/A expected N/A port N/A mac_address address N/A N/A mock_client_init return_value None N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A N/A api provider update_port_address port_id address N/A N/A N/A mock_update_port assert_called_once_with port_id expected N/A N/A N/A N/A mock patch object N/A client Client update_port N/A N/A N/A mock patch object N/A client Client __init__ test_update_port_address_with_exception N/A N/A self mock_client_init mock_update_port N/A N/A N/A address fe:54:00:77:07:d9 N/A port_id fake-port-id N/A N/A mock_client_init return_value None N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A mock_update_port side_effect N/A N/A neutron_client_exc NeutronClientException N/A N/A N/A self assertRaises N/A exception FailedToUpdateMacOnPort N/A N/A api provider update_port_address port_id address N/A N/A N/A N/A mock patch object N/A client Client update_port N/A N/A N/A mock patch object N/A client Client __init__ test_update_dhcp N/A N/A self mock_gnvi mock_updo N/A N/A N/A N/A mock_gnvi return_value N/A ports portgroups N/A port-uuid vif-uuid N/A N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A opts N/A N/A pxe_utils dhcp_options_for_instance task N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A api update_dhcp task opts N/A N/A N/A mock_updo assert_called_once_with vif-uuid opts token N/A N/A self context auth_token N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi.update_port_dhcp_opts N/A N/A mock patch ironic.common.network.get_node_vif_ids test_update_dhcp_no_vif_data N/A N/A self mock_gnvi mock_updo N/A N/A N/A N/A mock_gnvi return_value N/A portgroups ports N/A N/A N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A self assertRaises N/A exception FailedToUpdateDHCPOptOnPort N/A api update_dhcp task N/A self node N/A N/A N/A self assertFalse N/A mock_updo called N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi.update_port_dhcp_opts N/A N/A mock patch ironic.common.network.get_node_vif_ids test_update_dhcp_some_failures N/A N/A self mock_gnvi mock_updo N/A N/A N/A N/A mock_gnvi return_value N/A ports portgroups N/A p1 p2 v1 v2 N/A N/A exc N/A N/A exception FailedToUpdateDHCPOptOnPort fake exception N/A N/A mock_updo side_effect N/A None exc N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A api update_dhcp task N/A self node N/A N/A N/A mock_gnvi assert_called_once_with task N/A N/A N/A self assertEqual 2 N/A mock_updo call_count N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi.update_port_dhcp_opts N/A N/A mock patch ironic.common.network.get_node_vif_ids test_update_dhcp_fails N/A N/A self mock_gnvi mock_updo N/A N/A N/A N/A mock_gnvi return_value N/A ports portgroups N/A p1 p2 v1 v2 N/A N/A exc N/A N/A exception FailedToUpdateDHCPOptOnPort fake exception N/A N/A mock_updo side_effect N/A exc exc N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A self assertRaises N/A exception FailedToUpdateDHCPOptOnPort N/A api update_dhcp task N/A self node N/A N/A N/A mock_gnvi assert_called_once_with task N/A N/A N/A self assertEqual 2 N/A mock_updo call_count N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi.update_port_dhcp_opts N/A N/A mock patch ironic.common.network.get_node_vif_ids test_update_dhcp_set_sleep_and_ssh N/A N/A self mock_gnvi mock_updo mock_ts N/A N/A N/A N/A mock_gnvi return_value N/A ports portgroups N/A port-uuid vif-uuid N/A N/A N/A N/A self config port_setup_delay 30 group neutron N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A N/A N/A task driver power N/A N/A ssh SSHPower N/A opts N/A N/A pxe_utils dhcp_options_for_instance task N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A api update_dhcp task opts N/A N/A N/A mock_ts assert_called_with 30 N/A N/A N/A mock_updo assert_called_once_with N/A mock ANY vif-uuid opts token N/A N/A self context auth_token N/A N/A N/A mock patch time.sleep autospec True N/A N/A N/A mock patch object N/A neutron NeutronDHCPApi update_port_dhcp_opts autospec True N/A N/A mock patch ironic.common.network.get_node_vif_ids autospec True test_update_dhcp_unset_sleep_and_ssh N/A N/A self mock_gnvi mock_updo mock_ts mock_log N/A N/A N/A N/A mock_gnvi return_value N/A ports portgroups N/A port-uuid vif-uuid N/A N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A opts N/A N/A pxe_utils dhcp_options_for_instance task N/A N/A N/A task driver power N/A N/A ssh SSHPower N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A api update_dhcp task opts N/A N/A N/A self assertTrue N/A N/A mock_log warning called N/A N/A N/A self assertIn Setting the port delay to 15 for SSH N/A N/A N/A N/A mock_log warning call_args N/A 0 N/A 0 N/A N/A N/A mock_ts assert_called_with 15 N/A N/A N/A mock_updo assert_called_once_with N/A mock ANY vif-uuid opts token N/A N/A self context auth_token N/A N/A N/A N/A mock patch object neutron LOG autospec True N/A N/A mock patch time.sleep autospec True N/A N/A N/A mock patch object N/A neutron NeutronDHCPApi update_port_dhcp_opts autospec True N/A N/A mock patch ironic.common.network.get_node_vif_ids autospec True test_update_dhcp_set_sleep_and_fake N/A N/A self mock_gnvi mock_updo mock_ts mock_log N/A N/A N/A N/A mock_gnvi return_value N/A ports portgroups N/A port-uuid vif-uuid N/A N/A N/A N/A self config port_setup_delay 30 group neutron N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A opts N/A N/A pxe_utils dhcp_options_for_instance task N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A api update_dhcp task opts N/A N/A N/A N/A mock_log debug assert_called_once_with Waiting %d seconds for Neutron. 30 N/A N/A N/A N/A mock_log warning assert_not_called N/A N/A N/A mock_ts assert_called_with 30 N/A N/A N/A mock_updo assert_called_once_with N/A mock ANY vif-uuid opts token N/A N/A self context auth_token N/A N/A N/A N/A mock patch object neutron LOG autospec True N/A N/A mock patch time.sleep autospec True N/A N/A N/A mock patch object N/A neutron NeutronDHCPApi update_port_dhcp_opts autospec True N/A N/A mock patch ironic.common.network.get_node_vif_ids autospec True test_update_dhcp_unset_sleep_and_fake N/A N/A self mock_gnvi mock_updo mock_log N/A N/A N/A N/A mock_gnvi return_value N/A ports portgroups N/A port-uuid vif-uuid N/A N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A opts N/A N/A pxe_utils dhcp_options_for_instance task N/A api N/A N/A dhcp_factory DHCPFactory N/A N/A N/A api update_dhcp task opts N/A N/A N/A N/A mock_log debug assert_not_called N/A N/A N/A N/A mock_log warning assert_not_called N/A N/A N/A mock_updo assert_called_once_with N/A mock ANY vif-uuid opts token N/A N/A self context auth_token N/A N/A N/A N/A mock patch object neutron LOG autospec True N/A N/A N/A mock patch object N/A neutron NeutronDHCPApi update_port_dhcp_opts autospec True N/A N/A mock patch ironic.common.network.get_node_vif_ids autospec True test__get_fixed_ip_address N/A N/A self N/A N/A N/A port_id fake-port-id N/A expected 192.168.1.3 N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A port_data N/A id network_id admin_state_up status mac_address fixed_ips device_id port_id 3cb9bc59-5699-4588-a4b1-b87f96708bc6 True ACTIVE fa:16:3e:4c:2c:30 N/A N/A ip_address subnet_id 192.168.1.3 f8a6e8f8-c2ec-497c-9f23-da9616de54ef bece68a3-2f8b-4e66-9092-244493d6aba7 N/A fake_client N/A N/A mock Mock N/A N/A N/A fake_client show_port return_value N/A port port_data N/A result N/A N/A api _get_fixed_ip_address port_id fake_client N/A N/A N/A self assertEqual expected result N/A N/A N/A N/A fake_client show_port assert_called_once_with port_id N/A test__get_fixed_ip_address_invalid_ip N/A N/A self N/A N/A N/A port_id fake-port-id N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A port_data N/A id network_id admin_state_up status mac_address fixed_ips device_id port_id 3cb9bc59-5699-4588-a4b1-b87f96708bc6 True ACTIVE fa:16:3e:4c:2c:30 N/A N/A ip_address subnet_id invalid.ip f8a6e8f8-c2ec-497c-9f23-da9616de54ef bece68a3-2f8b-4e66-9092-244493d6aba7 N/A fake_client N/A N/A mock Mock N/A N/A N/A fake_client show_port return_value N/A port port_data N/A N/A N/A self assertRaises N/A exception InvalidIPv4Address N/A api _get_fixed_ip_address port_id fake_client N/A N/A N/A N/A fake_client show_port assert_called_once_with port_id N/A test__get_fixed_ip_address_with_exception N/A N/A self N/A N/A N/A port_id fake-port-id N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A fake_client N/A N/A mock Mock N/A N/A N/A fake_client show_port side_effect N/A N/A neutron_client_exc NeutronClientException N/A N/A N/A self assertRaises N/A exception FailedToGetIPAddressOnPort N/A api _get_fixed_ip_address port_id fake_client N/A N/A N/A N/A fake_client show_port assert_called_once_with port_id N/A test__get_port_ip_address N/A N/A self mock_gfia N/A N/A N/A expected 192.168.1.3 N/A port N/A N/A object_utils create_test_port N/A self context node_id N/A N/A self node id address aa:bb:cc:dd:ee:ff uuid N/A N/A uuidutils generate_uuid extra N/A vif_port_id test-vif-A driver fake N/A N/A mock_gfia return_value expected N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A result N/A N/A api _get_port_ip_address task port N/A N/A mock sentinel client N/A N/A N/A self assertEqual expected result N/A N/A N/A mock_gfia assert_called_once_with test-vif-A N/A N/A mock sentinel client N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_fixed_ip_address test__get_port_ip_address_for_portgroup N/A N/A self mock_gfia N/A N/A N/A expected 192.168.1.3 N/A pg N/A N/A object_utils create_test_portgroup N/A self context node_id N/A N/A self node id address aa:bb:cc:dd:ee:ff uuid N/A N/A uuidutils generate_uuid extra N/A vif_port_id test-vif-A driver fake N/A N/A mock_gfia return_value expected N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A result N/A N/A api _get_port_ip_address task pg N/A N/A mock sentinel client N/A N/A N/A self assertEqual expected result N/A N/A N/A mock_gfia assert_called_once_with test-vif-A N/A N/A mock sentinel client N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_fixed_ip_address test__get_port_ip_address_with_exception N/A N/A self mock_gfia N/A N/A N/A expected 192.168.1.3 N/A port N/A N/A object_utils create_test_port N/A self context node_id N/A N/A self node id address aa:bb:cc:dd:ee:ff uuid N/A N/A uuidutils generate_uuid driver fake N/A N/A mock_gfia return_value expected N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A self assertRaises N/A exception FailedToGetIPAddressOnPort N/A api _get_port_ip_address task port N/A N/A mock sentinel client N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_fixed_ip_address test__get_port_ip_address_for_portgroup_with_exception N/A N/A self mock_gfia N/A N/A N/A expected 192.168.1.3 N/A pg N/A N/A object_utils create_test_portgroup N/A self context node_id N/A N/A self node id address aa:bb:cc:dd:ee:ff uuid N/A N/A uuidutils generate_uuid driver fake N/A N/A mock_gfia return_value expected N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A self assertRaises N/A exception FailedToGetIPAddressOnPort N/A api _get_port_ip_address task pg N/A N/A mock sentinel client N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_fixed_ip_address test__get_ip_addresses_ports N/A N/A self mock_gfia N/A N/A N/A ip_address 10.10.0.1 N/A expected N/A ip_address N/A port N/A N/A object_utils create_test_port N/A self context node_id N/A N/A self node id address aa:bb:cc:dd:ee:ff uuid N/A N/A uuidutils generate_uuid extra N/A vif_port_id test-vif-A driver fake N/A N/A mock_gfia return_value ip_address N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A result N/A N/A api _get_ip_addresses task N/A port N/A N/A mock sentinel client N/A N/A N/A self assertEqual expected result N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_fixed_ip_address test__get_ip_addresses_portgroup N/A N/A self mock_gfia N/A N/A N/A ip_address 10.10.0.1 N/A expected N/A ip_address N/A pg N/A N/A object_utils create_test_portgroup N/A self context node_id N/A N/A self node id address aa:bb:cc:dd:ee:ff uuid N/A N/A uuidutils generate_uuid extra N/A vif_port_id test-vif-A driver fake N/A N/A mock_gfia return_value ip_address N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A result N/A N/A api _get_ip_addresses task N/A pg N/A N/A mock sentinel client N/A N/A N/A self assertEqual expected result N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_fixed_ip_address test_get_ip_addresses N/A N/A self get_ip_mock N/A N/A N/A ip_address 10.10.0.1 N/A expected N/A ip_address N/A N/A get_ip_mock return_value ip_address N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A result N/A N/A api get_ip_addresses task N/A N/A N/A get_ip_mock assert_called_once_with task N/A N/A task ports N/A 0 N/A mock ANY N/A N/A N/A self assertEqual expected result N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_port_ip_address test_get_ip_addresses_for_port_and_portgroup N/A N/A self get_ip_mock N/A N/A N/A N/A N/A object_utils create_test_portgroup N/A self context node_id N/A N/A self node id address aa:bb:cc:dd:ee:ff uuid N/A N/A uuidutils generate_uuid extra N/A vif_port_id test-vif-A driver fake N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A api get_ip_addresses task N/A N/A N/A get_ip_mock assert_has_calls N/A N/A N/A mock call task N/A N/A task ports N/A 0 N/A mock ANY N/A N/A mock call task N/A N/A task portgroups N/A 0 N/A mock ANY N/A N/A N/A mock patch ironic.dhcp.neutron.NeutronDHCPApi._get_port_ip_address test_create_cleaning_ports N/A N/A self create_mock N/A N/A N/A N/A create_mock return_value N/A port N/A self neutron_port N/A expected N/A N/A N/A N/A self ports N/A 0 uuid N/A N/A self neutron_port N/A id N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A ports N/A N/A api create_cleaning_ports task N/A N/A N/A self assertEqual expected ports N/A N/A N/A create_mock assert_called_once_with N/A port N/A network_id admin_state_up mac_address 00000000-0000-0000-0000-000000000000 True N/A N/A N/A self ports N/A 0 address N/A N/A N/A N/A mock patch object N/A client Client create_port test_create_cleaning_ports_fail N/A N/A self create_mock rollback_mock N/A N/A N/A N/A create_mock side_effect N/A neutron_client_exc ConnectionFailed N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A N/A N/A self assertRaises N/A exception NodeCleaningFailure N/A api create_cleaning_ports task N/A N/A N/A create_mock assert_called_once_with N/A port N/A network_id admin_state_up mac_address 00000000-0000-0000-0000-000000000000 True N/A N/A N/A self ports N/A 0 address N/A N/A N/A rollback_mock assert_called_once_with task N/A N/A N/A N/A mock patch object N/A neutron NeutronDHCPApi _rollback_cleaning_ports N/A N/A N/A mock patch object N/A client Client create_port test_create_cleaning_ports_fail_delayed N/A N/A self create_mock rollback_mock N/A N/A N/A Check ports are cleaned up on failure to create them

        This test checks that the port clean-up occurs
        when the port create call was successful,
        but the port in fact was not created.

         N/A mockport N/A N/A mock MagicMock N/A N/A create_mock return_value mockport N/A N/A N/A mockport get return_value True N/A mockitem N/A N/A mock Mock N/A N/A N/A mockport __getitem__ return_value mockitem N/A N/A N/A mockitem get return_value None N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A N/A N/A self assertRaises N/A exception NodeCleaningFailure N/A api create_cleaning_ports task N/A N/A N/A create_mock assert_called_once_with N/A port N/A network_id admin_state_up mac_address 00000000-0000-0000-0000-000000000000 True N/A N/A N/A self ports N/A 0 address N/A N/A N/A rollback_mock assert_called_once_with task N/A N/A N/A N/A mockport get assert_called_once_with port N/A N/A N/A N/A mockitem get assert_called_once_with id N/A N/A N/A N/A mockport __getitem__ assert_called_once_with port N/A N/A N/A N/A mock patch object N/A neutron NeutronDHCPApi _rollback_cleaning_ports N/A N/A N/A mock patch object N/A client Client create_port test_create_cleaning_ports_bad_config N/A N/A self create_mock N/A N/A N/A N/A N/A self config cleaning_network_uuid None group neutron N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A N/A N/A self assertRaises N/A exception InvalidParameterValue N/A api create_cleaning_ports task N/A N/A N/A N/A mock patch object N/A client Client create_port test_delete_cleaning_ports N/A N/A self list_mock delete_mock N/A N/A N/A other_port N/A id mac_address 132f871f-eaec-4fed-9475-0d54465e0f01 aa:bb:cc:dd:ee:ff N/A N/A list_mock return_value N/A ports N/A N/A self neutron_port other_port N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A N/A N/A api delete_cleaning_ports task N/A N/A N/A list_mock assert_called_once_with network_id 00000000-0000-0000-0000-000000000000 N/A N/A N/A delete_mock assert_called_once_with N/A N/A self neutron_port N/A id N/A N/A N/A N/A mock patch object N/A client Client delete_port N/A N/A N/A mock patch object N/A client Client list_ports test_delete_cleaning_ports_list_fail N/A N/A self list_mock N/A N/A N/A N/A list_mock side_effect N/A neutron_client_exc ConnectionFailed N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A N/A N/A self assertRaises N/A exception NodeCleaningFailure N/A api delete_cleaning_ports task N/A N/A N/A list_mock assert_called_once_with network_id 00000000-0000-0000-0000-000000000000 N/A N/A N/A N/A mock patch object N/A client Client list_ports test_delete_cleaning_ports_delete_fail N/A N/A self list_mock delete_mock N/A N/A N/A N/A list_mock return_value N/A ports N/A N/A self neutron_port N/A N/A delete_mock side_effect N/A neutron_client_exc ConnectionFailed N/A api N/A N/A N/A dhcp_factory DHCPFactory provider N/A N/A N/A task_manager acquire N/A self context N/A N/A self node uuid task N/A N/A N/A N/A self assertRaises N/A exception NodeCleaningFailure N/A api delete_cleaning_ports task N/A N/A N/A list_mock assert_called_once_with network_id 00000000-0000-0000-0000-000000000000 N/A N/A N/A delete_mock assert_called_once_with N/A N/A self neutron_port N/A id N/A N/A N/A N/A mock patch object N/A client Client delete_port N/A N/A N/A mock patch object N/A client Client list_ports test_out_range_auth_strategy N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A N/A cfg CONF set_override auth_strategy fake neutron enforce_type True N/A N/A