cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nlivens <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8832 : Update Nuage VSP plugin...
Date Tue, 27 Oct 2015 08:21:51 GMT
Github user nlivens commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/801#discussion_r43093192
  
    --- Diff: plugins/network-elements/nuage-vsp/src/com/cloud/agent/api/guru/ReserveVmInterfaceVspCommand.java
---
    @@ -87,29 +114,285 @@ public boolean isDomainRouter() {
             return _isDomainRouter;
         }
     
    -    public String _getDomainRouterIp() {
    +    public String getDomainRouterIp() {
             return _domainRouterIp;
         }
     
    -    public String _getVmInstanceName() {
    +    public String getVmInstanceName() {
             return _vmInstanceName;
         }
     
    -    public String _getVmUuid() {
    +    public String getVmUuid() {
             return _vmUuid;
         }
     
    -    public String _getVmUserName() {
    +    public String getVmUserName() {
             return _vmUserName;
         }
     
    -    public String _getVmUserDomainName() {
    +    public String getVmUserDomainName() {
             return _vmUserDomainName;
         }
     
    +    public boolean useStaticIp() {
    +        return _useStaticIp;
    +    }
    +
    +    public String getStaticIp() {
    +        return _staticIp;
    +    }
    +
    +    public String getStaticNatIpUuid() {
    +        return _staticNatIpUuid;
    +    }
    +
    +    public String getStaticNatIpAddress() {
    +        return _staticNatIpAddress;
    +    }
    +
    +    public boolean isStaticNatIpAllocated() {
    +        return _isStaticNatIpAllocated;
    +    }
    +
    +    public boolean isOneToOneNat() {
    +        return _isOneToOneNat;
    +    }
    +
    +    public String getStaticNatVlanUuid() {
    +        return _staticNatVlanUuid;
    +    }
    +
    +    public String getStaticNatVlanGateway() {
    +        return _staticNatVlanGateway;
    +    }
    +
    +    public String getStaticNatVlanNetmask() {
    +        return _staticNatVlanNetmask;
    +    }
    +
    +    public static class Builder implements CmdBuilder<ReserveVmInterfaceVspCommand>
{
    +        private String _nicUuid;
    +        private String _nicMacAddress;
    +        private String _networkUuid;
    +        private boolean _isL3Network;
    +        private boolean _isSharedNetwork;
    +        private String _vpcUuid;
    +        private String _networkDomainUuid;
    +        private String _networksAccountUuid;
    +        private boolean _isDomainRouter;
    +        private String _domainRouterIp;
    +        private String _vmInstanceName;
    +        private String _vmUuid;
    +        private String _vmUserName;
    +        private String _vmUserDomainName;
    +        private boolean _useStaticIp;
    +        private String _staticIp;
    +        private String _staticNatIpUuid;
    +        private String _staticNatIpAddress;
    +        private boolean _isStaticNatIpAllocated;
    +        private boolean _isOneToOneNat;
    +        private String _staticNatVlanUuid;
    +        private String _staticNatVlanGateway;
    +        private String _staticNatVlanNetmask;
    +
    +        public Builder nicUuid(String nicUuid) {
    +            this._nicUuid = nicUuid;
    +            return this;
    +        }
    +
    +        public Builder nicMacAddress(String nicMacAddress) {
    +            this._nicMacAddress = nicMacAddress;
    +            return this;
    +        }
    +
    +        public Builder networkUuid(String networkUuid) {
    +            this._networkUuid = networkUuid;
    +            return this;
    +        }
    +
    +        public Builder isL3Network(boolean isL3Network) {
    +            this._isL3Network = isL3Network;
    +            return this;
    +        }
    +
    +        public Builder isSharedNetwork(boolean isSharedNetwork) {
    +            this._isSharedNetwork = isSharedNetwork;
    +            return this;
    +        }
    +
    +        public Builder vpcUuid(String vpcUuid) {
    +            this._vpcUuid = vpcUuid;
    +            return this;
    +        }
    +
    +        public Builder networkDomainUuid(String networkDomainUuid) {
    +            this._networkDomainUuid = networkDomainUuid;
    +            return this;
    +        }
    +
    +        public Builder networksAccountUuid(String networksAccountUuid) {
    +            this._networksAccountUuid = networksAccountUuid;
    +            return this;
    +        }
    +
    +        public Builder isDomainRouter(boolean isDomainRouter) {
    +            this._isDomainRouter = isDomainRouter;
    +            return this;
    +        }
    +
    +        public Builder domainRouterIp(String domainRouterIp) {
    +            this._domainRouterIp = domainRouterIp;
    +            return this;
    +        }
    +
    +        public Builder vmInstanceName(String vmInstanceName) {
    +            this._vmInstanceName = vmInstanceName;
    +            return this;
    +        }
    +
    +        public Builder vmUuid(String vmUuid) {
    +            this._vmUuid = vmUuid;
    +            return this;
    +        }
    +
    +        public Builder vmUserName(String vmUserName) {
    +            this._vmUserName = vmUserName;
    +            return this;
    +        }
    +
    +        public Builder vmUserDomainName(String vmUserDomainName) {
    +            this._vmUserDomainName = vmUserDomainName;
    +            return this;
    +        }
    +
    +        public Builder useStaticIp(boolean useStaticIp) {
    +            this._useStaticIp = useStaticIp;
    +            return this;
    +        }
    +
    +        public Builder staticIp(String staticIp) {
    +            this._staticIp = staticIp;
    +            return this;
    +        }
    +
    +        public Builder staticNatIpUuid(String staticNatIpUuid) {
    +            this._staticNatIpUuid = staticNatIpUuid;
    +            return this;
    +        }
    +
    +        public Builder staticNatIpAddress(String staticNatIpAddress) {
    +            this._staticNatIpAddress = staticNatIpAddress;
    +            return this;
    +        }
    +
    +        public Builder isStaticNatIpAllocated(boolean isStaticNatIpAllocated) {
    +            this._isStaticNatIpAllocated = isStaticNatIpAllocated;
    +            return this;
    +        }
    +
    +        public Builder isOneToOneNat(boolean isOneToOneNat) {
    +            this._isOneToOneNat = isOneToOneNat;
    +            return this;
    +        }
    +
    +        public Builder staticNatVlanUuid(String staticNatVlanUuid) {
    +            this._staticNatVlanUuid = staticNatVlanUuid;
    +            return this;
    +        }
    +
    +        public Builder staticNatVlanGateway(String staticNatVlanGateway) {
    +            this._staticNatVlanGateway = staticNatVlanGateway;
    +            return this;
    +        }
    +
    +        public Builder staticNatVlanNetmask(String staticNatVlanNetmask) {
    +            this._staticNatVlanNetmask = staticNatVlanNetmask;
    +            return this;
    +        }
    +
    +        @Override
    +        public ReserveVmInterfaceVspCommand build() {
    +            return new ReserveVmInterfaceVspCommand(_nicUuid, _nicMacAddress, _networkUuid,
_isL3Network, _isSharedNetwork, _vpcUuid, _networkDomainUuid, _networksAccountUuid,
    +                    _isDomainRouter, _domainRouterIp, _vmInstanceName, _vmUuid, _vmUserName,
_vmUserDomainName, _useStaticIp, _staticIp, _staticNatIpUuid, _staticNatIpAddress,
    +                    _isStaticNatIpAllocated, _isOneToOneNat, _staticNatVlanUuid, _staticNatVlanGateway,
_staticNatVlanNetmask);
    +        }
    +    }
    +
         @Override
         public boolean executeInSequence() {
             return false;
         }
     
    +    @Override
    +    public boolean equals(Object o) {
    --- End diff --
    
    Implemented <code>equals</code> method for the <code>Command</code>
super class, calling it from subclass.


---
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