ProtocolDesc: provide supported_ofp_version for ofp_handler

Reported-by: watanabe.fumitaka
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2014-02-06 15:47:36 +09:00 committed by FUJITA Tomonori
parent bda747804b
commit 843e89e7dd

View File

@ -56,3 +56,7 @@ class ProtocolDesc(object):
def set_version(self, version): def set_version(self, version):
assert version in _supported_versions assert version in _supported_versions
(self.ofproto, self.ofproto_parser) = _versions[version] (self.ofproto, self.ofproto_parser) = _versions[version]
@property
def supported_ofp_version(self):
return _supported_versions