Skip to content

Commit

Permalink
Merge pull request kytos#251 from kytos/default_actionoutput_value
Browse files Browse the repository at this point in the history
Change default ActionOutput.max_value
  • Loading branch information
beraldoleal committed Feb 17, 2017
2 parents 8872e92 + df51afe commit 8455b36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyof/v0x01/common/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pyof.foundation.base import GenericBitMask, GenericStruct
from pyof.foundation.basic_types import (HWAddress, Pad, UBInt8, UBInt16,
UBInt32)
from pyof.foundation.constants import UBINT16_MAX_VALUE

# Third-party imports

Expand Down Expand Up @@ -117,7 +118,7 @@ class ActionOutput(ActionHeader):

_allowed_types = ActionType.OFPAT_OUTPUT,

def __init__(self, port=None, max_length=0):
def __init__(self, port=None, max_length=UBINT16_MAX_VALUE):
"""The following constructor parameters are optional.
Args:
Expand Down

0 comments on commit 8455b36

Please sign in to comment.