Is there already a bug filed for the problem that the putback for
"PSARC/2008/374 dladm parseable output", onnv-gate changeset 7158,
once again changed the output format of "dladm show-link -p",
breaking xVM's /usr/lib/xen/scripts/vif-vnic script?
All I found is 6722523, which mentions that xVM is a consumer
of the dladm output.
the snv_95 version of vif-vnic fails like this, under snv_96:
...
+ mktemp
goodlinks=/tmp/tmp.E8aq6b
+ mktemp
badlinks=/tmp/tmp.K8ay6b
+ [ -z /tmp/tmp.E8aq6b -o -z /tmp/tmp.K8ay6b ]
+ read i
+ dladm show-link -p
dladm: -p requires -o+ eval
Suggested fix:
==============
diff --git a/src/scripts/vif-vnic b/src/scripts/vif-vnic
--- a/src/scripts/vif-vnic
+++ b/src/scripts/vif-vnic
@@ -78,8 +78,7 @@
fail_connect
fi
- dladm show-link -p | while read i; do
- eval $i
+ dladm show-link -p -o LINK,STATE | while IFS=: read LINK STATE;
do
if [ "$STATE" = "up" ]; then
echo $LINK >>$goodlinks
else
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]