Skip to content

Commit dc55c03

Browse files
author
Ratnakar Kolli
committed
remove the unwanted physnet configuration as per the new driver
1 parent 3efb72f commit dc55c03

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

ciscoaci-puppet/ciscoaci/lib/puppet/parser/functions/physnet_map.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ module Puppet::Parser::Functions
22
newfunction(:physnet_map, :type => :rvalue) do |args|
33
hosts = args[0]
44
physmap = args[1]
5+
domain = args[2]
56
hosts.each do |hname|
67
physmap.each do |physnetmap|
78
ml = physnetmap.split(':')
89
physnet = ml[0]
910
intf = ml[1]
10-
cmd = "/bin/aimctl manager host-link-network-label-delete #{hname} #{physnet} #{intf}"
11-
cmdc = "/bin/aimctl manager host-link-network-label-create #{hname} #{physnet} #{intf}"
11+
cmd = "/bin/aimctl manager host-link-network-label-delete #{hname}.#{domain} #{physnet} #{intf}"
12+
cmdc = "/bin/aimctl manager host-link-network-label-create #{hname}.#{domain} #{physnet} #{intf}"
1213
system(cmd)
1314
system(cmdc)
1415
end

ciscoaci-puppet/ciscoaci/manifests/aim_config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
if $step >= 5 {
100100
if !empty($physical_device_mappings) {
101101
$hosts = hiera('neutron_plugin_compute_ciscoaci_short_node_names', '')
102-
$dummy = physnet_map($hosts, $physical_device_mappings)
102+
$dummy = physnet_map($hosts, $physical_device_mappings, $domain)
103103
}
104104
}
105105

ciscoaci-puppet/ciscoaci/manifests/physdom.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
$pnet = $pnet_l[0]
66
$physdom = sprintf("pdom_%s", $pnet)
77
aimctl_config {
8-
"apic_physical_network:$pnet/hosts": value => $hosts;
9-
"apic_physical_network:$pnet/segment_type": value => 'vlan';
10-
"apic_physdom:$physdom/#dummy": value => 'dummy';
8+
#"apic_physical_network:$pnet/hosts": value => $hosts;
9+
#"apic_physical_network:$pnet/segment_type": value => 'vlan';
10+
"apic_physdom:$physdom/encap_mode": value => 'vlan';
1111
}
1212
}
1313

0 commit comments

Comments
 (0)