janani b | f7060cd | 2017-03-28 19:06:30 +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 | f7060cd | 2017-03-28 19:06:30 +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.net.behaviour; |
| 18 | |
| 19 | import org.onosproject.net.driver.HandlerBehaviour; |
| 20 | |
| 21 | /** |
| 22 | * Behaviour for handling various drivers for l3vpn configurations. |
Thomas Vachuska | 52e0546 | 2017-08-25 17:38:27 -0700 | [diff] [blame] | 23 | * |
| 24 | * @deprecated in 1.11.0 ("Loon") release |
janani b | f7060cd | 2017-03-28 19:06:30 +0530 | [diff] [blame] | 25 | */ |
Thomas Vachuska | 52e0546 | 2017-08-25 17:38:27 -0700 | [diff] [blame] | 26 | @Deprecated |
janani b | d821b18 | 2017-03-30 16:34:49 +0530 | [diff] [blame] | 27 | public interface L3VpnConfig extends HandlerBehaviour { |
janani b | f7060cd | 2017-03-28 19:06:30 +0530 | [diff] [blame] | 28 | |
| 29 | /** |
| 30 | * Create virtual routing forwarding instance on requested device with |
| 31 | * given standard device model object data. |
| 32 | * |
| 33 | * @param objectData standard device model object data |
| 34 | * @return device model object data |
| 35 | */ |
| 36 | Object createInstance(Object objectData); |
| 37 | |
| 38 | /** |
| 39 | * Binds requested virtual routing forwarding instance to interface on the |
| 40 | * requested device with given standard device model object data. |
| 41 | * |
| 42 | * @param objectData standard device model object data |
| 43 | * @return device model object data |
| 44 | */ |
| 45 | Object bindInterface(Object objectData); |
| 46 | |
| 47 | /** |
| 48 | * Deletes virtual routing forwarding instance on requested device with |
| 49 | * given standard device model object data. |
| 50 | * |
| 51 | * @param objectData standard device model object data |
| 52 | * @return device model object data |
| 53 | */ |
| 54 | Object deleteInstance(Object objectData); |
| 55 | |
| 56 | /** |
| 57 | * Unbinds requested virtual routing forwarding instance to interface on the |
| 58 | * requested device with given standard device model object data. |
| 59 | * |
| 60 | * @param objectData standard device model object data |
| 61 | * @return device model object data |
| 62 | */ |
| 63 | Object unbindInterface(Object objectData); |
| 64 | |
| 65 | /** |
| 66 | * Creates BGP routing protocol info on requested device with given |
| 67 | * BGP info object. |
| 68 | * |
| 69 | * @param bgpInfo BGP info object |
| 70 | * @param bgpConfig BGP driver config |
| 71 | * @return device model object data |
| 72 | */ |
| 73 | Object createBgpInfo(Object bgpInfo, Object bgpConfig); |
| 74 | |
| 75 | /** |
| 76 | * Deletes BGP routing protocol info on requested device with given |
| 77 | * BGP info object. |
| 78 | * |
| 79 | * @param bgpInfo BGP info object |
| 80 | * @param bgpConfig BGP driver config |
| 81 | * @return device model object data |
| 82 | */ |
| 83 | Object deleteBgpInfo(Object bgpInfo, Object bgpConfig); |
| 84 | } |