def __init__(self, **device_params):
     try:
         self._host_ip = device_params['management_ip_address']
         self._host_ssh_port = device_params['protocol_port']
         credentials = device_params.get('credentials', {})
         self._username = credentials.get('user_name')
         self._password = credentials.get('password')
         self._timeout = (device_params.get('timeout') or
                          cfg.CONF.cfg_agent.device_connection_timeout)
         self._ncc_connection = None
         self._itfcs_enabled = False
     except KeyError as e:
         LOG.error("Missing device parameter:%s. Aborting "
                   "IosXeRoutingDriver initialization", e)
         raise cfg_exc.InitializationException()
 def __init__(self, **device_params):
     try:
         self._csr_host = device_params['management_ip_address']
         self._csr_ssh_port = device_params['protocol_port']
         credentials = device_params['credentials']
         if credentials:
             self._csr_user = credentials['user_name']
             self._csr_password = credentials['password']
         self._timeout = (device_params['timeout'] or
                          cfg.CONF.cfg_agent.device_connection_timeout)
         self._csr_conn = None
         self._intfs_enabled = False
     except KeyError as e:
         LOG.error(_LE("Missing device parameter:%s. Aborting "
                     "CSR1kvRoutingDriver initialization"), e)
         raise cfg_exc.InitializationException()