def del_ipaddr(ptfhost, nexthop_addrs, prefix_len, nexthop_devs, ipv6=False):
    if ipv6:
        for idx in range(len(nexthop_addrs)):
            ptfhost.shell('ip -6 addr del {}/{} dev eth{}'.format(nexthop_addrs[idx], prefix_len, nexthop_devs[idx]), module_ignore_errors=True)
    else:
        ptfhost.shell('supervisorctl stop arp_responder')
def del_ipaddr(ptfhost, nexthop_addrs, prefix_len, nexthop_devs, ipv6=False):
    if ipv6:
        for idx in range(len(nexthop_addrs)):
            ptfhost.shell('ip -6 addr del {}/{} dev eth{}'.format(nexthop_addrs[idx], prefix_len, nexthop_devs[idx]), module_ignore_errors=True)
    else:
        ptfhost.shell('supervisorctl stop arp_responder')