Update opendaylight/neutron patch
[fuel.git] / mcp / patches / reclass-system-salt-model / 0001-Bring-in-opendaylight-support.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 Mirantis Inc., Enea AB and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Michael Polenchuk <mpolenchuk@mirantis.com>
10 Date: Thu, 29 Jun 2017 12:22:42 +0400
11 Subject: [PATCH] Bring in opendaylight support
12
13 Change-Id: I3efec9a8b586a6c75b1c1635ad2a7024d73d9ad2
14
15 diff --git a/neutron/control/opendaylight/cluster.yml b/neutron/control/opendaylight/cluster.yml
16 new file mode 100644
17 index 00000000..a32e7abb
18 --- /dev/null
19 +++ b/neutron/control/opendaylight/cluster.yml
20 @@ -0,0 +1,17 @@
21 +classes:
22 +- service.keepalived.cluster.single
23 +- service.haproxy.proxy.single
24 +- service.neutron.control.cluster
25 +- system.neutron.control.openvswitch.cluster
26 +parameters:
27 +  neutron:
28 +    server:
29 +      backend:
30 +        host: ${_param:opendaylight_service_host}
31 +        rest_api_port: 8282
32 +        user: admin
33 +        password: admin
34 +        ovsdb_connection: tcp:127.0.0.1:6639
35 +        mechanism:
36 +          ovs:
37 +            driver: opendaylight_v2
38 diff --git a/neutron/control/opendaylight/single.yml b/neutron/control/opendaylight/single.yml
39 new file mode 100644
40 index 00000000..053f14df
41 --- /dev/null
42 +++ b/neutron/control/opendaylight/single.yml
43 @@ -0,0 +1,15 @@
44 +classes:
45 +- service.neutron.control.single
46 +- system.neutron.control.openvswitch.single
47 +parameters:
48 +  neutron:
49 +    server:
50 +      backend:
51 +        host: ${_param:opendaylight_service_host}
52 +        rest_api_port: 8282
53 +        user: admin
54 +        password: admin
55 +        ovsdb_connection: tcp:127.0.0.1:6639
56 +        mechanism:
57 +          ovs:
58 +            driver: opendaylight_v2
59 diff --git a/neutron/gateway/opendaylight/single.yml b/neutron/gateway/opendaylight/single.yml
60 new file mode 100644
61 index 00000000..21690017
62 --- /dev/null
63 +++ b/neutron/gateway/opendaylight/single.yml
64 @@ -0,0 +1,7 @@
65 +classes:
66 +- service.neutron.gateway.single
67 +parameters:
68 +  neutron:
69 +    gateway:
70 +      backend:
71 +        ovsdb_connection: tcp:127.0.0.1:6639
72 diff --git a/opendaylight/server/single.yml b/opendaylight/server/single.yml
73 new file mode 100644
74 index 00000000..3d11872c
75 --- /dev/null
76 +++ b/opendaylight/server/single.yml
77 @@ -0,0 +1,2 @@
78 +classes:
79 +- service.opendaylight.server.single
80 diff --git a/reclass/storage/system/opendaylight_control_single.yml b/reclass/storage/system/opendaylight_control_single.yml
81 new file mode 100644
82 index 00000000..ad809f59
83 --- /dev/null
84 +++ b/reclass/storage/system/opendaylight_control_single.yml
85 @@ -0,0 +1,13 @@
86 +parameters:
87 +  _param:
88 +    opendaylight_control_hostname: odl01
89 +  reclass:
90 +    storage:
91 +      node:
92 +        opendaylight_control_node01:
93 +          name: ${_param:opendaylight_control_hostname}
94 +          domain: ${_param:cluster_domain}
95 +          params:
96 +            salt_master_host: ${_param:reclass_config_master}
97 +            linux_system_codename: ${_param:linux_system_codename}
98 +            single_address: ${_param:opendaylight_service_host}