Set ovn_chassis_mac_map in ovn::controller
For distributed vlan in ovn we need to add support of creating mac addresses per compute and seting them in external_ids:ovn-chassis-mac-mappings. Depends-On: https://review.opendev.org/782765 Related-Bug: #1881593 Change-Id: I785400969efba0062aabdca9af2726a7603ef840 (cherry picked from commitef44eebdc5
) (cherry picked from commit06f2a09393
) (cherry picked from commit15d65f57da
)
This commit is contained in:
parent
8d5bb4b894
commit
9cabed9d27
@ -33,15 +33,27 @@
|
|||||||
# for more details.
|
# for more details.
|
||||||
# Defaults to hiera('step')
|
# Defaults to hiera('step')
|
||||||
#
|
#
|
||||||
|
# [*ovn_chassis_mac_map*]
|
||||||
|
# (optional) A list of key-value pairs that map a chassis specific mac to
|
||||||
|
# a physical network name. An example
|
||||||
|
# value mapping two chassis macs to two physical network names would be:
|
||||||
|
# physnet1:aa:bb:cc:dd:ee:ff,physnet2:a1:b2:c3:d4:e5:f6
|
||||||
|
# These are the macs that ovn-controller will replace a router port
|
||||||
|
# mac with, if packet is going from a distributed router port on
|
||||||
|
# vlan type logical switch.
|
||||||
|
# Defaults to hiera('ovn_chassis_mac_map')
|
||||||
|
#
|
||||||
class tripleo::profile::base::neutron::agents::ovn (
|
class tripleo::profile::base::neutron::agents::ovn (
|
||||||
$ovn_db_host = hiera('ovn_dbs_vip'),
|
$ovn_db_host = hiera('ovn_dbs_vip'),
|
||||||
$ovn_sbdb_port = hiera('ovn::southbound::port'),
|
$ovn_sbdb_port = hiera('ovn::southbound::port'),
|
||||||
$protocol = 'tcp',
|
$protocol = 'tcp',
|
||||||
$step = Integer(hiera('step'))
|
$step = Integer(hiera('step')),
|
||||||
|
$ovn_chassis_mac_map = hiera('ovn_chassis_mac_map', undef),
|
||||||
) {
|
) {
|
||||||
if $step >= 4 {
|
if $step >= 4 {
|
||||||
class { '::ovn::controller':
|
class { '::ovn::controller':
|
||||||
ovn_remote => join([$protocol, normalize_ip_for_uri($ovn_db_host), "${ovn_sbdb_port}"], ':'),
|
ovn_remote => join([$protocol, normalize_ip_for_uri($ovn_db_host), "${ovn_sbdb_port}"], ':'),
|
||||||
|
ovn_chassis_mac_map => $ovn_chassis_mac_map,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user