2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.protocol.bgp.parser.impl;
12 import org.opendaylight.protocol.bgp.linkstate.SourceProtocol;
13 import org.opendaylight.protocol.bgp.linkstate.IPv6PrefixIdentifier;
16 * IPv6 implementation of {@link MPReach}.
18 public class BGPIPv6PrefixMP extends AbstractLinkstateMP<IPv6PrefixIdentifier> {
20 private final Set<IPv6PrefixIdentifier> prefixes;
23 * Creates BGP IPv6 Prefix.
25 * @param identifier long
26 * @param sourceProtocol {@link SourceProtocol}
27 * @param prefixes set of prefix descriptors
28 * @param reachable true if the attribute is MPReach, false if the attribute is MPUnreach
30 public BGPIPv6PrefixMP(final long identifier, final SourceProtocol sourceProtocol, final Set<IPv6PrefixIdentifier> prefixes,
31 final boolean reachable) {
32 super(identifier, sourceProtocol, reachable);
33 this.prefixes = prefixes;
37 public Set<IPv6PrefixIdentifier> getNlri() {