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:
parent
bda747804b
commit
843e89e7dd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user