Change BGP to use bgp-id type and as-number type
[bgpcep.git] / bgp / openconfig-spi / src / main / java / org / opendaylight / protocol / bgp / openconfig / spi / pojo / BGPAppPeerInstanceConfiguration.java
1 /*
2  * Copyright (c) 2015 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.openconfig.spi.pojo;
10
11 import com.google.common.base.Preconditions;
12 import org.opendaylight.protocol.bgp.openconfig.spi.InstanceConfigurationIdentifier;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.BgpId;
15
16 /**
17  * POJO for holding BGP Application Peer module instance configuration
18  *
19  */
20 public final class BGPAppPeerInstanceConfiguration extends AbstractInstanceConfiguration {
21
22     private final String appRibId;
23     private final BgpId bgpId;
24
25     public BGPAppPeerInstanceConfiguration(final InstanceConfigurationIdentifier instanceName, final String appRibId, final BgpId bgpId) {
26         super(instanceName);
27         this.appRibId = Preconditions.checkNotNull(appRibId);
28         this.bgpId = Preconditions.checkNotNull(bgpId);
29     }
30
31     public String getAppRibId() {
32         return appRibId;
33     }
34
35     public Ipv4Address getBgpId() {
36         return bgpId;
37     }
38
39 }