BUG-45 : migrated Extended Communities path attribute to generated source code.
[bgpcep.git] / concepts / src / main / java / org / opendaylight / protocol / concepts / IPv6Prefix.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, 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 package org.opendaylight.protocol.concepts;
9
10 import javax.annotation.concurrent.Immutable;
11
12 /**
13  * IPv6 Address prefix.
14  */
15 @Immutable
16 public class IPv6Prefix extends AbstractPrefix<IPv6Address> {
17         private static final long serialVersionUID = 8936908223539148352L;
18
19         /**
20          * Create a new IPv6 prefix using an IPv6 address and prefix
21          * length.
22          *
23          * @param address IPv6 address {@link IPv6Address}
24          * @param length Prefix length
25          */
26         public IPv6Prefix(final IPv6Address address, final int length) {
27                 super(address, length);
28         }
29
30         @Override
31         public IPv6 getAddressFamily() {
32                 return IPv6.FAMILY;
33         }
34 }