[Openstack] Neutron port-create command
Ageeleshwar Kandavelu
Ageeleshwar.Kandavelu at csscorp.com
Wed Jan 8 04:33:05 UTC 2014
Lets say I do not want to launch nova instances that connect to a port. I want to introduce a service that binds to that port similar to dnsmasq. How do I make neutron perform this for me.
________________________________________
From: jonathan.proulx at gmail.com [jonathan.proulx at gmail.com] on behalf of Jonathan Proulx [jon at jonproulx.com]
Sent: Tuesday, January 07, 2014 8:33 PM
To: Ageeleshwar Kandavelu
Cc: openstack at lists.openstack.org
Subject: Re: [Openstack] Neutron port-create command
On Tue, Jan 7, 2014 at 12:22 AM, Ageeleshwar Kandavelu
<Ageeleshwar.Kandavelu at csscorp.com> wrote:
> I am using neutron openvswitch plugin. I successfully created a port using
> neutron port-create, but I do not see the newly created port when I do
> 'ovs-vsctl show'. Is it that the port created is just a logical entity that
> just exists only in DB and only when a VM is launched It is created in
> openvswitch?
port-create creates the port in the database, it's on a 'real thing'
until it is associated with an instance. At that point you can see it
in ovs tools.
Note you don't need to create ports if you associate in instance with
a network it will dynamically create ports that are removed on shut
down. This is the more 'normal' use case. I use port-create to get
static MAC addresses for certain node locked software services (flexlm
license server in my case), there are likely other uses and I wouldn't
be surprised if using pre defined ports could shave a few seconds off
start up times, but not personally certain about that.
-Jon
http://www.csscorp.com/common/email-disclaimer.php
More information about the Openstack
mailing list