git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openstack] How to make Neutron select a specific subnet when boot an instance


Hi there,

I have one question about choosing a specific subnet when boot a vm. My
OpenStack cluster is in Queens and I have multiple subnets in one network.
What I want is when I issue a boot command the instance only gets ip from
one subnet by default. I know there is a way to achieve that by creating a
port with --fixed-ip subnet=xxx then pass the port id to boot command.
Wondering if there is another way that does not need manually create the
port? Is there any configuration I can do to make it default for Neutron to
only pick one subnet from a network in boot?

Thanks for any help.

Best regards,
Hang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180709/8e08e199/attachment.html>



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/openstack/msg39913.html on line 87
Call Stack
#TimeMemoryFunctionLocation
10.0005363512{main}( ).../msg39913.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/openstack/msg39913.html on line 87
Call Stack
#TimeMemoryFunctionLocation
10.0005363512{main}( ).../msg39913.html:0