<div dir="ltr"><div>Yes, reference is a problem. I see that we already have a resource OS::Neutron::Port , but the problem is that we need to specify MAC & IP manually for this resource and it is difficult to use this resource in a autoscaling group.<br><br><a href="https://github.com/openstack/heat-templates/blob/master/cfn/F17/Neutron.template" target="_blank">https://github.com/openstack/heat-templates/blob/master/cfn/F17/Neutron.template</a><br><br></div><div>I will try to file a bp to see if we can introduce a new source such as OS::Heat::PortPool etc to heat.<br></div><div><br></div>Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-27 13:30 GMT+08:00 Qiming Teng <span dir="ltr"><<a href="mailto:tengqim@linux.vnet.ibm.com" target="_blank">tengqim@linux.vnet.ibm.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jan 27, 2015 at 10:34:47AM +0800, Jay Lau wrote:<br>
> 2015-01-27 10:28 GMT+08:00 Qiming Teng <<a href="mailto:tengqim@linux.vnet.ibm.com">tengqim@linux.vnet.ibm.com</a>>:<br>
><br>
> > On Tue, Jan 27, 2015 at 10:13:59AM +0800, Jay Lau wrote:<br>
> > > Greetings,<br>
> > ><br>
> > > I have a question related to MAC and IP binding, I know that we can<br>
> > create<br>
> > > a port to bind a private IP and MAC together then create VM using this<br>
> > > specified port to make sure the VM can use the the IP and MAC in this<br>
> > port.<br>
> > > This can make sure one VM can have IP and MAC as customer required.<br>
> > ><br>
> > > The problem is how to handle this in HEAT, I can create a pool of neutron<br>
> > > ports which have a list of MAC&IP biniding, then I want to create a stack<br>
> ><br>
> > Who maintains that pool? Is the maintainer providing an API for port<br>
> > allocation? Or ... the pool itself is a new resource type?<br>
> ><br>
> The pool was created by a tenant user as heat do not have such kind of<br>
> resource type for now.  Once the pool was created, I want to use the ports<br>
> in my stack resources.<br>
<br>
</span>Are you considering propose a spec to add that kind of a resource type<br>
to Heat? Or you can try generating such a pool using ResourceGroup?<br>
Then the question becomes referencing a member from a ResourceGroup, I<br>
think.<br>
<br>
Regards,<br>
  Qiming<br>
<div class="HOEnZb"><div class="h5"><br>
> ><br>
> > Regards,<br>
> >   Qiming<br>
> ><br>
> > > with heat to use the ports that I created before to make sure all VMs in<br>
> > > the stack can have the IP&MAC specified in my port pool, I did not find a<br>
> > > solution for this, does anyone can give some suggestions for how to<br>
> > > configure this in heat template to achieve this goal?<br>
> > ><br>
> > > --<br>
> > > Thanks,<br>
> > ><br>
> > > Jay Lau (Guangya Liu)<br>
> ><br>
> > ><br>
> > __________________________________________________________________________<br>
> > > OpenStack Development Mailing List (not for usage questions)<br>
> > > Unsubscribe:<br>
> > <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> > > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> ><br>
> ><br>
> > __________________________________________________________________________<br>
> > OpenStack Development Mailing List (not for usage questions)<br>
> > Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> Thanks,<br>
><br>
> Jay Lau (Guangya Liu)<br>
<br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thanks,<br><br></div>Jay Lau (Guangya Liu)<br></div></div></div></div>
</div>