From 63a5c2930869626c28b1e179523515fa633673fc Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 7 Aug 2017 12:01:56 +0100 Subject: [PATCH] trivial: Remove "vif" script 'xen/vif-openstack' is a script for configuring a Xen VIF in bridge mode. This script duplicates functionality now provided in Xen itself and does not need to remain in the nova codebase. [1] https://xenbits.xen.org/gitweb/?p=xen.git;f=tools/hotplug/Linux/vif-bridge;h=3d72ca4 Change-Id: Iafacfdfb96f78c3f1682139892fdcca3616b6cab TrivialFix --- contrib/xen/vif-openstack | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100755 contrib/xen/vif-openstack diff --git a/contrib/xen/vif-openstack b/contrib/xen/vif-openstack deleted file mode 100755 index d9267b4dbbc4..000000000000 --- a/contrib/xen/vif-openstack +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -## copyright: B1 Systems GmbH , 2012. -## author: Christian Berendt , 2012. -## license: Apache License, Version 2.0 -## -## purpose: -## Creates a new vif device without attaching it to a -## bridge. Neutron Linux Bridge Agent will attach the -## created device to the belonging bridge. -## -## usage: -## place the script in ${XEN_SCRIPT_DIR}/vif-openstack and -## set (vif-script vif-openstack) in /etc/xen/xend-config.sxp. - -dir=$(dirname "$0") -. "$dir/vif-common.sh" - -case "$command" in - online) - setup_virtual_bridge_port "$dev" - ip link set $dev up - ;; - - offline) - ip link set $dev down - ;; - - add) - setup_virtual_bridge_port "$dev" - ip link set $dev up - ;; -esac - -if [ "$type_if" = vif -a "$command" = "online" ] -then - success -fi