- Skip lookup for tap interfaces
- Update l3_hosts field in vpp ml2 section
Change-Id: I231054a433eb7e598a6e24f6eaea02d476e776de
Signed-off-by: Feng Pan <fpan@redhat.com>
unless mapping.length == 2
raise Puppet::ParseError, "Invalid physnet mapping format: #{item}. Expecting 'physnet:interface_name'"
end
unless mapping.length == 2
raise Puppet::ParseError, "Invalid physnet mapping format: #{item}. Expecting 'physnet:interface_name'"
end
- if defined? call_function
- vpp_int = call_function('hiera', [mapping[1]])
+ if mapping[1].start_with?("tap")
+ vpp_int = mapping[1]
- vpp_int = function_hiera([mapping[1]])
+ if defined? call_function
+ vpp_int = call_function('hiera', [mapping[1]])
+ else
+ vpp_int = function_hiera([mapping[1]])
+ end
end
if vpp_int.to_s.strip.empty?
raise Puppet::ParseError, "VPP interface mapped to #{mapping[1]} is not found."
end
if vpp_int.to_s.strip.empty?
raise Puppet::ParseError, "VPP interface mapped to #{mapping[1]} is not found."
if $step >= 4 {
if $::hostname in hiera('controller_node_names') {
if $step >= 4 {
if $::hostname in hiera('controller_node_names') {
- $l3_hosts = strip(hiera('controller_node_names').split(',')[0])
+ $l3_hosts = "${hiera('controller_node_names').split(',')[0]}.${::domain}"
} else {
$l3_hosts = undef
}
} else {
$l3_hosts = undef
}