17502158 Net-SNMP ifOperStatus in non-global zone on VM guest domain is not correct. s11u3-sru
authorSowrabha H G<sowrabha.hg@oracle.com>
Thu, 26 Nov 2015 21:27:25 -0800
branchs11u3-sru
changeset 5133 19d9e2477ac2
parent 5132 048ccb1a7e2c
child 5134 ecdfd32c1caf
17502158 Net-SNMP ifOperStatus in non-global zone on VM guest domain is not correct.
components/net-snmp/patches/055.20461627.17502158.kernel_sunos5.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/055.20461627.17502158.kernel_sunos5.patch	Thu Nov 26 21:27:25 2015 -0800
@@ -0,0 +1,21 @@
+This patch fixes a Solaris specific issue where ifoperstatus of
+the vnic's inside a non global zone and also ifoperstatus of
+the vlan shows it as down even though the link is up. The patch 
+has been submitted to the community but has not been accepted yet.
+
+The details can be found in the following location
+https://sourceforge.net/p/net-snmp/bugs/2605/
+
+--- a/agent/mibgroup/kernel_sunos5.c	Thu Apr 16 21:13:47 2015
++++ b/agent/mibgroup/kernel_sunos5.c	Thu Apr 16 21:18:28 2015
[email protected]@ -1922,8 +1922,8 @@
+     if (ifp->ifAdminStatus == 1) {
+         int i_tmp;
+         /* only UPed interfaces get correct link status - if any */
+-        if (getKstatInt(NULL, name,"link_up",&i_tmp) == 0) {
+-            ifp->ifOperStatus = i_tmp ? 1 : 2;
++        if (getKstatInt("link", name,"phys_state",&i_tmp) == 0) {
++            ifp->ifOperStatus = (i_tmp == 1) ? 1 : ((i_tmp == 0) ? 2 : 4);
+         } else if(link_to_phydev(name, phydevname) == 0) {
+                  strcpy(devbasename, phydevname);
+                  DEBUGMSGTL(("kernel_sunos5","phydevname = %s\n", phydevname));