diff options
author | Feng Pan <fpan@redhat.com> | 2018-05-30 00:05:58 -0400 |
---|---|---|
committer | Feng Pan <fpan@redhat.com> | 2018-05-30 00:05:58 -0400 |
commit | 3b4594e370145b42bc874f789ed75e0cd42496eb (patch) | |
tree | ce46a72b952325b4f801655f16b863a686c6a1ca /manifests/profile/base/neutron | |
parent | bebd15efe40498c272577c563bc113ec3849dcc6 (diff) |
Change VPP tap0 config for nosdn-fdio scenariostable/fraser
We need to configure controller node VPP to use tap0 interface
for external network. Previously this was configured for all nodes,
which is not desirable.
Change-Id: Ia33234b1c6eddf787d5e4ab62c22ddc8a18b82f3
Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'manifests/profile/base/neutron')
-rw-r--r-- | manifests/profile/base/neutron/agents/vpp.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/profile/base/neutron/agents/vpp.pp b/manifests/profile/base/neutron/agents/vpp.pp index 0b06b57..93ae689 100644 --- a/manifests/profile/base/neutron/agents/vpp.pp +++ b/manifests/profile/base/neutron/agents/vpp.pp @@ -54,15 +54,18 @@ class tripleo::profile::base::neutron::agents::vpp( } if $step >= 4 { + $physnet_mapping_str = vpp_physnet_mapping($physnet_mapping) if $::hostname in hiera('controller_node_names') { $service_plugins = hiera('neutron::service_plugins') + $real_physnet_mapping = "${physnet_mapping_str},external:tap0" } else { $service_plugins = undef + $real_physnet_mapping = $physnet_mapping_str } class { '::neutron::agents::ml2::vpp': etcd_host => $etcd_host, etcd_port => $etcd_port, - physnets => vpp_physnet_mapping($physnet_mapping), + physnets => $real_physnet_mapping, type_drivers => $type_drivers, service_plugins => $service_plugins, } |