Package com.cloud.utils.cisco.n1kv.vsm

Examples of com.cloud.utils.cisco.n1kv.vsm.NetconfHelper.disconnect()


                } catch (CloudRuntimeException e) {
                    msg = "Failed to associate policy map " + policyName + " with port profile " + vethPortProfileName
                            + ". Exception: " + e.toString();
                    s_logger.error(msg);
                    if (netconfClient != null) {
                        netconfClient.disconnect();
                        s_logger.debug("Disconnected Nexus 1000v session.");
                    }
                    throw new CloudRuntimeException(msg);
                }
            }
View Full Code Here


        if (vlanId == null) {
            s_logger.info("Skipping update operation over ethernet port profile " + ethPortProfileName
                    + " for untagged VLAN.");
            if (netconfClient != null) {
                netconfClient.disconnect();
                s_logger.debug("Disconnected Nexus 1000v session.");
            }
            return;
        }
View Full Code Here

        String currentVlan = portProfile.vlan;
        String newVlan = Integer.toString(vlanId.intValue());
        if (currentVlan.equalsIgnoreCase(newVlan)) {
            if (netconfClient != null) {
                netconfClient.disconnect();
                s_logger.debug("Disconnected Nexus 1000v session.");
            }
            return;
        }
View Full Code Here

        s_logger.error(msg);
        throw new CloudRuntimeException(msg);
      }

      // Disconnect from the VSM. A VSM has a default of 8 maximum parallel connections that it allows.
      netconfClient.disconnect();

      // Now, go ahead and associate the cluster with this VSM.
      // First, check if VSM already exists in the table "virtual_supervisor_module".
      // If it's not there already, create it.
      // If it's there already, return success.
View Full Code Here

            if(vsmIp != null && vsmUser != null && vsmPassword != null) {
                NetconfHelper netconfClient;
                try {
                    netconfClient = new NetconfHelper(vsmIp, vsmUser, vsmPassword);
                    netconfClient.disconnect();
                } catch (CloudRuntimeException e) {
                    String msg = "Invalid credentials supplied for user " + vsmUser + " for Cisco Nexus 1000v VSM at " + vsmIp;
                    s_logger.error(msg);
                    _clusterDao.remove(clusterId);
                    throw new CloudRuntimeException(msg);
View Full Code Here

        Long vsmId = 0L;
        if(vsmIp != null && vsmUser != null && vsmPassword != null) {
            NetconfHelper netconfClient;
            try {
                netconfClient = new NetconfHelper(vsmIp, vsmUser, vsmPassword);
                netconfClient.disconnect();
            } catch (CloudRuntimeException e) {
                String msg = "Invalid credentials supplied for user " + vsmUser + " for Cisco Nexus 1000v VSM at " + vsmIp;
                s_logger.error(msg);
                _clusterDao.remove(clusterId);
                throw new CloudRuntimeException(msg);
View Full Code Here

        s_logger.error(msg);
        throw new CloudRuntimeException(msg);
      }

      // Disconnect from the VSM. A VSM has a default of 8 maximum parallel connections that it allows.
      netconfClient.disconnect();

      // Now, go ahead and associate the cluster with this VSM.
      // First, check if VSM already exists in the table "virtual_supervisor_module".
      // If it's not there already, create it.
      // If it's there already, return success.
View Full Code Here

            msg = "Failed to add policy map of " + policyName + " with parameters " + "committed rate = "
                    + averageBandwidth + "peak bandwidth = " + peakBandwidth + "burst size = " + burstSize
                    + ". Exception: " + e.toString();
            s_logger.error(msg);
            if (netconfClient != null) {
                netconfClient.disconnect();
                s_logger.debug("Disconnected Nexus 1000v session.");
            }
            throw new CloudRuntimeException(msg);
        }
View Full Code Here

            } catch (CloudRuntimeException e) {
                msg = "Failed to update Ethernet port profile " + ethPortProfileName + " with VLAN " + vlanId
                        + ". Exception: " + e.toString();
                s_logger.error(msg);
                if(netconfClient != null) {
                  netconfClient.disconnect();
                  s_logger.debug("Disconnected Nexus 1000v session.");
                }
                throw new CloudRuntimeException(msg);
            }
        }
View Full Code Here

            }
        } catch (CloudRuntimeException e) {
            msg = "Failed to add vEthernet port profile " + networkName + "." + ". Exception: " + e.toString();
            s_logger.error(msg);
            if(netconfClient != null) {
                netconfClient.disconnect();
                s_logger.debug("Disconnected Nexus 1000v session.");
            }
            throw new CloudRuntimeException(msg);
        }
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.