Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 5beb443

Browse files
committed
Add optional elements in v0x01 Hello
For spec compliance. Ignore the elements as they're not used. Fix #379
1 parent 57b31d9 commit 5beb443

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pyof/v0x01/symmetric/hello.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Third-party imports
66

77
from pyof.foundation.base import GenericMessage
8+
from pyof.foundation.basic_types import BinaryData
89
from pyof.v0x01.common.header import Header, Type
910

1011
__all__ = ('Hello',)
@@ -19,3 +20,4 @@ class Hello(GenericMessage):
1920
"""
2021

2122
header = Header(message_type=Type.OFPT_HELLO, length=8)
23+
elements = BinaryData()

0 commit comments

Comments
 (0)