3f95486410
Integrates the latest Open vSwitch with DPDK into the host management and configuration framework and configures the default system vswitch type to be ovs-dpdk. Change-Id: Ia6e402c9180d019d1f9f52a531daa571197ea000 Signed-off-by: Matt Peters <matt.peters@windriver.com> Signed-off-by: Scott Little <scott.little@windriver.com>
36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
#! /bin/bash
|
|
########################################################################
|
|
#
|
|
# Copyright (c) 2018 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
########################################################################
|
|
|
|
# Loads Up Utilities and Commands Variables
|
|
|
|
source /usr/local/sbin/collect_parms
|
|
source /usr/local/sbin/collect_utils
|
|
|
|
SERVICE="ovs"
|
|
LOGFILE="${extradir}/${SERVICE}.info"
|
|
|
|
|
|
###############################################################################
|
|
# Only Compute Nodes
|
|
###############################################################################
|
|
if [[ "$nodetype" == "compute" || "$subfunction" == *"compute"* ]] ; then
|
|
|
|
if [[ "$vswitch_type" == *ovs* ]]; then
|
|
echo "${hostname}: OVS Info ..........: ${LOGFILE}"
|
|
|
|
delimiter ${LOGFILE} "ovsdb-client dump"
|
|
ovsdb-client dump >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
|
|
|
|
delimiter ${LOGFILE} "ovs-vsctl show"
|
|
ovs-vsctl --timeout 10 show >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
|
|
fi
|
|
fi
|
|
|
|
exit 0
|