<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi Devs,</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>"Zhi,</div>
<div>Could you please confirm if <a href="https://review.openstack.org/#/c/23892/">https://review.openstack.org/#/c/23892/</a> 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 <a href="http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html" target="_blank">http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html</a> 
 to create new server with fixed IP and subnet.</div>
<div>"</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Jeffrey</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>jeffrngu <<a href="mailto:jeffrngu@cisco.com">jeffrngu@cisco.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, April 15, 2014 3:52 PM<br>
<span style="font-weight:bold">To: </span>Aaron Segura <<a href="mailto:aaron.segura@gmail.com">aaron.segura@gmail.com</a>>, "<a href="mailto:zhiyanl@cn.ibm.com">zhiyanl@cn.ibm.com</a>" <<a href="mailto:zhiyanl@cn.ibm.com">zhiyanl@cn.ibm.com</a>>, "<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>"
 <<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack] Network API: how to set fixed MAC address<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div><br>
</div>
<div>I'm adding the alias back to see if anyone knows the answers for the questions I asked Zhi below.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Jeffrey</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>jeffrngu <<a href="mailto:jeffrngu@cisco.com">jeffrngu@cisco.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, April 14, 2014 8:27 PM<br>
<span style="font-weight:bold">To: </span>Aaron Segura <<a href="mailto:aaron.segura@gmail.com">aaron.segura@gmail.com</a>>, "<a href="mailto:zhiyanl@cn.ibm.com">zhiyanl@cn.ibm.com</a>" <<a href="mailto:zhiyanl@cn.ibm.com">zhiyanl@cn.ibm.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack] Network API: how to set fixed MAC address<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div><br>
</div>
<div>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: </div>
<div><a href="https://review.openstack.org/#/c/23892/">https://review.openstack.org/#/c/23892/</a> (I'm copying Zhi who is the committer for this patch).</div>
<div><br>
</div>
<div>Zhi,</div>
<div>Could you please confirm if <a href="https://review.openstack.org/#/c/23892/">https://review.openstack.org/#/c/23892/</a> 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 <a href="http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html" target="_blank">http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html</a> 
 to create new server with fixed IP and subnet.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Jeffrey</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Aaron Segura <<a href="mailto:aaron.segura@gmail.com">aaron.segura@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, April 14, 2014 5:15 PM<br>
<span style="font-weight:bold">To: </span>jeffrngu <<a href="mailto:jeffrngu@cisco.com">jeffrngu@cisco.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack] Network API: how to set fixed MAC address<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>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:
<div><br>
</div>
<div># neutron port-create --fixed-ip ip_address=x.x.x.x --mac-address aa:bb:cc:dd:ee:ff my_network</div>
<div># nova boot ... --nic port-id=<portid></div>
<div><br>
</div>
<div>those are cmdline examples, but you get the idea...</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Apr 14, 2014 at 7:23 PM, Jeffrey Nguyen (jeffrngu)
<span dir="ltr"><<a href="mailto:jeffrngu@cisco.com" target="_blank">jeffrngu@cisco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi,</div>
<div><br>
</div>
<div>I'm new to this mailing list, please feel free to direct my question to appropriate list if this is not the right one.</div>
<div><br>
</div>
<div>I'm currently using <a href="http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html" target="_blank">http://docs.openstack.org/api/openstack-compute/2/content/POST_createServer_v2__tenant_id__servers_CreateServers.html</a> 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.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Jeffrey </div>
</div>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></div>
</div>
</span></div>
</div>
</span>
</body>
</html>