summaryrefslogtreecommitdiffstats
path: root/build/puppet-neutron-add-odl-settings.patch
blob: aa0b35a17db026de2fb030a76957729ffbb41698 (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
diff --git a/manifests/plugins/ml2/opendaylight.pp b/manifests/plugins/ml2/opendaylight.pp
index a27c4d6..13b56c4 100644
--- a/manifests/plugins/ml2/opendaylight.pp
+++ b/manifests/plugins/ml2/opendaylight.pp
@@ -29,12 +29,22 @@
 # (optional) The URI used to connect to the local OVSDB server
 # Defaults to 'tcp:127.0.0.1:6639'
 #
+# [*port_binding_controller*]
+# (optional) Name of the controller to be used for port binding.
+# Defaults to $::os_service_default
+#
+# [*odl_hostconf_uri*]
+# (optional) Path for ODL host configuration REST interface.
+# Defaults to $::os_service_default
+#
 class neutron::plugins::ml2::opendaylight (
-  $package_ensure     = 'present',
-  $odl_username       = $::os_service_default,
-  $odl_password       = $::os_service_default,
-  $odl_url            = $::os_service_default,
-  $ovsdb_connection   = 'tcp:127.0.0.1:6639',
+  $package_ensure          = 'present',
+  $odl_username            = $::os_service_default,
+  $odl_password            = $::os_service_default,
+  $odl_url                 = $::os_service_default,
+  $ovsdb_connection        = 'tcp:127.0.0.1:6639',
+  $port_binding_controller = $::os_service_default,
+  $odl_hostconf_uri        = $::os_service_default,
 ) {
 
   include ::neutron::deps
@@ -48,9 +58,11 @@ class neutron::plugins::ml2::opendaylight (
   )
 
   neutron_plugin_ml2 {
-    'ml2_odl/username': value => $odl_username;
-    'ml2_odl/password': value => $odl_password;
-    'ml2_odl/url':      value => $odl_url;
+    'ml2_odl/username':                value => $odl_username;
+    'ml2_odl/password':                value => $odl_password;
+    'ml2_odl/url':                     value => $odl_url;
+    'ml2_odl/port_binding_controller': value => $port_binding_controller;
+    'ml2_odl/odl_hostconf_uri':        value => $odl_hostconf_uri;
   }
 
   neutron_config {