Files
puppet-ovn/manifests/controller/bridge.pp
Takashi Kajinami f3c77e38df replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

This also adds type definitions for all parameters.

Change-Id: I8744aa9b9652250a69573cece6ceab4963a2d191
2023-07-13 14:52:59 +09:00

25 lines
600 B
Puppet

# ovn controller bridge settings
# == Define: ovn::controller::bridge
#
# Bridge settings for ovn controller bridge mappings
# $name is OVN bridge mapping in the format network-name:bridge-name
#
# === Parameters:
#
# [*mac_table_size*]
# Set the mac table size for the provider bridges
# Defaults to undef
#
define ovn::controller::bridge(
Optional[Integer[0]] $mac_table_size = undef,
){
$map_split = split($name, ':')
$bridge = $map_split[1]
vs_bridge { $bridge:
ensure => present,
mac_table_size => $mac_table_size,
external_ids => "bridge-id=${bridge}"
}
}