From 143711314318eb7059c93af9c40cad57a860f26b Mon Sep 17 00:00:00 2001 From: Artur Baruchi Date: Wed, 14 Sep 2016 16:04:00 -0300 Subject: [PATCH] StatsReply is no longer used in v0x04, remove the file stats_reply.py - Issue #158 --- pyof/v0x04/controller2switch/stats_reply.py | 38 --------------------- 1 file changed, 38 deletions(-) delete mode 100644 pyof/v0x04/controller2switch/stats_reply.py diff --git a/pyof/v0x04/controller2switch/stats_reply.py b/pyof/v0x04/controller2switch/stats_reply.py deleted file mode 100644 index ac883479c..000000000 --- a/pyof/v0x04/controller2switch/stats_reply.py +++ /dev/null @@ -1,38 +0,0 @@ -"""Response the stat request packet from the controller.""" - -# System imports - -# Third-party imports - -# Local imports -from pyof.foundation.base import GenericMessage -from pyof.foundation.basic_types import ConstantTypeList, UBInt16 -from pyof.v0x04.common.header import Header, Type -from pyof.v0x04.controller2switch.common import StatsTypes - -__all__ = ('StatsReply',) - -# Classes - - -class StatsReply(GenericMessage): - """Class implements the response to the config request.""" - - #: OpenFlow :class:`.Header` - header = Header(message_type=Type.OFPT_STATS_REPLY) - body_type = UBInt16(enum_ref=StatsTypes) - flags = UBInt16() - body = ConstantTypeList() - - def __init__(self, xid=None, body_type=None, flags=None, body=None): - """The constructor just assings parameters to object attributes. - - Args: - body_type (StatsTypes): One of the OFPST_* constants. - flags (int): OFPSF_REQ_* flags (none yet defined). - body (ConstantTypeList): Body of the request. - """ - super().__init__(xid) - self.body_type = body_type - self.flags = flags - self.body = [] if body is None else body