Hyunsun Moon | 0d45736 | 2017-06-27 17:19:41 +0900 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
Hyunsun Moon | 0d45736 | 2017-06-27 17:19:41 +0900 | [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 | package org.onosproject.openstacknode.api; |
| 17 | |
| 18 | /** |
| 19 | * Service handling openstack node state. |
| 20 | */ |
| 21 | public interface OpenstackNodeHandler { |
| 22 | |
| 23 | /** |
| 24 | * Processes the given node for init state. |
| 25 | * It creates required bridges on OVS based on the node type. |
| 26 | * |
| 27 | * @param osNode openstack node |
| 28 | */ |
| 29 | void processInitState(OpenstackNode osNode); |
| 30 | |
| 31 | /** |
| 32 | * Processes the given node for device created state. |
| 33 | * It creates required ports on the bridges based on the node type. |
| 34 | * |
| 35 | * @param osNode openstack node |
| 36 | */ |
| 37 | void processDeviceCreatedState(OpenstackNode osNode); |
| 38 | |
| 39 | /** |
| 40 | * Processes the given node for port created state. |
| 41 | * It creates gateway groups on compute node. |
| 42 | * |
| 43 | * @param osNode openstack node |
| 44 | */ |
| 45 | void processPortCreatedState(OpenstackNode osNode); |
| 46 | |
| 47 | /** |
| 48 | * Processes the given node for complete state. |
| 49 | * It performs post-init jobs for the complete node. |
| 50 | * |
| 51 | * @param osNode openstack node |
| 52 | */ |
| 53 | void processCompleteState(OpenstackNode osNode); |
| 54 | |
| 55 | /** |
| 56 | * Processes the given node for incomplete state. |
| 57 | * |
| 58 | * @param osNode openstack node |
| 59 | */ |
| 60 | void processIncompleteState(OpenstackNode osNode); |
| 61 | } |