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
|
From 8e37e0fae6195ec177828a9e9d36c6ee009cd372 Mon Sep 17 00:00:00 2001
From: Feng Pan <fpan@redhat.com>
Date: Thu, 18 May 2017 17:39:42 -0400
Subject: [PATCH] Add ml2 type_drivers setting
Change-Id: Ie47a1ace6302d7eccd3ead676c4e1cde7e82c5d2
---
manifests/agents/ml2/vpp.pp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/manifests/agents/ml2/vpp.pp b/manifests/agents/ml2/vpp.pp
index f17d67e8..08427833 100644
--- a/manifests/agents/ml2/vpp.pp
+++ b/manifests/agents/ml2/vpp.pp
@@ -42,6 +42,11 @@
# in the vpp config.
# Defaults to false.
#
+# [*type_drivers*]
+# (optional) List of network type driver entrypoints to be loaded
+# Could be an array that can contain flat, vlan or vxlan
+# Defaults to $::os_service_default.
+#
class neutron::agents::ml2::vpp (
$package_ensure = 'present',
$enabled = true,
@@ -51,6 +56,7 @@ class neutron::agents::ml2::vpp (
$etcd_port = $::os_service_default,
$etcd_user = $::os_service_default,
$etcd_pass = $::os_service_default,
+ $type_drivers = $::os_service_default,
$purge_config = false,
) {
include ::neutron::deps
@@ -61,12 +67,12 @@ class neutron::agents::ml2::vpp (
}
neutron_agent_vpp {
- 'ml2_vpp/physnets': value => $physnets;
+ 'ml2_vpp/physnets': value => $physnets;
'ml2_vpp/etcd_host': value => $etcd_host;
'ml2_vpp/etcd_port': value => $etcd_port;
'ml2_vpp/etcd_user': value => $etcd_user;
'ml2_vpp/etcd_pass': value => $etcd_pass;
- 'DEFAULT/host': value => $::hostname;
+ 'ml2/type_drivers': value => join(any2array($type_drivers), ',');
}
package { 'neutron-vpp-agent':
--
2.13.3
|