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

v0x05 implementation #556

Open
wants to merge 83 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
7b797a6
Create the packages v0x05 and symmetric
Apr 8, 2019
60465df
Created the file hello and its classes. There missing files that will…
Apr 8, 2019
992480d
Change an import from the system to one of the classes IntEnum
Apr 8, 2019
8034758
Created missing files for the hello messages. Added the Header and co…
Apr 10, 2019
0e94dc9
Delete R_User_Library.xml
RoyAl82 Apr 10, 2019
35e1a58
Delete vcs.xml
RoyAl82 Apr 10, 2019
297539e
Deleted repeated comments under HelloElemVersionBitmap.
RoyAl82 May 7, 2019
e5f4c58
Deleted repeated comments in the Header Class.
RoyAl82 May 7, 2019
a7d322f
Merge branch 'master' into v0x05/symmetric/hello
RoyAl82 May 7, 2019
3b09f3b
Deleted extra space before the __init__ method
RoyAl82 May 7, 2019
58d87f5
Fix some indentation and spaces in comments
RoyAl82 May 7, 2019
81322f9
All indentation and spaces in Header files has been fix in relation t…
RoyAl82 May 7, 2019
6902c53
Eliminated the warnings in the hello file
RoyAl82 May 7, 2019
82be74e
Merge pull request #1 from RoyAl82/temp
RoyAl82 May 7, 2019
53540ac
Changing the comment in the HelloElemVersionBitmap
RoyAl82 May 7, 2019
bdc2bb9
Changing the indentation in the HelloElemVersionBitmap
RoyAl82 May 7, 2019
da312ff
Changing the indentation and creating spaces to the HelloElemVersionB…
RoyAl82 May 8, 2019
22929e5
Rewrite the method HelloElemVersionBitmap
RoyAl82 May 8, 2019
dcaa2a5
add some space the method HelloElemVersionBitmap: 3
RoyAl82 May 8, 2019
060f1f2
add some space the method HelloElemVersionBitmap: 8 and the method __…
RoyAl82 May 8, 2019
c673841
Add some space to the comment in the method HelloElemVersionBitmap
RoyAl82 May 8, 2019
dc0bb8a
Add some space to the comment in the method HelloElemVersionBitmap
RoyAl82 May 8, 2019
2338d32
Add some space to the comment in the method HelloElemVersionBitmap
RoyAl82 May 8, 2019
0b1a82c
Change the parameter representation to the method __init__ in the cla…
RoyAl82 May 8, 2019
f5bebf7
Changed variable name in the HelloElemHeader
RoyAl82 May 8, 2019
de1c697
Changed the type its variable name in the HelloElemHeader
RoyAl82 May 8, 2019
16bd2bb
Change the name of HelloElemHeader to eliminate the cross-reference
RoyAl82 May 8, 2019
53452f8
Change the name in the all list
RoyAl82 May 8, 2019
c722bce
Fix minor changes to comply with the docstring
RoyAl82 May 8, 2019
9627614
Fix indentation
RoyAl82 May 8, 2019
6609355
Add a blank line to the definition in HelloElemVersionBitmap
RoyAl82 May 8, 2019
c3718ac
Add a blank line to the definition in HelloElemVersionBitmap
RoyAl82 May 8, 2019
33ecf23
Add a blank line to the definition in HelloElemVersionBitmap to fix t…
RoyAl82 May 8, 2019
40ff5de
Add a newlines, spaces to fix the indentation
RoyAl82 May 8, 2019
843bd3f
Add a newlines, spaces to fix the indentation
RoyAl82 May 8, 2019
e742e9d
Add a newlines, spaces to fix the indentation
RoyAl82 May 8, 2019
692b4fb
Add a newlines, spaces to fix the indentation
RoyAl82 May 8, 2019
ccf33aa
Fixing some indentations
RoyAl82 May 8, 2019
8c66a0b
Created two new files the action and the flow_match the action file u…
RoyAl82 May 8, 2019
5f3e3bc
Fixing some spaces and indentations to the action file.
RoyAl82 May 8, 2019
6ed2851
Delete a file to submit only one file to Kytos.
RoyAl82 May 9, 2019
c9c2f23
Change the name of the class to eliminate the cross-reference error f…
RoyAl82 May 9, 2019
636d3cf
Change the name of the class to eliminate the cross-reference error f…
RoyAl82 May 9, 2019
80f1294
Change the name of the class to eliminate the cross-reference error f…
RoyAl82 May 9, 2019
78f0043
Change the name of the class to eliminate the cross-reference error f…
RoyAl82 May 9, 2019
9536b2a
Create a new line for the parameter list that violate the length of t…
RoyAl82 May 9, 2019
339b8a8
Fix the import sorted issue.
RoyAl82 May 9, 2019
3fc0d15
Change the name of the classes to prevent the error cross reference w…
RoyAl82 May 9, 2019
7c5e2ec
Change some spaces in the comments to fix the indentation of the comm…
RoyAl82 May 9, 2019
052c28c
Fix the spaces, indentation problems encounter by the Scrutinizer.
RoyAl82 May 9, 2019
dfee85c
Fix the spaces problems encounter by the Scrutinizer.
RoyAl82 May 9, 2019
693b970
Fix the spaces problems encounter by the Scrutinizer.
RoyAl82 May 9, 2019
7e7d4a7
Submitting the port feature from Open Flow Version 1.4.1 Specificatio…
RoyAl82 May 9, 2019
04e998e
Fixing the cross reference and updating the length of some of the por…
RoyAl82 May 9, 2019
3dbc3bb
Fixed the limited lines problems and the sorted imports
RoyAl82 May 9, 2019
4d7d90e
Fixed the indentation.
RoyAl82 May 9, 2019
71fb384
Rewrote the description under the OPFPortDescPropHeader
RoyAl82 May 9, 2019
15e4f50
Rewrote the description under the OPFPortDescPropHeader
RoyAl82 May 9, 2019
792baaf
Rewrote the description under the OPFPortDescPropHeader
RoyAl82 May 9, 2019
0897df5
Fixing the sorted import error.
RoyAl82 May 9, 2019
92d7ad1
Added the echo_reply file
RoyAl82 May 10, 2019
d62aaf2
Added the echo_request file
RoyAl82 May 10, 2019
981c065
Added the error_msg file
RoyAl82 May 10, 2019
65e32c5
Fixing the sorted import and spaces.
RoyAl82 May 10, 2019
65d00ae
Fixed the Errors.
RoyAl82 May 10, 2019
7a3956e
Fixed the limited line.
RoyAl82 May 10, 2019
e034b93
Fixing the Invalid Name.
RoyAl82 May 10, 2019
9f90db3
Fixing the Invalid Name.
RoyAl82 May 10, 2019
780f6e5
Add the experimenter feature for v0x05
RoyAl82 May 10, 2019
3891f65
Fixing some line limits
RoyAl82 May 10, 2019
0736281
Fixed the cross reference.
RoyAl82 May 10, 2019
a73cefb
Add the Packet In feature from V0x05
RoyAl82 May 10, 2019
bbb2f28
Add the Request Forward feature from V0x05
RoyAl82 May 10, 2019
50aa4e9
Fixing the cross reference
RoyAl82 May 10, 2019
23edb94
Fixing the cross reference
RoyAl82 May 10, 2019
86c1c2d
Fixing a space line after the imports
RoyAl82 May 10, 2019
96cdfcf
Fixing the spaces error
RoyAl82 May 10, 2019
d5b39b6
Fixing the spaces error
RoyAl82 May 10, 2019
551459d
Fixing the spaces error
RoyAl82 May 10, 2019
affab25
Fixing the spaces error
RoyAl82 May 10, 2019
3136ea6
Fixing the spaces error
RoyAl82 May 10, 2019
8166d05
Fixing the spaces error
RoyAl82 May 10, 2019
e286874
Fixing the spaces error
RoyAl82 May 10, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Eliminated the warnings in the hello file
RoyAl82 committed May 7, 2019
commit 6902c53430ee9ba294948c52e4ecc0e92f4c206a
16 changes: 4 additions & 12 deletions pyof/v0x05/symmetric/hello.py
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@

