Give neutron ports names: $HOSTNAME_$NETWORKNAME

Set the name property of neutron ports created for
composable networks to:
 $HOSTNAME_$NETWORKNAME

This is helpful when troubleshooting, a simple port
list will tell us what port and ip is assigned to the
different overcloud nodes.

Change-Id: I9d067654a81826d79574d17bd073747b2f59d114
This commit is contained in:
Harald Jensås 2018-07-06 21:25:59 +02:00
parent 445d45384e
commit 80d154d709

@ -411,6 +411,11 @@ resources:
{{network.name}}Port:
type: OS::TripleO::{{role.name}}::Ports::{{network.name}}Port
properties:
PortName:
list_join:
- '_'
- - {get_attr: [{{server_resource_name}}, name]}
- {{network.name}}
ControlPlaneIP: {get_attr: [{{server_resource_name}}, networks, ctlplane, 0]}
FixedIPs:
if: