示例#1
0
 def create_subnet(self, context, subnet):
     subnet['subnet']['status'] = constants.STATUS_PENDING_CREATE
     new_subnet = super(HdnNeutronPlugin, self).create_subnet(
         context, subnet)
     # Notify HDN operators
     hdnlib.notify_subnet_create(new_subnet)
     LOG.debug("Queued request to create subnet: %s", new_subnet['id'])
     return new_subnet
示例#2
0
文件: plugin.py 项目: vj17/hdn
 def create_subnet(self, context, subnet):
     subnet['subnet']['status'] = constants.STATUS_PENDING_CREATE
     new_subnet = super(HdnNeutronPlugin, self).create_subnet(
         context, subnet)
     registry.notify(resources.SUBNET, events.AFTER_CREATE, self,
                     tenant_id=context.tenant_id,
                     resource_id=new_subnet['id'])
     # Notify HDN operators
     hdnlib.notify_subnet_create(new_subnet)
     LOG.debug("Queued request to create subnet: %s", new_subnet['id'])
     return new_subnet