[openstack-dev] [heat][neutron] allowed_address_pairs does not work
Jay Lau
jay.lau.513 at gmail.com
Tue Mar 3 14:41:05 UTC 2015
Hi,
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.
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?
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?
[root at prsdemo2 ~]# cat port-3.yaml
heat_template_version: 2013-05-23
description: >
HOT template to create a new neutron network plus a router to the public
network, and for deploying two servers into the new network. The template
also
assigns floating IP addresses to each server so they are routable from the
public network.
resources:
server1_port:
type: OS::Neutron::Port
properties:
allowed_address_pairs:
- mac_address: "fa:16:3e:05:d5:9f"
ip_address: "192.168.0.58"
network: "demonet"
[root at prsdemo2 ~]# heat stack-create -f ./port-3.yaml p3
+--------------------------------------+------------+--------------------+----------------------+
| id | stack_name | stack_status |
creation_time |
+--------------------------------------+------------+--------------------+----------------------+
| 234d512c-4c90-4d4e-8d1c-ccf272254477 | p3 | CREATE_IN_PROGRESS |
2015-03-03T14:35:49Z |
+--------------------------------------+------------+--------------------+----------------------+
[root at prsdemo2 ~]# heat stack-list
+--------------------------------------+------------+-----------------+----------------------+
| id | stack_name | stack_status |
creation_time |
+--------------------------------------+------------+-----------------+----------------------+
| 234d512c-4c90-4d4e-8d1c-ccf272254477 | p3 | CREATE_COMPLETE |
2015-03-03T14:35:49Z |
+--------------------------------------+------------+-----------------+----------------------+
[root at prsdemo2 ~]# neutron port-list
+--------------------------------------+------------------------------------------+-------------------+-------------------------------------------------------------------------------------+
| id |
name | mac_address |
fixed_ips
|
+--------------------------------------+------------------------------------------+-------------------+-------------------------------------------------------------------------------------+
| 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"} |
+--------------------------------------+------------------------------------------+-------------------+-------------------------------------------------------------------------------------+
--
Thanks,
Jay Lau (Guangya Liu)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150303/5c3cf267/attachment.html>
More information about the OpenStack-dev
mailing list