Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-879

The binary API map_add_del_rule can't add rules.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • None
    • None
    • VPP API Infra
    • None

      The map_add_del_rule Python API call does not add the rule.

      After inspecting the code it turns out that is_add is of u32 type,

      but the byte order is not changed, and after cast to u8 the non

      zero bytes are lost. Changing the type of is_add

      to u8 seems to fix the problem. Alternatively calling ntohl in

      vl_api_map_add_del_rule_t_handler, but that is probably

      not the desired solution.

            otroan Ole Trøan
            szs Szymon Śliwa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: