Patch url: https://gerrit.fd.io/r/18273




------------------ Original ------------------
From:  "Joe Zhou"<zhouyo...@qq.com>;
Date:  Thu, Mar 14, 2019 10:06 AM
To:  "vpp-dev@lists.fd.io"<vpp-dev@lists.fd.io>;

Subject:  is sw_interface_dump api bug?



Dear VPP developers,
    

   I used sw_interface_dump api to get sw interface info, but found the result 
is not right following these steps :
     1) create a loop interface with instance 10, ie loop10
     2) create a loop inteerface with instance 1, ie loop1
     3) use sw_interface_dump to get loop1's info, such as 
vpp.api.sw_interface_dum(name_filter_valid=True, name_filter="loop1")
     4) sw_interface_dump return loop10's info instead of loop1


  Then I try to find out the reason from source code, I guess maybe it's the 
wrong use of strcasestr in vl_api_sw_interface_dump_t_handler function, I 
wonder if it was strcasecmp rather than strcasestr.


  I create a patch ,  hope someone can help to review it.


  --
  Best
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12522): https://lists.fd.io/g/vpp-dev/message/12522
Mute This Topic: https://lists.fd.io/mt/30423722/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-
  • ... "Zhou You(Joe Zhou)
    • ... "Zhou You(Joe Zhou)
    • ... Paul Vinciguerra
      • ... "Zhou You(Joe Zhou)
        • ... Dave Barach via Lists.Fd.Io
          • ... Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
            • ... Yohan Pipereau (ypiperea) via Lists.Fd.Io
              • ... Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io

Reply via email to