blob: e1b795ae76743a0a91ef8db97eabde7d6f702b09 [file] [log] [blame]
Jian Li4eb0cf42020-12-19 04:01:49 +09001/*
2 * Copyright 2020-present Open Networking Foundation
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 */
16package org.onosproject.kubevirtnode.api;
17
18/**
19 * Service handling KubeVirt node state.
20 */
21public interface KubevirtNodeHandler {
Jian Li4fe40e52021-01-06 03:29:58 +090022
23 /**
24 * Processes the given node for init state.
25 * It creates required bridges on OVS by referring to node type.
26 *
27 * @param node kubevirt node
28 */
29 void processInitState(KubevirtNode node);
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 node kubevirt node
36 */
37 void processDeviceCreatedState(KubevirtNode node);
38
39 /**
40 * Processes the given node for complete state.
41 * It performs post-init jobs for the complete node.
42 *
43 * @param node kubevirt node
44 */
45 void processCompleteState(KubevirtNode node);
46
47 /**
48 * Processes the given node for incomplete state.
49 *
50 * @param node kubevirt node
51 */
52 void processIncompleteState(KubevirtNode node);
53
54 /**
55 * Processes the given node for on boarded state.
56 *
57 * @param node kubevirt node
58 */
59 void processOnBoardedState(KubevirtNode node);
Jian Li4eb0cf42020-12-19 04:01:49 +090060}