diff options
author | Steffen Gebert <steffen.gebert@informatik.uni-wuerzburg.de> | 2015-09-17 12:03:22 +0200 |
---|---|---|
committer | Steffen Gebert <steffen.gebert@informatik.uni-wuerzburg.de> | 2015-09-17 12:03:22 +0200 |
commit | c638c345dd86466a7ea55f705bb46c7842daad11 (patch) | |
tree | 16e90493a4d7465d4ad67a89312d45f09ac69d12 | |
parent | 388adf152c5a5cacae4e69a2c8df1863b1f619a7 (diff) |
Examples contain invalid MAC addresses
The documentation for `OFPActionSetField()` contains the
following example:
set_field = OFPActionSetField(eth_src="00:00:00:00:00")
However, this MAC address lacks one byte. Thus add it.
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 2 | ||||
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 2 | ||||
-rw-r--r-- | ryu/ofproto/ofproto_v1_4_parser.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 4b38341a..ef43b129 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -1464,7 +1464,7 @@ class OFPActionSetField(OFPAction): Example:: - set_field = OFPActionSetField(eth_src="00:00:00:00:00") + set_field = OFPActionSetField(eth_src="00:00:00:00:00:00") """ def __init__(self, field=None, **kwargs): # old api diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index c2b27545..204da9b3 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -3166,7 +3166,7 @@ class OFPActionSetField(OFPAction): Example:: - set_field = OFPActionSetField(eth_src="00:00:00:00:00") + set_field = OFPActionSetField(eth_src="00:00:00:00:00:00") """ def __init__(self, field=None, **kwargs): # old api diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index b7e6a527..b23ce855 100644 --- a/ryu/ofproto/ofproto_v1_4_parser.py +++ b/ryu/ofproto/ofproto_v1_4_parser.py @@ -5357,7 +5357,7 @@ class OFPActionSetField(OFPAction): Example:: - set_field = OFPActionSetField(eth_src="00:00:00:00:00") + set_field = OFPActionSetField(eth_src="00:00:00:00:00:00") """ def __init__(self, field=None, **kwargs): super(OFPActionSetField, self).__init__() |