Ejemplo n.º 1
0
 def create_servicechain_node_precommit(self, context):
     if context.current['service_profile_id'] is None:
         if context.current['service_type'] not in sc_supported_type:
             raise exc.InvalidServiceTypeForReferenceDriver()
     elif context.current['service_type']:
         LOG.warn(_('Both service_profile_id and service_type are'
                    'specified, service_type will be ignored.'))
Ejemplo n.º 2
0
 def create_service_profile_precommit(self, context):
     if context.current['service_type'] not in sc_supported_type:
         raise exc.InvalidServiceTypeForReferenceDriver()