diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2015-05-15 11:03:33 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-05-19 15:39:27 +0900 |
commit | 9510f513d92903da8307dcb9398382a843ec464e (patch) | |
tree | 4443262b5dcfa84ea998992f8b51f1d85ff0be60 | |
parent | c73d7303a66edf459a9a415b5662f197f6c296fe (diff) |
NXActionRegMove: Add type annotation for stringify stuff
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/nx_actions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ryu/ofproto/nx_actions.py b/ryu/ofproto/nx_actions.py index acba3c6e..ceced654 100644 --- a/ryu/ofproto/nx_actions.py +++ b/ryu/ofproto/nx_actions.py @@ -200,6 +200,12 @@ def generate(ofp_name, ofpp_name): _subtype = nicira_ext.NXAST_REG_MOVE _fmt_str = '!HHH' # n_bits, src_ofs, dst_ofs # Followed by OXM fields (src, dst) and padding to 8 bytes boundary + _TYPE = { + 'ascii': [ + 'src_field', + 'dst_field', + ] + } def __init__(self, src_field, dst_field, n_bits, src_ofs=0, dst_ofs=0, type_=None, len_=None, experimenter=None, subtype=None): |