summaryrefslogtreecommitdiffstats
path: root/build/patches/puppet-neutron-add-external_network_bridge-option.patch
blob: 808bcae0829e05e30ba0b28520b3a098722ac140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
From 48a73ebfd382158b900c041952689128390d14f3 Mon Sep 17 00:00:00 2001
From: Feng Pan <fpan@redhat.com>
Date: Sat, 30 Sep 2017 01:02:27 -0400
Subject: [PATCH] Add external_network_bridge config back

Change-Id: I67582e2033eb1f849f7e76148f089a7f815d1f78
---
 manifests/agents/l3.pp                                     | 13 +++++++++++++
 manifests/agents/vpnaas.pp                                 | 14 ++++++++++++++
 ...d_external_network_bridge-options-613a8793ef13d761.yaml |  3 ---
 3 files changed, 27 insertions(+), 3 deletions(-)
 delete mode 100644 releasenotes/notes/remove_deprecated_external_network_bridge-options-613a8793ef13d761.yaml

diff --git a/manifests/agents/l3.pp b/manifests/agents/l3.pp
index 651c7508..df25e3e3 100644
--- a/manifests/agents/l3.pp
+++ b/manifests/agents/l3.pp
@@ -92,6 +92,12 @@
 #   (optional) L3 agent extensions to enable.
 #   Defaults to $::os_service_default
 #
+# === Deprecated Parameters
+#
+# [*external_network_bridge*]
+#   (optional) Deprecated. The name of the external bridge
+#   Defaults to $::os_service_default
+#
 class neutron::agents::l3 (
   $package_ensure                   = 'present',
   $enabled                          = true,
@@ -113,11 +119,17 @@ class neutron::agents::l3 (
   $purge_config                     = false,
   $availability_zone                = $::os_service_default,
   $extensions                       = $::os_service_default,
+  # DEPRECATED PARAMETERS
+  $external_network_bridge          = $::os_service_default,
 ) {
 
   include ::neutron::deps
   include ::neutron::params
 
+  if ! is_service_default ($external_network_bridge) {
+    warning('parameter external_network_bridge is deprecated')
+  }
+
   resources { 'neutron_l3_agent_config':
     purge => $purge_config,
   }
@@ -132,6 +144,7 @@ class neutron::agents::l3 (
 
   neutron_l3_agent_config {
     'DEFAULT/debug':                            value => $debug;
+    'DEFAULT/external_network_bridge':          value => $external_network_bridge;
     'DEFAULT/interface_driver':                 value => $interface_driver;
     'DEFAULT/gateway_external_network_id':      value => $gateway_external_network_id;
     'DEFAULT/handle_internal_only_routers':     value => $handle_internal_only_routers;
diff --git a/manifests/agents/vpnaas.pp b/manifests/agents/vpnaas.pp
index 52eb4026..1bab10e7 100644
--- a/manifests/agents/vpnaas.pp
+++ b/manifests/agents/vpnaas.pp
@@ -45,12 +45,18 @@
 #   in the vpnaas config.
 #   Defaults to false.
 #
+# === Deprecated Parameters
+#
+# [*external_network_bridge*]
+#  (optional) Deprecated. Defaults to $::os_service_default
+#
 class neutron::agents::vpnaas (
   $package_ensure              = present,
   $enabled                     = true,
   $manage_service              = true,
   $vpn_device_driver           = 'neutron.services.vpn.device_drivers.ipsec.OpenSwanDriver',
   $interface_driver            = 'neutron.agent.linux.interface.OVSInterfaceDriver',
+  $external_network_bridge     = $::os_service_default,
   $ipsec_status_check_interval = $::os_service_default,
   $purge_config                = false,
 ) {
@@ -97,6 +103,14 @@ class neutron::agents::vpnaas (
     'DEFAULT/interface_driver':          value => $interface_driver;
   }
 
+  if ! is_service_default ($external_network_bridge) {
+    warning('parameter external_network_bridge is deprecated')
+  }
+
+  neutron_vpnaas_agent_config {
+    'DEFAULT/external_network_bridge': value => $external_network_bridge;
+  }
+
   if $::neutron::params::vpnaas_agent_package {
     ensure_resource( 'package', 'neutron-vpnaas-agent', {
       'ensure' => $package_ensure,
diff --git a/releasenotes/notes/remove_deprecated_external_network_bridge-options-613a8793ef13d761.yaml b/releasenotes/notes/remove_deprecated_external_network_bridge-options-613a8793ef13d761.yaml
deleted file mode 100644
index 10464012..00000000
--- a/releasenotes/notes/remove_deprecated_external_network_bridge-options-613a8793ef13d761.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-deprecations:
-  - Removed deprecated option external_network_bridge.
-- 
2.13.4