Browse Source

Add environment file for Mellanox SDN

Depends-On: I805bdfc6f2bed8f998f73d3e17a4c2ab493f5717
Change-Id: I2a8f66b2f3b2f5e9eb3542bd7a1ab7bb4d1ba90d
changes/07/550507/6
Hamdy Khader 4 years ago
parent
commit
e4c1531a42
  1. 14
      environments/neutron-ml2-mlnx-sdn.yaml
  2. 1
      overcloud-resource-registry-puppet.j2.yaml
  3. 74
      puppet/services/neutron-plugin-ml2-mlnx-sdn-assist.yaml

14
environments/neutron-ml2-mlnx-sdn.yaml

@ -0,0 +1,14 @@
# A Heat environment file which can be used to configure Mellanox SDN
resource_registry:
OS::TripleO::Services::NeutronCorePlugin: OS::TripleO::Services::NeutronCorePluginMLNXSDN
parameter_defaults:
MlnxSDNUsername: 'sdn_username'
#MlnxSDNPassword:
MlnxSDNUrl: 'sdn_url'
MlnxSDNDomain: 'cloudx'
NeutronCorePlugin: 'neutron.plugins.ml2.plugin.Ml2Plugin'
NeutronMechanismDrivers: 'mlnx_sdn_assist,sriovnicswitch,openvswitch'

1
overcloud-resource-registry-puppet.j2.yaml

@ -173,6 +173,7 @@ resource_registry:
OS::TripleO::Services::OVNDBs: OS::Heat::None
OS::TripleO::Services::OVNController: OS::Heat::None
OS::TripleO::Services::NeutronCorePluginMLNXSDN: puppet/services/neutron-plugin-ml2-mlnx-sdn-assist.yaml
OS::TripleO::Services::NeutronCorePluginMidonet: puppet/services/neutron-midonet.yaml
OS::TripleO::Services::NeutronCorePluginVTS: puppet/services/neutron-plugin-ml2-cisco-vts.yaml
OS::TripleO::Services::NeutronOvsAgent: docker/services/neutron-ovs-agent.yaml

74
puppet/services/neutron-plugin-ml2-mlnx-sdn-assist.yaml

@ -0,0 +1,74 @@
heat_template_version: queens
description: >
MLNX SDN configuration assist for Neutron ML2 Plugin.
parameters:
MlnxSDNUsername:
description: The username for the SDN server.
type: string
MlnxSDNPassword:
type: string
description: The password for the SDN server.
hidden: true
MlnxSDNUrl:
description: SDN server URL
type: string
MlnxSDNDomain:
description: SDN server domain
type: string
default: 'cloudx'
ServiceData:
default: {}
description: Dictionary packing service data
type: json
ServiceNetMap:
default: {}
description: Mapping of service_name -> network name. Typically set
via parameter_defaults in the resource registry. This
mapping overrides those in ServiceNetMapDefaults.
type: json
DefaultPasswords:
default: {}
type: json
RoleName:
default: ''
description: Role name on which the service is applied
type: string
RoleParameters:
default: {}
description: Parameters specific to the role
type: json
EndpointMap:
default: {}
description: >
Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
resources:
NeutronMl2Base:
type: ./neutron-plugin-ml2.yaml
properties:
ServiceData: {get_param: ServiceData}
ServiceNetMap: {get_param: ServiceNetMap}
DefaultPasswords: {get_param: DefaultPasswords}
EndpointMap: {get_param: EndpointMap}
RoleName: {get_param: RoleName}
RoleParameters: {get_param: RoleParameters}
outputs:
role_data:
description: Role data for the MLNX SDN ML2 Plugin.
value:
service_name: neutron_plugin_ml2_mlnx_sdn_assist
config_settings:
map_merge:
- get_attr: [NeutronMl2Base, role_data, config_settings]
- neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_username: {get_param: MlnxSDNUsername}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_password: {get_param: MlnxSDNPassword}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_url: {get_param: MlnxSDNUrl}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_domain: {get_param: MlnxSDNDomain}
step_config: |
include ::tripleo::profile::base::neutron::plugins::ml2
Loading…
Cancel
Save