mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 04:16:11 +02:00
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.
This commit is contained in:
parent
388adf152c
commit
c638c345dd
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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__()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user