File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,25 @@ handle_xs_error()
38
38
39
39
logger -t " $LOG_TAG " " Called as $0 $* "
40
40
41
+ path=" ${PRIVATE_PATH} /pvs-site"
42
+ PVS_SITE=$( $XSREAD " $path " )
43
+ if [ $? -ne 0 ] || [ -z " $PVS_SITE " ]; then
44
+ handle_xs_error " $path "
45
+ fi
46
+
47
+ path=" ${PRIVATE_PATH} /vif-uuid"
48
+ VIF=$( $XSREAD " $path " )
49
+ if [ $? -ne 0 ] || [ -z " $VIF " ]; then
50
+ handle_xs_error " $path "
51
+ fi
52
+
53
+ # Only continue if the proxy state is "started".
54
+ path=" /xapi/pvs-proxy/$PVS_SITE /$VIF /state"
55
+ PVS_PROXY_STATE=$( $XSREAD " $path " )
56
+ if [ " $PVS_PROXY_STATE " != " started" ]; then
57
+ handle_error " PVS proxy daemon not configured for this proxy - not installing OVS rules."
58
+ fi
59
+
41
60
path=" ${PRIVATE_PATH} /pvs-interface"
42
61
PVS_PROXY_INTERFACE=$( $XSREAD " $path " )
43
62
if [ $? -ne 0 ] || [ -z " $PVS_PROXY_INTERFACE " ]; then
You can’t perform that action at this time.
0 commit comments