c3e5717561
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
15 lines
391 B
Puppet
15 lines
391 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
|
|
#
|
|
define ovn::controller::bridge {
|
|
$map_split = split($name, ':')
|
|
$bridge = $map_split[1]
|
|
vs_bridge { $bridge:
|
|
ensure => present,
|
|
external_ids => "bridge-id=${bridge}"
|
|
}
|
|
}
|