<div dir="ltr">If you're using PCI passhtrough with direct passthrough you shouldn't be hit by ARP spoofing protection so even though it assigns an IP you could in theory use any IP. If you need to allow a single IP to be allowed on multiple ports you can use allowed address pairs functionality. From what I understand you want to make sure it only assigns a single IP such that you aren't wasting an IP allocation?<div><br></div><div>Looking at the <a href="http://developer.openstack.org/api-ref-networking-v2.html#createPort">Neutron API specs</a> it looks like only providing a network id and not a subnetid should work, but it still assigns an IP automatically.</div><div>Using the CLI I tried to create a Neutron port without an IP but wasn't successful either. It seems to always assign an IP. For reference:</div><div>neutron --debug port-create e33d8ee8-92e1-48e4-be5e-91573e731e27 --name test_net_only<br></div><div><div>curl -g -i -X POST <a href="http://192.168.0.13:9696/v2.0/ports.json">http://192.168.0.13:9696/v2.0/ports.json</a> </div><div>'{"port": {"network_id": "e33d8ee8-92e1-48e4-be5e-91573e731e27", "name": "test_net_only", "admin_state_up": true}}'</div></div><div><div>RESP BODY: {"port": {"status": "DOWN", "binding:host_id": "", "allowed_address_pairs": [], "dns_assignment": [{"hostname": "host-192-168-111-12", "ip_address": "192.168.111.12", "fqdn": "host-192-168-111-12.openstacklocal."}], "device_owner": "", "binding:profile": {}, "port_security_enabled": true, "fixed_ips": [{"subnet_id": "fee4c6f2-d67e-43d5-b8a1-0f64c8775a39", "ip_address": "192.168.111.12"}], "id": "17926156-e7f8-4c00-bab8-8990d7df937c", "security_groups": ["62a33f63-bfae-4bd9-8662-507136d7598b"], "device_id": "", "name": "test_net_only", "admin_state_up": true, "network_id": "e33d8ee8-92e1-48e4-be5e-91573e731e27", "dns_name": "", "binding:vif_details": {}, "binding:vnic_type": "normal", "binding:vif_type": "unbound", "tenant_id": "4a79550e40794812b070db605728f734", "mac_address": "fa:16:3e:e8:2d:70"}}</div></div><div><br></div><div>Maybe somebody else knows how to create a port without assigning a subnet / fixed IP address.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 9:45 PM, Brent Troge <span dir="ltr"><<a href="mailto:brenttroge2016@gmail.com" target="_blank">brenttroge2016@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>I want to create a bond within my guest VM and trying to understand how to <br></div>create my neutron ports without allocating an IP for each VF created. <br></div>I just need one IP allocated instead of each VF(neutron port) being allocated an IP.<br><br></div>I do not see anything within the neutron port api which supports something like: 'no-ip-allocation;<br><br></div></div>I am expecting something like the below.. See my made up property under 'sriov_port2'<br><div><pre><span>resources</span><span>:</span>
  <span>sriov_port</span><span>1:</span>
    <span>type</span><span>:</span> <span>OS::Neutron::Port</span>
    <span>properties</span><span>:</span>
      <span>network</span><span>:</span> <span>{</span> <span>get_param</span><span>:</span> <span>my_net</span> <span>}</span>
      <span>vnic_type</span><span>:</span> <span>direct</span><span></span><span></span>
  <span>sriov_port</span><span>2:</span>
    <span>type</span><span>:</span> <span>OS::Neutron::Port</span>
    <span>properties</span><span>:</span>
      <span>network</span><span>:</span> <span>{</span> <span>get_param</span><span>:</span> <span>my_net</span> <span>}</span>
      <span>vnic_type</span><span>:</span> <span>direct<br>      fixed-ip: false<br></span></pre></div></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>