[Openstack] Network API: how to set fixed MAC address
Jeffrey Nguyen (jeffrngu)
jeffrngu at cisco.com
Tue Apr 15 03:29:25 UTC 2014
Added the alias backā¦
From: jeffrngu <jeffrngu at cisco.com<mailto:jeffrngu at cisco.com>>
Date: Monday, April 14, 2014 8:27 PM
To: Aaron Segura <aaron.segura at gmail.com<mailto:aaron.segura at gmail.com>>, "zhiyanl at cn.ibm.com<mailto:zhiyanl at cn.ibm.com>" <zhiyanl at cn.ibm.com<mailto:zhiyanl at cn.ibm.com>>
Subject: Re: [Openstack] Network API: how to set fixed MAC address
Thanks Aaron. I think this could potentially be used as a work-around if there's no API support for setting MAC addr. I saw a commit that seems like the feature I'm looking for:
https://review.openstack.org/#/c/23892/ (I'm copying Zhi who is the committer for this patch).
Zhi,
Could you please confirm if https://review.openstack.org/#/c/23892/ is used for setting fix MAC addr when invoking API to create new server? If so, could you give an example JSON payload where you set the MAC address? I checked the changes you submitted but did not find any payload with MAC address. Also, could you confirm which release of OpenStack has your patch? I'm currently using http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html to create new server with fixed IP and subnet.
Thanks,
-Jeffrey
From: Aaron Segura <aaron.segura at gmail.com<mailto:aaron.segura at gmail.com>>
Date: Monday, April 14, 2014 5:15 PM
To: jeffrngu <jeffrngu at cisco.com<mailto:jeffrngu at cisco.com>>
Subject: Re: [Openstack] Network API: how to set fixed MAC address
Not sure if this will work for you, but you can create a port beforehand with the required info and specify port-id on boot instead of net-id:
# neutron port-create --fixed-ip ip_address=x.x.x.x --mac-address aa:bb:cc:dd:ee:ff my_network
# nova boot ... --nic port-id=<portid>
those are cmdline examples, but you get the idea...
On Mon, Apr 14, 2014 at 7:23 PM, Jeffrey Nguyen (jeffrngu) <jeffrngu at cisco.com<mailto:jeffrngu at cisco.com>> wrote:
Hi,
I'm new to this mailing list, please feel free to direct my question to appropriate list if this is not the right one.
I'm currently using http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html to launch an instance on OpenStack with an attached network uuid and fixed IP address. I was wondering if there's any API available to set fixed MAC address in addition to network UUID and fixed IP. Ideally, I'd like to set all three parameters (network UUID, fixed IP, and MAC addr) in the same API call.
Thanks,
-Jeffrey
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140415/04d7e0ac/attachment.html>
More information about the Openstack
mailing list