Files
puppet-ovn/manifests/controller/port.pp
Babu Shanmugam c3e5717561 Add support for bridge mappings
When OVN virtual networks wants to access the provider networks it does
so with the help of a special port type 'localnet'. For the localnet ports
to be present in the agent side, the agent has to carry some details
in the vswitch DB as well a bridge has to be setup for the same.

This patch help to setup up the bridge for provider network mapping and to
add appropriate interfaces to the bridge

Change-Id: Ia6d66fa954571328c0ac3542af17303def382c1a
2017-01-05 16:11:08 -05:00

16 lines
395 B
Puppet

# ovn controller bridge-port settings
# == Define: ovn::controller::port
#
# Bridge-interface setting for ovn bridge mapping
# $name should be the mapping in the format <bridge-name>:<interface-name>
#
define ovn::controller::port {
$map_split = split($name, ':')
$bridge = $map_split[0]
$iface = $map_split[1]
vs_port { $iface:
ensure => present,
bridge => $bridge
}
}