Defined Type: openvswitch::bridge::member
- Defined in:
- modules/openvswitch/manifests/bridge/member.pp
Summary
adds an interface to an existing bridgeOverview
SPDX-License-Identifier: Apache-2.0
3 4 5 6 7 8 9 10 11 12 |
# File 'modules/openvswitch/manifests/bridge/member.pp', line 3
define openvswitch::bridge::member (
String[1] $bridge,
String[1] $interface = $title,
) {
exec { "bridge-create-${bridge}-${interface}":
command => "/usr/bin/ovs-vsctl add-port ${bridge} ${interface}",
unless => "/usr/bin/ovs-vsctl port-to-br ${interface}",
require => Openvswitch::Bridge[$bridge],
}
}
|