[openstack-dev] FW: [Openstack] Network API: how to set fixed MAC address

Jeffrey Nguyen (jeffrngu) jeffrngu at cisco.com
Thu Apr 17 18:30:16 UTC 2014


Hi Devs,

I'm not getting any answer for my questions from the openstack general alias for my question about the new enhancement done by Zhi Yan Liu (copied again below).  Does anyone here know the answers or know where to check in the code for this enhancement?

"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: jeffrngu <jeffrngu at cisco.com<mailto:jeffrngu at cisco.com>>
Date: Tuesday, April 15, 2014 3:52 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>>, "openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>" <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: Re: [Openstack] Network API: how to set fixed MAC address


I'm adding the alias back to see if anyone knows the answers for the questions I asked Zhi below.

Thanks,
-Jeffrey

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-dev/attachments/20140417/91b130fa/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140417/91b130fa/attachment.txt>


More information about the OpenStack-dev mailing list