blob: 9fcc9bf359dd8a13c87d3dc81399466a0e522445 [file] [log] [blame]
#
# Copyright 2012, 2013, Big Switch Networks, Inc.
#
# 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.
# Automatically generated by LOXI from template toplevel_init.py
# Do not modify
def protocol(ver):
"""
Import and return the protocol module for the given wire version.
"""
if ver == 1:
import of10
return of10
else:
raise ValueError
class ProtocolError(Exception):
"""
Raised when failing to deserialize an invalid OpenFlow message.
"""
pass