File: bridge.pp

package info (click to toggle)
puppet-module-ovn 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: ruby: 588; python: 41; sh: 10; makefile: 10
file content (24 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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}"
  }
}