mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-14 00:56:37 +02:00
Add OF1.4 DecMplsTtl action support
Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
281be18dcc
commit
b7455bc353
@ -2324,6 +2324,24 @@ class OFPActionSetQueue(OFPAction):
|
||||
offset, self.type, self.len, self.queue_id)
|
||||
|
||||
|
||||
@OFPAction.register_action_type(ofproto.OFPAT_DEC_MPLS_TTL,
|
||||
ofproto.OFP_ACTION_HEADER_SIZE)
|
||||
class OFPActionDecMplsTtl(OFPAction):
|
||||
"""
|
||||
Decrement MPLS TTL action
|
||||
|
||||
This action decrements the MPLS TTL.
|
||||
"""
|
||||
def __init__(self, type_=None, len_=None):
|
||||
super(OFPActionDecMplsTtl, self).__init__()
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
(type_, len_) = struct.unpack_from(
|
||||
ofproto.OFP_ACTION_HEADER_PACK_STR, buf, offset)
|
||||
return cls()
|
||||
|
||||
|
||||
@OFPAction.register_action_type(ofproto.OFPAT_COPY_TTL_OUT,
|
||||
ofproto.OFP_ACTION_HEADER_SIZE)
|
||||
class OFPActionCopyTtlOut(OFPAction):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user