def test_dvs_create_session(self, fake_init): dvs_utils.dvs_create_session() fake_init.assert_called_once_with(cfg.CONF.dvs.host_ip, cfg.CONF.dvs.host_username, cfg.CONF.dvs.host_password, cfg.CONF.dvs.api_retry_count, cfg.CONF.dvs.task_poll_interval, port=cfg.CONF.dvs.host_port, cacert=cfg.CONF.dvs.ca_file, insecure=cfg.CONF.dvs.insecure)
def __init__(self): """Initializer. A global session with the VC will be established. NOTE: the DVS port group name will be the Neutron network UUID. """ self._session = dvs_utils.dvs_create_session()
def __init__(self): """Initializer. A global session with the VC will be established. In addition to this the moref of the configured DVS will be learnt. This will be used in the operations supported by the manager. NOTE: the DVS port group name will be the Neutron network UUID. """ self._session = dvs_utils.dvs_create_session() # In the future we may decide to support more than one DVS self._dvs_moref = self._get_dvs_moref(self._session, dvs_utils.dvs_name_get())