Package netapp.manage

Examples of netapp.manage.NaElement.addNewChild()


            _lunDao.update(lun.getId(), lun);

            //create lun mapping
            //now map the lun to the igroup
            NaElement xi3 = new NaElement("lun-map");
            xi3.addNewChild("force", "true");
            xi3.addNewChild("initiator-group", lunName.toString());
            xi3.addNewChild("path", lun.getPath() + lun.getLunName());

            xi3.addNewChild("lun-id", lunIdStr);
            s.invokeElem(xi3);
View Full Code Here


            //create lun mapping
            //now map the lun to the igroup
            NaElement xi3 = new NaElement("lun-map");
            xi3.addNewChild("force", "true");
            xi3.addNewChild("initiator-group", lunName.toString());
            xi3.addNewChild("path", lun.getPath() + lun.getLunName());

            xi3.addNewChild("lun-id", lunIdStr);
            s.invokeElem(xi3);
View Full Code Here

            //create lun mapping
            //now map the lun to the igroup
            NaElement xi3 = new NaElement("lun-map");
            xi3.addNewChild("force", "true");
            xi3.addNewChild("initiator-group", lunName.toString());
            xi3.addNewChild("path", lun.getPath() + lun.getLunName());

            xi3.addNewChild("lun-id", lunIdStr);
            s.invokeElem(xi3);

            txn.commit();
View Full Code Here

            NaElement xi3 = new NaElement("lun-map");
            xi3.addNewChild("force", "true");
            xi3.addNewChild("initiator-group", lunName.toString());
            xi3.addNewChild("path", lun.getPath() + lun.getLunName());

            xi3.addNewChild("lun-id", lunIdStr);
            s.invokeElem(xi3);

            txn.commit();
            //set the result
            result[0] = lunName.toString();//lunname
View Full Code Here

                s_logger.debug("Request --> destroyLun " + ":serverIp:" + vol.getIpAddress());

            try {
                //Unmap lun
                NaElement xi2 = new NaElement("lun-unmap");
                xi2.addNewChild("initiator-group", lunName);
                xi2.addNewChild("path", lun.getPath() + lun.getLunName());
                s.invokeElem(xi2);
            } catch (NaAPIFailedException naf) {
                if (naf.getErrno() == 9016)
                    s_logger.warn("no map exists excpn 9016 caught in deletelun, continuing with delete");
View Full Code Here

            try {
                //Unmap lun
                NaElement xi2 = new NaElement("lun-unmap");
                xi2.addNewChild("initiator-group", lunName);
                xi2.addNewChild("path", lun.getPath() + lun.getLunName());
                s.invokeElem(xi2);
            } catch (NaAPIFailedException naf) {
                if (naf.getErrno() == 9016)
                    s_logger.warn("no map exists excpn 9016 caught in deletelun, continuing with delete");
            }
View Full Code Here

                    s_logger.warn("no map exists excpn 9016 caught in deletelun, continuing with delete");
            }

            //destroy lun
            NaElement xi = new NaElement("lun-destroy");
            xi.addNewChild("force", "true");
            xi.addNewChild("path", lun.getPath() + lun.getLunName());
            s.invokeElem(xi);

            //destroy igroup
            NaElement xi1 = new NaElement("igroup-destroy");
View Full Code Here

            }

            //destroy lun
            NaElement xi = new NaElement("lun-destroy");
            xi.addNewChild("force", "true");
            xi.addNewChild("path", lun.getPath() + lun.getLunName());
            s.invokeElem(xi);

            //destroy igroup
            NaElement xi1 = new NaElement("igroup-destroy");
            //xi1.addNewChild("force","true");
View Full Code Here

            s.invokeElem(xi);

            //destroy igroup
            NaElement xi1 = new NaElement("igroup-destroy");
            //xi1.addNewChild("force","true");
            xi1.addNewChild("initiator-group-name", lunName);
            s.invokeElem(xi1);

            _lunDao.remove(lun.getId());
            txn.commit();
        } catch (UnknownHostException uhe) {
View Full Code Here

            if (s_logger.isDebugEnabled())
                s_logger.debug("Request --> disassociateLun " + ":serverIp:" + vol.getIpAddress());

            xi = new NaElement("igroup-remove");
            xi.addNewChild("force", "true");
            xi.addNewChild("initiator", iGroup);
            xi.addNewChild("initiator-group-name", lunName);
            s.invokeElem(xi);

        } catch (UnknownHostException uhe) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.