Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 32 lines (26 sloc) 0.598 kB
#! /bin/sh
#########################################################################
# Script to report which network backend is in use
# (Linux bridge or Open vSwitch)
#
# Usage:
# xe-get-network-backend
#
# Output:
# "bridge" - Linux bridge in use
# "openvswitch" - Open vSwitch in use
#########################################################################
set -e
backend=$(cat /etc/xensource/network.conf)
case "$backend" in
bridge|openvswitch)
;;
vswitch)
backend=openvswitch
;;
*)
echo "Invalid network backend: $backend" >&2
exit 1
;;
esac
echo $backend
Jump to Line
Something went wrong with that request. Please try again.