<div dir="ltr"><div><div><div><div><br clear="all"></div>Hi,<br><br></div>I see that the neutron port resource has a property named as allowed_address_pairs and I tried to use this property to create a port, but seems it does not working.<br><br></div>I want to create a port with mac as fa:16:3e:05:d5:9f and ip as 192.168.0.58, but after create with a heat template, the final neutron port mac is fa:16:3e:01:45:bb and ip is 192.168.0.62, can someone show me where is wrong in my configuration?<br><br></div>Also allowed_address_pairs is a list, does it means that I can create a port with multiple mac and ip address, if this is the case, then when create a VM with this port, does it mean that the VM can have multiple mac&ip?<br><div><div><br>[root@prsdemo2 ~]# cat port-3.yaml <br>heat_template_version: 2013-05-23<br> <br>description: ><br>  HOT template to create a new neutron network plus a router to the public<br>  network, and for deploying two servers into the new network. The template also<br>  assigns floating IP addresses to each server so they are routable from the<br>  public network.<br> <br>resources:<br> <br>  server1_port:<br>    type: OS::Neutron::Port<br>    properties:<br>      allowed_address_pairs:<br>        - mac_address: "fa:16:3e:05:d5:9f"<br>          ip_address: "192.168.0.58"<br>      network: "demonet"<br>[root@prsdemo2 ~]# heat stack-create -f ./port-3.yaml p3<br>+--------------------------------------+------------+--------------------+----------------------+<br>| id                                   | stack_name | stack_status       | creation_time        |<br>+--------------------------------------+------------+--------------------+----------------------+<br>| 234d512c-4c90-4d4e-8d1c-ccf272254477 | p3         | CREATE_IN_PROGRESS | 2015-03-03T14:35:49Z |<br>+--------------------------------------+------------+--------------------+----------------------+<br>[root@prsdemo2 ~]# heat stack-list<br>+--------------------------------------+------------+-----------------+----------------------+<br>| id                                   | stack_name | stack_status    | creation_time        |<br>+--------------------------------------+------------+-----------------+----------------------+<br>| 234d512c-4c90-4d4e-8d1c-ccf272254477 | p3         | CREATE_COMPLETE | 2015-03-03T14:35:49Z |<br>+--------------------------------------+------------+-----------------+----------------------+<br>[root@prsdemo2 ~]# neutron port-list<br>+--------------------------------------+------------------------------------------+-------------------+-------------------------------------------------------------------------------------+<br>| id                                   | name                                     | mac_address       | fixed_ips                                                                           |<br>+--------------------------------------+------------------------------------------+-------------------+-------------------------------------------------------------------------------------+<br>| 8d20b3a4-024a-4613-9d26-3d49534a839c | p3-server1_port-op3w5yzyks5i             | fa:16:3e:01:45:bb | {"subnet_id": "4e7b6983-7364-4a71-8d9c-580d88fd4797", "ip_address": "192.168.0.62"} |<br>+--------------------------------------+------------------------------------------+-------------------+-------------------------------------------------------------------------------------+<br><br><div><div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Thanks,<br><br></div>Jay Lau (Guangya Liu)<br></div></div></div></div>
</div></div></div></div></div>