Uploaded image for project: 'csit'
  1. csit
  2. CSIT-795

Skip unexpected ICMPv6ND_NS packet in IPv6 functional test

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • 1710, CSIT 1710
    • None
    • None

      We need to adapt all functional traffic scripts related to functional IPv6 tests to ingore receiving of unexpected ICMPv6 Neighbor Discovery - Neighbor Solicitation packets that are sent automatically and we cannot avoid to receive them.

      The reason is to prevent false negative test results in case of csit functional tests that could block creation of new operational branch (csit weekly jobs), usage of new vpp builds (csit semiweekly jobs) and merging patches - csit as well as vpp.

      Propsed solution:

      while True:
              # receive ICMPv6 echo reply
              ether = rxq.recv(2, sent_packets)
              if ether is None:
                  raise RuntimeError('ICMPv6 echo reply Rx timeout')

              if ether.haslayer(ICMPv6ND_NS):
                  # read another packet in the queue if the current one is ICMPv6ND_NS
                  continue
              else:
                  # otherwise process the current packet
                  break

       

            jgelety Jan Gelety
            jgelety Jan Gelety
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified