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

VAT command for adding ip route with count produce not valid JSON

XMLWordPrintable

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

      Configuring VPP via vpp_api_test with json output formatting produce for VAT command "ip_add_del_route

      {network}

      /

      {prefix_length}

      {via}

      {interface}

      {resolve_attempts}

      {count}", where {count}

      is higher then 1 invalid Json output.

      Example:

      $ cat ipadd.vat
      ip_add_del_route 10.10.10.0/32 via 1.1.1.1 sw_if_index 5 resolve-attempts 10 count 2

      $ sudo vpp_api_test in ipadd.vat json

      {
      "retval": 0
      }

      {
      "retval": 0
      }

      []
      2 routes in .009039 secs, 221.25 routes/sec
      vat#

      For very large count number (e.g.: 10,000) command does not return to vat# prompt unless user press <Enter>

            Unassigned Unassigned
            pmikus Peter Mikus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: