- macs.append(':'.join(re.findall('..', '{:02x}'.format(mac+i))))
- self.vapi.create_p2pethernet_subif(self.pg2.sw_if_index,
- mactobinary(macs[i-1]),
- i)
+ macs.append(':'.join(re.findall('..', '{:02x}'.format(
+ mac+i))))
+ self.vapi.p2p_ethernet_add(self.pg2.sw_if_index,
+ mac_pton(macs[i-1]),
+ i)