From 1016979d40b7a1eabbe2f6268e502aa005e9b535 Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Mon, 18 Sep 2017 10:58:02 -0400 Subject: Update Opendaylight features for fdio scenarios Use new features string for ODL nitrogen/oxygen versions Change-Id: Ie8b284f64bd6491c389129d8afdaeae8a399b607 Signed-off-by: Feng Pan (cherry picked from commit ccec1c70f61cca2cf3249ec29ad2c6ab576c1d96) --- puppet/extraconfig/all_nodes/vpp-admin-ip.yaml | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 puppet/extraconfig/all_nodes/vpp-admin-ip.yaml (limited to 'puppet/extraconfig') diff --git a/puppet/extraconfig/all_nodes/vpp-admin-ip.yaml b/puppet/extraconfig/all_nodes/vpp-admin-ip.yaml new file mode 100644 index 00000000..6627d70c --- /dev/null +++ b/puppet/extraconfig/all_nodes/vpp-admin-ip.yaml @@ -0,0 +1,40 @@ +heat_template_version: ocata + +description: Configure hieradata for Network Cisco configuration + +parameters: + # Parameters passed from the parent template + server: + type: string + +resources: + VppCtlplaneIp: + type: OS::Neutron::Port + properties: + network: ctlplane + name: 'VPP IP' + replacement_policy: AUTO + + VppAdminIpConfig: + type: OS::Heat::StructuredConfig + properties: + group: hiera + config: + datafiles: + vpp_data: + map_merge: + - vpp_ctlplane_cidr: + list_join: + - '' + - - {get_attr: [VppCtlplaneIp, fixed_ips, 0, ip_address]} + - '/' + - {str_split: ['/', {get_attr: [VppCtlplaneIp, subnets, 0, cidr]}, 1]} + + VppAdminIpDeployment: + type: OS::Heat::SoftwareDeployment + depends_on: VppCtlplaneIp + properties: + name: VppAdminIpDeployment + config: {get_resource: VppAdminIpConfig} + server: {get_param: server} + actions: ['CREATE'] # Only do this on CREATE -- cgit 1.2.3-korg