By the way, this is for a Basic Zone.

On 2/14/17, 2:44 PM, "Tutkowski, Mike" <mike.tutkow...@netapp.com> wrote:

    Hi,
    
    I’m getting a NullPointerException when trying to create a zone using 
master.
    
    Below is the relevant code in ConfigurationManagerImpl.
    
    In the else block, network.getCidr() returns null and 
NetUtil.getCidrNetmask then throws a NullPointerException.
    
    I noticed that network.getGateway() also returns null (which seems odd).
    
    Thoughts on this?
    
    Thanks!
    Mike
    
    public Pair<Boolean, Pair<String, String>> validateIpRange(final String 
startIP, final String endIP, final String newVlanGateway, final String 
newVlanNetmask, final List<VlanVO> vlans, final boolean ipv4,
            final boolean ipv6, String ip6Gateway, String ip6Cidr, final String 
startIPv6, final String endIPv6, final Network network) {
        String vlanGateway = null;
        String vlanNetmask = null;
        boolean sameSubnet = false;
        if (CollectionUtils.isNotEmpty(vlans)) {
            for (final VlanVO vlan : vlans) {
                vlanGateway = vlan.getVlanGateway();
                vlanNetmask = vlan.getVlanNetmask();
                sameSubnet = hasSameSubnet(ipv4, vlanGateway, vlanNetmask, 
newVlanGateway, newVlanNetmask, startIP, endIP,
                        ipv6, ip6Gateway, ip6Cidr, startIPv6, endIPv6, network);
                if (sameSubnet) break;
            }
        } else {
            vlanGateway = network.getGateway();
            vlanNetmask = NetUtils.getCidrNetmask(network.getCidr());
    
    

Reply via email to