File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
lib/puppet/parser/functions Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ module Puppet::Parser::Functions
2
2
newfunction ( :physnet_map , :type => :rvalue ) do |args |
3
3
hosts = args [ 0 ]
4
4
physmap = args [ 1 ]
5
+ domain = args [ 2 ]
5
6
hosts . each do |hname |
6
7
physmap . each do |physnetmap |
7
8
ml = physnetmap . split ( ':' )
8
9
physnet = ml [ 0 ]
9
10
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 } "
12
13
system ( cmd )
13
14
system ( cmdc )
14
15
end
Original file line number Diff line number Diff line change 99
99
if $step >= 5 {
100
100
if !empty($physical_device_mappings ) {
101
101
$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 )
103
103
}
104
104
}
105
105
Original file line number Diff line number Diff line change 5
5
$pnet = $pnet_l [0]
6
6
$physdom = sprintf(" pdom_%s" , $pnet )
7
7
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 ' ;
11
11
}
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments