Comment 2 for bug 1718142

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

Ubuntu-traffic has v6 family also enabled always. When scapy’s sendpkts is run, it continuously turns the intf into promisc mode off and on very quickly
This also seems to cause v6 intf to do dhcpv6 always.
While this is happening, issuing a stop on sendpkts hangs the cmd for few mins(resulting in script failure) and returns later.
Disabling v6 on the intf fixed the issue
Options:

1)Per Mallams observations, having a timeout of 240sec(4 mins) did seem to avoid the timeout failure(instead of the current 120s)
2) Disable v6 on the intf before running scapy : seems clumsy.

3) Turn promisc off only when scapy does send() (i.e not send/receive ) here… https://github.com/Juniper/contrail-test-ci/blob/master/tcutils/pkgs/Traffic/traffic/core/generator.py#L176
For ICMP, it would still have promisc ON

Option 3 seems a better option