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