def _test_decode_header(self, user, on_wire):
     (n, l) = ofp.oxm_parse_header(on_wire, 0)
     self.assertEqual(len(on_wire), l)
     f = ofp.oxm_to_user_header(n)
     self.assertEqual(user, f)
Exemple #2
0
 def _test_decode_header(self, user, on_wire):
     (n, l) = ofp.oxm_parse_header(on_wire, 0)
     self.assertEqual(len(on_wire), l)
     f = ofp.oxm_to_user_header(n)
     self.assertEqual(user, f)