Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37707435
en ru br
ALT Linux repos
S:3.1.2-alt1

Group :: Networking/Other
RPM: openvswitch

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/bash

pickup_defaults
pickup_options

[ -x "${OVS_VSCTL:=$DEFAULT_OVS_VSCTL}" ] || {
print_error "$OVS_VSCTL does not exist or is not executable. Try installing openvswitch RPM."
exit 1
}


if [ -z "$BRIDGE" ] || [ -z "$VID" ]; then
$OVS_VSCTL -t $OVS_VSCTL_TIMEOUT -- --may-exist add-br "$NAME" $OVS_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA} && print_progress
else
#Creates a ‘‘fake bridge’’ named bridge within the existing Open vSwitch bridge parent,
#which must already exist and must not itself be a fake bridge.
#The new fake bridge will be on 802.1Q VLAN vlan, which must be an integer between 0 and 4095.
#Initially bridge will have no ports (other than bridge itself)
iface_is_up $BRIDGE || $SCRIPTDIR/ifup $BRIDGE
$OVS_VSCTL -t $OVS_VSCTL_TIMEOUT -- --may-exist add-br "$NAME" "$BRIDGE" "$VID" $OVS_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA} && print_progress
fi
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin