allow_address_pair how to set

30 views
Skip to first unread message

bruno darrigues

unread,
Sep 22, 2018, 6:31:08 PM9/22/18
to cloudify-users
hi


  my-openstack-port:
    type: cloudify.openstack.nodes.Port
    properties:
      port:
        allowed_address_pairs: '192.168.121.0/24'

i declare : 

    type: cloudify.openstack.nodes.Port
    properties:
      openstack_config: *openstack_config
      port:
       allowed_address_pairs: '0.0.0.0/0'


and i have got this error at install execution : 

Error message: {"NeutronError": {"message": "Allowed address pairs must be a list.", "type": "HTTPBadRequest", "detail": ""}}


so how to set allow_address_pairs ?


regards
Bruno
Message has been deleted

Trammell -

unread,
Sep 23, 2018, 3:12:55 AM9/23/18
to cloudify-users
Hi the docs seems to be mistaken. I will correct that.

For your example, you should do something like this:

  port:
    type: cloudify.openstack.nodes.Port
    properties:
      openstack_config: *openstack_config
      port:
       allowed_address_pairs: [ {"ip_address": "0.0.0.0", "mac_address": {get_input: my_mac_address } }]


bruno darrigues

unread,
Sep 23, 2018, 3:53:20 AM9/23/18
to cloudify-users
many thanks trammell, it works better ;-)

but how to set the mac adress generated for this port by cloudify ?

bruno darrigues

unread,
Sep 24, 2018, 9:43:43 AM9/24/18
to cloudify-users
can i use ?
client_port
      port:
       allowed_address_pairs: [ {"ip_address": "0.0.0.0", "mac_address": @{client_port, mac_address } }]

Trammell -

unread,
Sep 25, 2018, 9:17:08 AM9/25/18
to cloudify-users
I do not think that will work. According to Openstack's API docs, the mac_address key is not required.
Reply all
Reply to author
Forward
0 new messages