blob: ec7058f664c3f4f59d84e057ab101d29d9d7989a [file] [log] [blame]
janani bf41dec32017-03-24 18:44:07 +05301/*
2 * Copyright 2017-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.l3vpn.netl3vpn;
18
19/**
20 * Representation of BGP configuration required for driver to process.
21 */
22public class BgpDriverInfo {
23
24 /**
25 * Model id level of the BGP information that needed to be added in store.
26 */
27 private BgpModelIdLevel modIdLevel;
28
29 /**
30 * Device id required for the creation of driver model object data.
31 */
32 private String devId;
33
34 /**
35 * Constructs BGP driver info.
36 *
37 * @param m model id level for BGP
38 * @param d device id
39 */
40 public BgpDriverInfo(BgpModelIdLevel m, String d) {
41 modIdLevel = m;
42 devId = d;
43 }
44
45 /**
46 * Returns the model id level of the BGP information to be added.
47 *
48 * @return model id level
49 */
janani b35f6cbc2017-03-24 21:56:58 +053050 public BgpModelIdLevel modIdLevel() {
janani bf41dec32017-03-24 18:44:07 +053051 return modIdLevel;
52 }
53
54 /**
55 * Returns the device id.
56 *
57 * @return device id
58 */
janani b35f6cbc2017-03-24 21:56:58 +053059 public String devId() {
janani bf41dec32017-03-24 18:44:07 +053060 return devId;
61 }
janani bf41dec32017-03-24 18:44:07 +053062}