# System imports

from pyof.foundation.base import GenericMessage, GenericStruct, IntEnum
from pyof.foundation.basic_types import BinaryData, FixedTypeList, UBInt16, UBInt32, TypeList
from pyof.foundation.base import GenericMessage, GenericStruct, Enum
from pyof.foundation.basic_types import BinaryData, FixedTypeList, UBInt16
from pyof.foundation.exceptions import PackException
from pyof.v0x05.common.header import Header, Type

@@ -14,7 +14,7 @@
# Enums


class HelloElemType(IntEnum):
class HelloElemType(Enum):
"""Hello element types."""

#: Bitmap of version supported.
@@ -23,18 +23,16 @@ class HelloElemType(IntEnum):

# Classes


class HelloElemHeader(GenericStruct):
"""Common header for all Hello Elements."""

# One of OFPHET_*.
type = UBInt16()
# Length in bytes of element, including this header, excluding padding.
length = UBInt16()
# This variable does NOT appear in 1.4 specification
# content = BinaryData()

def __init__(self, element_type=None, length=None, content=b''):
def __init__(self, element_type=None, length=None):
"""Create a HelloElemHeader with the optional parameters below.

Args:
@@ -109,7 +107,6 @@ def __init__(self, items=None):
# super().append(items)



class Hello(GenericMessage):
"""OpenFlow Hello Message OFPT_HELLO.

@@ -121,7 +118,6 @@ class Hello(GenericMessage):
header = Header(Type.OFPT_HELLO)

#: Hello element list
#: List of elements - 0 or more
elements = ListOfHelloElements()

def __init__(self, xid=None, elements=None):
@@ -155,7 +151,3 @@ def __init__(self, length=None, bitmaps=None):
"""
super().__init__(HelloElemType.OFPHET_VERSIONBITMAP, length)
self.bitmaps = bitmaps