mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
of13: add OFPMatch.get for convenience
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
023586ed44
commit
6b6fd7e67a
@ -394,6 +394,9 @@ class OFPMatch(StringifyMixin):
|
||||
def iteritems(self):
|
||||
return self._fields2.iteritems()
|
||||
|
||||
def get(self, key, default=None):
|
||||
return self._fields2.get(key, default)
|
||||
|
||||
def append_field(self, header, value, mask=None):
|
||||
self.fields.append(OFPMatchField.make(header, value, mask))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user