def assert_arping(src_namespace, dst_ip, source=None, timeout=1, count=1):
 ns_ip_wrapper = ip_lib.IPWrapper(src_namespace)
 arping_cmd = ['arping', '-c', count, '-w', timeout]
 if source:
  arping_cmd.extend(['-s', source])
 arping_cmd.append(dst_ip)
 ns_ip_wrapper.netns.execute(arping_cmd)

def assert_arping ( src_namespace , dst_ip , source = None , timeout = 1 , count = 1 ) : ns_ip_wrapper = ip_lib . IPWrapper ( src_namespace ) arping_cmd = [ 'arping' , '-c' , count , '-w' , timeout ] if source : arping_cmd . extend ( [ '-s' , source ] ) arping_cmd . append ( dst_ip ) ns_ip_wrapper . netns . execute ( arping_cmd )
send arp request using arping executable .