Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-dpdk.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Neutron Compute OpenContrail plugin
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   NeutronMetadataProxySharedSecret:
34     description: Shared secret to prevent spoofing
35     type: string
36     hidden: true
37   ContrailVrouterPhysicalInterface:
38     default: 'eth0'
39     description: vRouter physical interface
40     type: string
41   ContrailVrouterGateway:
42     default: '192.168.24.1'
43     description: vRouter default gateway
44     type: string
45   ContrailVrouterNetmask:
46     default: '255.255.255.0'
47     description: vRouter netmask
48     type: string
49
50 resources:
51   ContrailBase:
52     type: ./contrail-base.yaml
53     properties:
54       ServiceData: {get_param: ServiceData}
55       ServiceNetMap: {get_param: ServiceNetMap}
56       DefaultPasswords: {get_param: DefaultPasswords}
57       EndpointMap: {get_param: EndpointMap}
58       RoleName: {get_param: RoleName}
59       RoleParameters: {get_param: RoleParameters}
60
61 outputs:
62   role_data:
63     description: Role data for the Neutron Compute OpenContrail plugin
64     value:
65       service_name: contrail_dpdk
66       config_settings:
67         map_merge:
68           - get_attr: [ContrailBase, role_data, config_settings]
69           - contrail::vrouter::host_ip: {get_param: [ServiceNetMap, ContrailVrouterNetwork]}
70             contrail::vrouter::is_dpdk: 'true'
71             contrail::vrouter::physical_interface: {get_param: ContrailVrouterPhysicalInterface}
72             contrail::vrouter::gateway: {get_param: ContrailVrouterGateway}
73             contrail::vrouter::netmask: {get_param: ContrailVrouterNetmask}
74             contrail::vrouter::metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
75             tripleo.neutron_compute_plugin_opencontrail.firewall_rules:
76               '111 neutron_compute_plugin_opencontrail proxy':
77                 dport:
78                   - 8097
79                   - 8085
80                 proto: tcp
81       step_config: |
82         include ::tripleo::network::contrail::vrouter