Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / neutron-plugin-ml2-fujitsu-cfab.yaml
1 heat_template_version: pike
2
3 description: >
4   Configure hieradata for Fujitsu C-Fabric plugin configuration
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   NeutronFujitsuCfabAddress:
34     description: 'The address of the C-Fabric to telnet to.'
35     type: string
36   NeutronFujitsuCfabUserName:
37     description: 'The C-Fabric username to use.'
38     type: string
39   NeutronFujitsuCfabPassword:
40     description: 'The C-Fabric password to use.'
41     type: string
42     hidden: true
43   NeutronFujitsuCfabPhysicalNetworks:
44     description: 'List of <physical_network>:<vfab_id> tuples specifying physical_network names and corresponding vfab ids.'
45     type: comma_delimited_list
46     default: ''
47   NeutronFujitsuCfabSharePprofile:
48     description: '"Whether to share a C-Fabric pprofile among Neutron ports using the same VLAN ID.'
49     type: boolean
50     default: false
51   NeutronFujitsuCfabPprofilePrefix:
52     description: 'The prefix string for pprofile name.'
53     type: string
54     default: ''
55   NeutronFujitsuCfabSaveConfig:
56     description: 'Whether to save configuration.'
57     type: boolean
58     default: true
59
60 resources:
61
62   NeutronMl2Base:
63     type: ./neutron-plugin-ml2.yaml
64     properties:
65       ServiceData: {get_param: ServiceData}
66       ServiceNetMap: {get_param: ServiceNetMap}
67       DefaultPasswords: {get_param: DefaultPasswords}
68       EndpointMap: {get_param: EndpointMap}
69       RoleName: {get_param: RoleName}
70       RoleParameters: {get_param: RoleParameters}
71
72 outputs:
73   role_data:
74     description: Role data for Fujitsu Cfab ML2 Driver
75     value:
76       service_name: neutron_plugin_ml2_fujitsu_cfab
77       config_settings:
78         map_merge:
79           - get_attr: [NeutronMl2Base, role_data, config_settings]
80           - neutron::plugins::ml2::fujitsu::cfab::address: {get_param: NeutronFujitsuCfabAddress}
81             neutron::plugins::ml2::fujitsu::cfab::username: {get_param: NeutronFujitsuCfabUserName}
82             neutron::plugins::ml2::fujitsu::cfab::password: {get_param: NeutronFujitsuCfabPassword}
83             neutron::plugins::ml2::fujitsu::cfab::physical_networks: {get_param: NeutronFujitsuCfabPhysicalNetworks}
84             neutron::plugins::ml2::fujitsu::cfab::share_pprofile: {get_param: NeutronFujitsuCfabSharePprofile}
85             neutron::plugins::ml2::fujitsu::cfab::pprofile_prefix: {get_param: NeutronFujitsuCfabPprofilePrefix}
86             neutron::plugins::ml2::fujitsu::cfab::save_config: {get_param: NeutronFujitsuCfabSaveConfig}
87       step_config: |
88         include ::tripleo::profile::base::neutron::plugins::ml2