SONA Project | 6bc5c4a | 2018-12-14 23:49:52 +0900 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2018-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 | */ |
| 16 | package org.onosproject.openstacknetworking.api; |
| 17 | |
| 18 | /** |
| 19 | * Representation of augmented openstack network. |
| 20 | */ |
| 21 | public interface OpenstackNetwork { |
| 22 | |
| 23 | /** |
| 24 | * Lists of network type. |
| 25 | */ |
| 26 | enum Type { |
| 27 | |
| 28 | /** |
| 29 | * LOCAL typed network. |
| 30 | */ |
| 31 | LOCAL, |
| 32 | |
| 33 | /** |
| 34 | * FLAT typed network. |
| 35 | */ |
| 36 | FLAT, |
| 37 | |
| 38 | /** |
| 39 | * VLAN typed virtual network. |
| 40 | */ |
| 41 | VLAN, |
| 42 | |
| 43 | /** |
| 44 | * VXLAN typed virtual network. |
| 45 | */ |
| 46 | VXLAN, |
| 47 | |
| 48 | /** |
| 49 | * GRE typed virtual network. |
| 50 | */ |
| 51 | GRE, |
| 52 | |
| 53 | /** |
| 54 | * GENEVE typed virtual network. |
| 55 | */ |
| 56 | GENEVE |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Returns the openstack network ID of the augmented network. |
| 61 | * |
| 62 | * @return openstack network ID |
| 63 | */ |
| 64 | String networkId(); |
| 65 | |
| 66 | /** |
| 67 | * Returns openstack network type. |
| 68 | * |
| 69 | * @return oepnstack network type |
| 70 | */ |
| 71 | Type type(); |
| 72 | } |