diff options
-rw-r--r-- | ryu/lib/ovs/__init__.py | 0 | ||||
-rw-r--r-- | ryu/lib/ovs/vswitch_idl.py | 175 |
2 files changed, 175 insertions, 0 deletions
diff --git a/ryu/lib/ovs/__init__.py b/ryu/lib/ovs/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/ryu/lib/ovs/__init__.py diff --git a/ryu/lib/ovs/vswitch_idl.py b/ryu/lib/ovs/vswitch_idl.py new file mode 100644 index 00000000..192c889e --- /dev/null +++ b/ryu/lib/ovs/vswitch_idl.py @@ -0,0 +1,175 @@ +# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. +# Copyright (C) 2012 Isaku Yamahata <yamahata at private email ne jp> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# created based on +# "version": "6.10.0" +# "cksum": "3699312094 16958" + +OVSREC_DB_NAME = 'Open_vSwitch' + +OVSREC_TABLE_BRIDGE = 'Bridge' +OVSREC_BRIDGE_COL_CONTROLLER = 'controller' +OVSREC_BRIDGE_COL_DATAPATH_ID = 'datapath_id' +OVSREC_BRIDGE_COL_DATAPATH_TYPE = 'datapath_type' +OVSREC_BRIDGE_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_BRIDGE_COL_FAIL_MODE = 'fail_mode' +OVSREC_BRIDGE_COL_FLOOD_VLANS = 'flood_vlans' +OVSREC_BRIDGE_COL_FLOW_TABLES = 'flow_tables' +OVSREC_BRIDGE_COL_MIRRORS = 'mirrors' +OVSREC_BRIDGE_COL_NAME = 'name' +OVSREC_BRIDGE_COL_NETFLOW = 'netflow' +OVSREC_BRIDGE_COL_OTHER_CONFIG = 'other_config' +OVSREC_BRIDGE_COL_PORTS = 'ports' +OVSREC_BRIDGE_COL_SFLOW = 'sflow' +OVSREC_BRIDGE_COL_STATUS = 'status' +OVSREC_BRIDGE_COL_STP_ENABLE = 'stp_enable' + +OVSREC_TABLE_CONTROLLER = 'Controller' +OVSREC_CONTROLLER_COL_CONNECTION_MODE = 'connection_mode' +OVSREC_CONTROLLER_COL_CONTROLLER_BURST_LIMIT = 'controller_burst_limit' +OVSREC_CONTROLLER_COL_CONTROLLER_RATE_LIMIT = 'controller_rate_limit' +OVSREC_CONTROLLER_COL_ENABLE_ASYNC_MESSAGES = 'enable_async_messages' +OVSREC_CONTROLLER_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_CONTROLLER_COL_INACTIVITY_PROBE = 'inactivity_probe' +OVSREC_CONTROLLER_COL_IS_CONNECTED = 'is_connected' +OVSREC_CONTROLLER_COL_LOCAL_GATEWAY = 'local_gateway' +OVSREC_CONTROLLER_COL_LOCAL_IP = 'local_ip' +OVSREC_CONTROLLER_COL_LOCAL_NETMASK = 'local_netmask' +OVSREC_CONTROLLER_COL_MAX_BACKOFF = 'max_backoff' +OVSREC_CONTROLLER_COL_OTHER_CONFIG = 'other_config' +OVSREC_CONTROLLER_COL_ROLE = 'role' +OVSREC_CONTROLLER_COL_STATUS = 'status' +OVSREC_CONTROLLER_COL_TARGET = 'target' + +OVSREC_TABLE_FLOW_TABLE = 'Flow_Table' +OVSREC_FLOW_TABLE_COL_FLOW_LIMIT = 'flow_limit' +OVSREC_FLOW_TABLE_COL_GROUPS = 'groups' +OVSREC_FLOW_TABLE_COL_NAME = 'name' +OVSREC_FLOW_TABLE_COL_OVERFLOW_POLICY = 'overflow_policy' + +OVSREC_TABLE_INTERFACE = 'Interface' +OVSREC_INTERFACE_COL_ADMIN_STATE = 'admin_state' +OVSREC_INTERFACE_COL_CFM_FAULT = 'cfm_fault' +OVSREC_INTERFACE_COL_CFM_FAULT_STATUS = 'cfm_fault_status' +OVSREC_INTERFACE_COL_CFM_HEALTH = 'cfm_health' +OVSREC_INTERFACE_COL_CFM_MPID = 'cfm_mpid' +OVSREC_INTERFACE_COL_CFM_REMOTE_MPIDS = 'cfm_remote_mpids' +OVSREC_INTERFACE_COL_CFM_REMOTE_OPSTATE = 'cfm_remote_opstate' +OVSREC_INTERFACE_COL_DUPLEX = 'duplex' +OVSREC_INTERFACE_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_INTERFACE_COL_INGRESS_POLICING_BURST = 'ingress_policing_burst' +OVSREC_INTERFACE_COL_INGRESS_POLICING_RATE = 'ingress_policing_rate' +OVSREC_INTERFACE_COL_LACP_CURRENT = 'lacp_current' +OVSREC_INTERFACE_COL_LINK_RESETS = 'link_resets' +OVSREC_INTERFACE_COL_LINK_SPEED = 'link_speed' +OVSREC_INTERFACE_COL_LINK_STATE = 'link_state' +OVSREC_INTERFACE_COL_MAC = 'mac' +OVSREC_INTERFACE_COL_MTU = 'mtu' +OVSREC_INTERFACE_COL_NAME = 'name' +OVSREC_INTERFACE_COL_OFPORT = 'ofport' +OVSREC_INTERFACE_COL_OPTIONS = 'options' +OVSREC_INTERFACE_COL_OTHER_CONFIG = 'other_config' +OVSREC_INTERFACE_COL_STATISTICS = 'statistics' +OVSREC_INTERFACE_COL_STATUS = 'status' +OVSREC_INTERFACE_COL_TYPE = 'type' + +OVSREC_TABLE_MANAGER = 'Manager' +OVSREC_MANAGER_COL_CONNECTION_MODE = 'connection_mode' +OVSREC_MANAGER_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_MANAGER_COL_INACTIVITY_PROBE = 'inactivity_probe' +OVSREC_MANAGER_COL_IS_CONNECTED = 'is_connected' +OVSREC_MANAGER_COL_MAX_BACKOFF = 'max_backoff' +OVSREC_MANAGER_COL_OTHER_CONFIG = 'other_config' +OVSREC_MANAGER_COL_STATUS = 'status' +OVSREC_MANAGER_COL_TARGET = 'target' + +OVSREC_TABLE_MIRROR = 'Mirror' +OVSREC_MIRROR_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_MIRROR_COL_NAME = 'name' +OVSREC_MIRROR_COL_OUTPUT_PORT = 'output_port' +OVSREC_MIRROR_COL_OUTPUT_VLAN = 'output_vlan' +OVSREC_MIRROR_COL_SELECT_ALL = 'select_all' +OVSREC_MIRROR_COL_SELECT_DST_PORT = 'select_dst_port' +OVSREC_MIRROR_COL_SELECT_SRC_PORT = 'select_src_port' +OVSREC_MIRROR_COL_SELECT_VLAN = 'select_vlan' +OVSREC_MIRROR_COL_STATISTICS = 'statistics' + +OVSREC_TABLE_NETFLOW = 'NetFlow' +OVSREC_NETFLOW_COL_ACTIVE_TIMEOUT = 'active_timeout' +OVSREC_NETFLOW_COL_ADD_ID_TO_INTERFACE = 'add_id_to_interface' +OVSREC_NETFLOW_COL_ENGINE_ID = 'engine_id' +OVSREC_NETFLOW_COL_ENGINE_TYPE = 'engine_type' +OVSREC_NETFLOW_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_NETFLOW_COL_TARGETS = 'targets' + +OVSREC_TABLE_OPEN_VSWITCH = 'Open_vSwitch' +OVSREC_OPEN_VSWITCH_COL_BRIDGES = 'bridges' +OVSREC_OPEN_VSWITCH_COL_CUR_CFG = 'cur_cfg' +OVSREC_OPEN_VSWITCH_COL_DB_VERSION = 'db_version' +OVSREC_OPEN_VSWITCH_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_OPEN_VSWITCH_COL_MANAGER_OPTIONS = 'manager_options' +OVSREC_OPEN_VSWITCH_COL_NEXT_CFG = 'next_cfg' +OVSREC_OPEN_VSWITCH_COL_OTHER_CONFIG = 'other_config' +OVSREC_OPEN_VSWITCH_COL_OVS_VERSION = 'ovs_version' +OVSREC_OPEN_VSWITCH_COL_SSL = 'ssl' +OVSREC_OPEN_VSWITCH_COL_STATISTICS = 'statistics' +OVSREC_OPEN_VSWITCH_COL_SYSTEM_TYPE = 'system_type' +OVSREC_OPEN_VSWITCH_COL_SYSTEM_VERSION = 'system_version' + +OVSREC_TABLE_PORT = 'Port' +OVSREC_PORT_COL_BOND_DOWNDELAY = 'bond_downdelay' +OVSREC_PORT_COL_BOND_FAKE_IFACE = 'bond_fake_iface' +OVSREC_PORT_COL_BOND_MODE = 'bond_mode' +OVSREC_PORT_COL_BOND_UPDELAY = 'bond_updelay' +OVSREC_PORT_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_PORT_COL_FAKE_BRIDGE = 'fake_bridge' +OVSREC_PORT_COL_INTERFACES = 'interfaces' +OVSREC_PORT_COL_LACP = 'lacp' +OVSREC_PORT_COL_MAC = 'mac' +OVSREC_PORT_COL_NAME = 'name' +OVSREC_PORT_COL_OTHER_CONFIG = 'other_config' +OVSREC_PORT_COL_QOS = 'qos' +OVSREC_PORT_COL_STATISTICS = 'statistics' +OVSREC_PORT_COL_STATUS = 'status' +OVSREC_PORT_COL_TAG = 'tag' +OVSREC_PORT_COL_TRUNKS = 'trunks' +OVSREC_PORT_COL_VLAN_MODE = 'vlan_mode' + +OVSREC_TABLE_QOS = 'QoS' +OVSREC_QOS_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_QOS_COL_OTHER_CONFIG = 'other_config' +OVSREC_QOS_COL_QUEUES = 'queues' +OVSREC_QOS_COL_TYPE = 'type' + +OVSREC_TABLE_QUEUE = 'Queue' +OVSREC_QUEUE_COL_DSCP = 'dscp' +OVSREC_QUEUE_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_QUEUE_COL_OTHER_CONFIG = 'other_config' + +OVSREC_TABLE_SSL = 'SSL' +OVSREC_SSL_COL_BOOTSTRAP_CA_CERT = 'bootstrap_ca_cert' +OVSREC_SSL_COL_CA_CERT = 'ca_cert' +OVSREC_SSL_COL_CERTIFICATE = 'certificate' +OVSREC_SSL_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_SSL_COL_PRIVATE_KEY = 'private_key' + +OVSREC_TABLE_SFLOW = 'sFlow' +OVSREC_SFLOW_COL_AGENT = 'agent' +OVSREC_SFLOW_COL_EXTERNAL_IDS = 'external_ids' +OVSREC_SFLOW_COL_HEADER = 'header' +OVSREC_SFLOW_COL_POLLING = 'polling' +OVSREC_SFLOW_COL_SAMPLING = 'sampling' +OVSREC_SFLOW_COL_TARGETS = 'targets' |