Sho SHIMIZU | e4efe45 | 2015-08-26 15:06:55 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
Sho SHIMIZU | e4efe45 | 2015-08-26 15:06:55 -0700 | [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.ovsdb.rfc.table; |
| 17 | |
| 18 | /** |
| 19 | * Ovsdb table name. Refer to RFC7047's Section 9.2. |
| 20 | */ |
| 21 | public enum OvsdbTable { |
| 22 | INTERFACE("Interface"), BRIDGE("Bridge"), CONTROLLER("Controller"), |
| 23 | PORT("Port"), OPENVSWITCH("Open_vSwitch"), FLWTABLE("Flow_Table"), |
Frank Wang | 2808230 | 2016-09-20 14:43:29 +0800 | [diff] [blame] | 24 | QOS("QoS"), QUEUE("Queue"), MIRROR("Mirror"), MANAGER("Manager"), |
Sho SHIMIZU | e4efe45 | 2015-08-26 15:06:55 -0700 | [diff] [blame] | 25 | NETFLOW("NetFlow"), SSL("SSL"), SFLOW("sFlow"), IPFIX("IPFIX"), |
| 26 | FLOWSAMPLECOLLECTORSET("Flow_Sample_Collector_Set"); |
| 27 | |
| 28 | private final String tableName; |
| 29 | |
kdarapu | fce5abb | 2018-05-10 19:37:53 +0530 | [diff] [blame^] | 30 | OvsdbTable(String tableName) { |
Sho SHIMIZU | e4efe45 | 2015-08-26 15:06:55 -0700 | [diff] [blame] | 31 | this.tableName = tableName; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Returns the table name for OvsdbTable. |
| 36 | * @return the table name |
| 37 | */ |
| 38 | public String tableName() { |
| 39 | return tableName; |
| 40 | } |
| 41 | } |