YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Open Networking Laboratory |
| 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.controller; |
| 17 | |
| 18 | /** |
| 19 | * Ovsdb related constants. |
| 20 | */ |
| 21 | public final class OvsdbConstant { |
| 22 | |
| 23 | /** |
| 24 | * Default constructor. |
| 25 | * |
| 26 | * The constructor is private to prevent creating an instance of this |
| 27 | * utility class. |
| 28 | */ |
| 29 | private OvsdbConstant() { |
| 30 | } |
| 31 | |
| 32 | /** Ovsdb database Open_vSwitch. */ |
| 33 | public static final String DATABASENAME = "Open_vSwitch"; |
| 34 | |
| 35 | /** Ovsdb table Bridge. */ |
| 36 | public static final String BRIDGE = "Bridge"; |
| 37 | |
| 38 | /** Ovsdb table Interface. */ |
| 39 | public static final String INTERFACE = "Interface"; |
| 40 | |
| 41 | /** Ovsdb table Controller. */ |
| 42 | public static final String CONTROLLER = "Controller"; |
| 43 | |
| 44 | /** Ovsdb table Port. */ |
| 45 | public static final String PORT = "Port"; |
| 46 | |
| 47 | /** Ovsdb bridge name. */ |
| 48 | public static final String INTEGRATION_BRIDGE = "br-int"; |
| 49 | |
| 50 | /** Ovsdb vxlan tunnel type. */ |
| 51 | public static final String TYPEVXLAN = "vxlan"; |
| 52 | |
| 53 | /** Openflow version. */ |
| 54 | public static final String OPENFLOW13 = "OpenFlow13"; |
| 55 | |
| 56 | /** Ovsdb external_id_interface_id.. */ |
| 57 | public static final String EXTERNAL_ID_INTERFACE_ID = "iface-id"; |
| 58 | |
| 59 | /** Ovsdb external_id_vm_mac. */ |
| 60 | public static final String EXTERNAL_ID_VM_MAC = "attached-mac"; |
| 61 | |
| 62 | /** Openflow port. */ |
Charles Chan | 45624b8 | 2015-08-24 00:29:20 +0800 | [diff] [blame] | 63 | public static final int OFPORT = 6653; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 64 | |
| 65 | /** Ovsdb port. */ |
| 66 | public static final int OVSDBPORT = 6640; |
| 67 | |
| 68 | } |