changed license year
[lispflowmapping.git] / mappingservice / api / src / main / java / org / opendaylight / lispflowmapping / type / lisp / address / LispIpv6Address.java
1 /*
2  * Copyright (c) 2014 Contextream, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.lispflowmapping.type.lisp.address;
10
11 import java.net.InetAddress;
12
13 import org.opendaylight.lispflowmapping.type.AddressFamilyNumberEnum;
14
15 public class LispIpv6Address extends LispIPAddress {
16
17     public LispIpv6Address(InetAddress address) {
18         super(address, AddressFamilyNumberEnum.IP6);
19     }
20
21     public LispIpv6Address(byte[] address) {
22         super(address, AddressFamilyNumberEnum.IP6);
23     }
24
25     public LispIpv6Address(String name) {
26         super(name, AddressFamilyNumberEnum.IP6);
27     }
28
29     public int getMaxMask() {
30         return 128;
31     }
32
33     @Override
34     public LispIpv6Address clone() {
35         LispIpv6Address clonedAddress = new LispIpv6Address(address.getHostAddress());
36         return clonedAddress;
37     }
38
39 }