aboutsummaryrefslogtreecommitdiff
path: root/xenserver/etc_profile.d_vswitch.sh
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2010-03-25 22:38:13 -0700
committerJustin Pettit <jpettit@nicira.com>2010-03-26 14:40:31 -0700
commitbc39196036f8e33d15274855087f0c47be2095ee (patch)
tree5102d7683bf3b113ba0a73de3487ec6f86e38be2 /xenserver/etc_profile.d_vswitch.sh
parent16f2ae571fc7d21f13c9ddbe4e948d8f35552ae5 (diff)
Cleanup default file locations and XenServer packaging
This commit cleans up the locations of a number of files and directories used. These include: - Config file lives in /etc/openvswitch/conf.db - Logs go into /var/log/openvswitch - ovsdb-server socket is /var/run/openvswitch/db.sock - Schema goes into /usr/share/openvswitch/vswitch.ovsschema - PID files go in /var/run/openvswitch For XenServer, these additional changes are made: - Cores go in /var/xen/openvswitch - OVS binaries run in /var/xen/openvswitch In addition, it attempts to cleanup the XenServer packaging. This includes referring to the project as "openvswitch" as opposed to the somewhat presumptuous "vswitch". Note: Changes to the Debian packaging will be forthcoming.
Diffstat (limited to 'xenserver/etc_profile.d_vswitch.sh')
-rw-r--r--xenserver/etc_profile.d_vswitch.sh47
1 files changed, 0 insertions, 47 deletions
diff --git a/xenserver/etc_profile.d_vswitch.sh b/xenserver/etc_profile.d_vswitch.sh
deleted file mode 100644
index a001e215..00000000
--- a/xenserver/etc_profile.d_vswitch.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright (C) 2009, 2010 Nicira Networks, Inc.
-#
-# Copying and distribution of this file, with or without modification,
-# are permitted in any medium without royalty provided the copyright
-# notice and this notice are preserved. This file is offered as-is,
-# without warranty of any kind.
-
-alias vswitch='service vswitch'
-
-function watchdp {
- watch ovs-dpctl show "$@"
-}
-
-function watchdpflows {
- local grep=""
- local dp=$1
- shift
- if [ $# -gt 0 ]; then
- grep="| grep $@"
- fi
- watch "ovs-dpctl dump-flows $dp $grep"
-}
-
-function watchflows {
- local grep=""
- local dp=$1
- shift
- bridge=$(ovs-dpctl show $dp | grep 'port 0:' | cut -d' ' -f 3)
- if [ $# -gt 0 ]; then
- grep="| grep $@"
- fi
- watch "ovs-ofctl dump-flows unix:/var/run/$bridge.mgmt $grep"
-}
-
-function monitorlogs {
- local grep=""
- if [ $# -gt 0 ]; then
- grep="| grep --line-buffered '^==> .* <==$"
- for i in "$@"; do
- grep="$grep\|$i"
- done
- grep="$grep'"
- fi
- cmd="tail -F /var/log/messages /var/log/ovs-vswitchd.log /var/log/xensource.log $grep | tee /var/log/monitorlogs.out"
- printf "cmd: $cmd\n"
- eval "$cmd"
-}