Esempio n. 1
0
 def _validate_config(self):
     if cfg.CONF.ml2_arista.get('eapi_host') == '':
         msg = _('Required option eapi_host is not set')
         LOG.error(msg)
         raise arista_exc.AristaConfigError(msg=msg)
     if cfg.CONF.ml2_arista.get('eapi_username') == '':
         msg = _('Required option eapi_username is not set')
         LOG.error(msg)
         raise arista_exc.AristaConfigError(msg=msg)
Esempio n. 2
0
 def _validate_config(self):
     if not self.sg_enabled:
         return
     if len(cfg.CONF.ml2_arista.get('switch_info')) < 1:
         msg = _('Required option - when "sec_group_support" is enabled, '
                 'at least one switch must be specified ')
         LOG.exception(msg)
         raise arista_exc.AristaConfigError(msg=msg)