janani b | f41dec3 | 2017-03-24 18:44:07 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
janani b | f41dec3 | 2017-03-24 18:44:07 +0530 | [diff] [blame] | 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 | |
| 17 | package org.onosproject.l3vpn.netl3vpn; |
| 18 | |
| 19 | /** |
| 20 | * Representation of BGP configuration required for driver to process. |
| 21 | */ |
| 22 | public class BgpDriverInfo { |
| 23 | |
| 24 | /** |
| 25 | * Model id level of the BGP information that needed to be added in store. |
| 26 | */ |
janani b | 9ed76be | 2017-08-29 19:11:33 +0530 | [diff] [blame] | 27 | private ModelIdLevel modIdLevel; |
janani b | f41dec3 | 2017-03-24 18:44:07 +0530 | [diff] [blame] | 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 | */ |
janani b | 9ed76be | 2017-08-29 19:11:33 +0530 | [diff] [blame] | 40 | public BgpDriverInfo(ModelIdLevel m, String d) { |
janani b | f41dec3 | 2017-03-24 18:44:07 +0530 | [diff] [blame] | 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 b | 9ed76be | 2017-08-29 19:11:33 +0530 | [diff] [blame] | 50 | public ModelIdLevel modIdLevel() { |
janani b | f41dec3 | 2017-03-24 18:44:07 +0530 | [diff] [blame] | 51 | return modIdLevel; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Returns the device id. |
| 56 | * |
| 57 | * @return device id |
| 58 | */ |
janani b | 35f6cbc | 2017-03-24 21:56:58 +0530 | [diff] [blame] | 59 | public String devId() { |
janani b | f41dec3 | 2017-03-24 18:44:07 +0530 | [diff] [blame] | 60 | return devId; |
| 61 | } |
janani b | f41dec3 | 2017-03-24 18:44:07 +0530 | [diff] [blame] | 62 | } |