~jk0/nova/diagnostics-per-instance

« back to all changes in this revision

Viewing changes to plugins/xenserver/networking/etc/xensource/scripts/vif_5.6-fp1.patch

  • Committer: Josh Kearney
  • Date: 2010-12-29 17:35:49 UTC
  • mfrom: (466.2.36 nova)
  • Revision ID: josh.kearney@rackspace.com-20101229173549-ql7crx0ujxu6v9i7
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- vif     2010-12-20 16:39:46.000000000 +0000
 
2
+++ vif_modified 2010-11-19 23:24:37.000000000 +0000
 
3
@@ -213,6 +213,7 @@
 
4
 
 
5
         # xs-xen.pq.hq:91e986b8e49f netback-wait-for-hotplug
 
6
         xenstore-write "/local/domain/0/backend/vif/${DOMID}/${DEVID}/hotplug-status" "connected"
 
7
+       python /etc/xensource/scripts/vif_rules.py ${DOMID} online 2>&1 > /dev/null
 
8
     fi
 
9
     ;;
 
10
 
 
11
@@ -224,9 +225,11 @@
 
12
 
 
13
 remove)
 
14
     if [ "${TYPE}" = "vif" ] ;then
 
15
+       python /etc/xensource/scripts/vif_rules.py ${DOMID} offline 2>&1 > /dev/null
 
16
         xenstore-rm "${HOTPLUG}/hotplug"
 
17
     fi
 
18
     logger -t scripts-vif "${dev} has been removed"
 
19
     remove_from_bridge
 
20
     ;;
 
21
 esac
 
22
+