cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8832 : Update Nuage VSP plugin...
Date Fri, 18 Sep 2015 22:23:08 GMT
Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/801#discussion_r39907061
  
    --- Diff: plugins/network-elements/nuage-vsp/src/com/cloud/network/resource/NuageVspResource.java
---
    @@ -441,6 +456,44 @@ private Answer executeRequest(SyncVspCommand cmd) {
             }
         }
     
    +    private Answer executeRequest(SyncNuageVspCmsIdCommand cmd) {
    +        try {
    +            isNuageVspManagerLoaded();
    +            if (cmd.getSyncType() == SyncType.AUDIT || cmd.getSyncType() == SyncType.AUDIT_ONLY)
{
    +                Pair<Boolean, String> answer = _nuageVspManagerClient.auditNuageVspCmsId(cmd.getNuageVspCmsId(),
cmd.getSyncType() == SyncType.AUDIT_ONLY);
    +                return new SyncNuageVspCmsIdAnswer(answer.getLeft(), answer.getRight(),
cmd.getSyncType());
    +            } else if (cmd.getSyncType() == SyncType.REGISTER) {
    +                String registeredNuageVspCmsId = _nuageVspManagerClient.registerNuageVspCmsId();
    +                return new SyncNuageVspCmsIdAnswer(StringUtils.isNotBlank(registeredNuageVspCmsId),
registeredNuageVspCmsId, cmd.getSyncType());
    +            } else {
    +                boolean success = _nuageVspManagerClient.unregisterNuageVspCmsId(cmd.getNuageVspCmsId());
    +                return new SyncNuageVspCmsIdAnswer(success, cmd.getNuageVspCmsId(), cmd.getSyncType());
    +            }
    +        } catch (Exception e) {
    --- End diff --
    
    Log the exception to error.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message