BUG-45 : migrated AsNumber to generated source code.
[bgpcep.git] / bgp / concepts / src / main / java / org / opendaylight / protocol / bgp / concepts / RouteOriginCommunity.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
9 package org.opendaylight.protocol.bgp.concepts;
10
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.AsNumber;
12
13 /**
14  * @see <a href="http://tools.ietf.org/html/rfc4360#section-5">Route Origin Community</a>
15  */
16 public class RouteOriginCommunity extends ASSpecificExtendedCommunity {
17
18         private static final long serialVersionUID = 540725495203637583L;
19
20         /**
21          * Construct a RouteOriginCommunity based on global and local administrator values.
22          * 
23          * @param globalAdmin Global administrator (AS number)
24          * @param localAdmin Local administrator (AS-specific, opaque value)
25          */
26         public RouteOriginCommunity(final AsNumber globalAdmin, final byte[] localAdmin) {
27                 super(false, 3, globalAdmin, localAdmin);
28         }
29 }