Module Import alias ImportFrom alias ImportFrom alias identifier Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str ListLoad Dict Str Str Assign NameStore Dict Str Str Str Str Str NameLoad Str Str Str Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore SetComp NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str ListLoad Dict Str Str Assign NameStore Dict Str Str Str Str Str NameLoad Str Str Str Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A mock oslo_config cfg oslo_log log logging N/A networking_cisco.plugins networking_cisco.plugins.cisco.device_manager service_vm_lib networking_cisco.plugins.cisco.device_manager.hosting_device_drivers.csr1kv_hd_driver CSR1kvHostingDeviceDriver neutron.tests base N/A LOG N/A N/A logging getLogger __name__ N/A templates_path N/A N/A N/A N/A networking_cisco plugins __path__ N/A 0 /cisco/device_manager/configdrive_templates TestCSR1kvHostingDeviceDriver 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 TestCSR1kvHostingDeviceDriver self setUp N/A test_get_hosting_device_name N/A N/A self N/A N/A N/A driver N/A CSR1kvHostingDeviceDriver N/A N/A N/A self assertEqual N/A N/A driver hosting_device_name CSR1kv N/A test_create_config N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override templates_path templates_path general N/A credentials_info N/A user_name password bob tooEasy N/A fake_mgmt_port N/A fixed_ips N/A N/A ip_address 10.0.0.55 N/A connectivity_info N/A mgmt_port netmask gateway_ip name_server_1 name_server_2 fake_mgmt_port 255.255.255.0 10.0.0.1 8.8.8.8 8.8.4.4 N/A driver N/A CSR1kvHostingDeviceDriver N/A context_mock N/A N/A mock MagicMock N/A res N/A N/A driver create_config context_mock credentials_info connectivity_info N/A N/A N/A self assertEqual N/A len res 1 N/A N/A N/A self assertIn iosxe_config.txt res N/A line_set N/A item N/A item N/A N/A N/A res N/A iosxe_config.txt split N/A N/A N/A self assertIn username bob priv 15 secret tooEasy line_set N/A N/A N/A self assertIn  ip address 10.0.0.55 255.255.255.0 line_set N/A N/A N/A self assertIn ip route 0.0.0.0 0.0.0.0 GigabitEthernet1 10.0.0.1 line_set N/A N/A N/A self assertIn ip name-server 8.8.8.8 line_set N/A test_create_config_template_not_found N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override templates_path templates_path general N/A N/A N/A N/A cfg CONF set_override csr1kv_configdrive_template wrong_name.cfg hosting_devices N/A credentials_info N/A user_name password bob tooEasy N/A fake_mgmt_port N/A fixed_ips N/A N/A ip_address 10.0.0.55 N/A connectivity_info N/A mgmt_port netmask gateway_ip name_server_1 name_server_2 fake_mgmt_port 255.255.255.0 10.0.0.1 8.8.8.8 8.8.4.4 N/A driver N/A CSR1kvHostingDeviceDriver N/A context_mock N/A N/A mock MagicMock N/A N/A N/A self assertRaises IOError N/A driver create_config context_mock credentials_info connectivity_info N/A N/A