File s390-tools-sles11sp2-znetconf-layer_autodection.patch of Package s390-tools

Description: znetconf: layer autodetection not working under z/VM 6.x
Symptom:     Layer 3 for a NIC is not detected automatically under z/VM 6.x.
             Users adding such a NIC via znetconf observe that the device
             gets configured in layer 2 mode and fails to become online.
Problem:     A service fix added to z/VM 6.1 broke the interface of the CP
             command query nic.
Solution:    The CP command query virtual nic provides a consistent interface
             and gets used now.
Problem-ID:  78160
---
 zconf/znetconf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/zconf/znetconf
+++ b/zconf/znetconf
@@ -255,7 +255,7 @@ function lookup_lan_layer()
 function lookup_type_and_lan_or_vswitch_name()
 {
 	local DEVNO="$1"
-	vmcp "q nic $DEVNO" 2> /dev/null |
+	vmcp "q v nic $DEVNO" 2> /dev/null |
 	{
 		local FIELD1
 		local FIELD2
openSUSE Build Service is sponsored by