blob: ee3487fb647f4e5400b0aea829da4ec71eee79da [file] [log] [blame]
Jian Li3e81b182021-01-11 02:35:06 +09001/*
2 * Copyright 2021-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.kubevirtnetworking.api;
17
18import org.onosproject.event.AbstractEvent;
19
20/**
21 * Describes kubevirt network service event.
22 */
23public class KubevirtNetworkEvent extends AbstractEvent<KubevirtNetworkEvent.Type, KubevirtNetwork> {
24
25 public KubevirtNetworkEvent(Type type, KubevirtNetwork subject) {
26 super(type, subject);
27 }
28
29 /**
30 * kubevirt network events.
31 */
32 public enum Type {
33
34 /**
35 * Signifies that a new kubevirt network is created.
36 */
37 KUBEVIRT_NETWORK_CREATED,
38
39 /**
40 * Signifies that the kubevirt network is updated.
41 */
42 KUBEVIRT_NETWORK_UPDATED,
43
44 /**
45 * Signifies that the kubevirt network is removed.
46 */
47 KUBEVIRT_NETWORK_REMOVED,
48 }
49}