Signed-off-by: Isaku Yamahata <yamah...@valinux.co.jp> --- ryu/lib/packet/packet_base.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/ryu/lib/packet/packet_base.py b/ryu/lib/packet/packet_base.py index 847e5ce..c3f76e3 100644 --- a/ryu/lib/packet/packet_base.py +++ b/ryu/lib/packet/packet_base.py @@ -13,9 +13,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +import abc + class PacketBase(object): """A base class for a protocol (ethernet, ipv4, ...) header.""" + __metaclass__ = abc.ABCMeta _TYPES = {} @classmethod @@ -43,6 +46,7 @@ class PacketBase(object): return self.__class__.__name__ @classmethod + @abc.abstractmethod def parser(cls, buf): """Decode a protocol header. -- 1.7.10.4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel