- cls.vapi.bridge_domain_add_del(bd_id=cls.bd_id, uu_flood=0, learn=0)
+ cls.vapi.bridge_domain_add_del(
+ bd_id=cls.bd_id, uu_flood=0, learn=0)
for pg_if in cls.pg_interfaces:
cls.vapi.sw_interface_set_l2_bridge(pg_if.sw_if_index,
bd_id=cls.bd_id)
for pg_if in cls.pg_interfaces:
cls.vapi.sw_interface_set_l2_bridge(pg_if.sw_if_index,
bd_id=cls.bd_id)
end_nr = start + count / n_int
for j in range(start, end_nr):
host = self.hosts_by_pg_idx[pg_if.sw_if_index][j]
end_nr = start + count / n_int
for j in range(start, end_nr):
host = self.hosts_by_pg_idx[pg_if.sw_if_index][j]
- self.vapi.l2fib_add_del(host.mac, self.bd_id, pg_if.sw_if_index,
- static_mac=1)
+ self.vapi.l2fib_add_del(
+ host.mac, self.bd_id, pg_if.sw_if_index, static_mac=1)
for pg_if in self.pg_interfaces:
for j in range(count / n_int):
host = self.hosts_by_pg_idx[pg_if.sw_if_index][0]
for pg_if in self.pg_interfaces:
for j in range(count / n_int):
host = self.hosts_by_pg_idx[pg_if.sw_if_index][0]
- self.vapi.l2fib_add_del(host.mac, self.bd_id, pg_if.sw_if_index,
- is_add=0)
+ self.vapi.l2fib_add_del(
+ host.mac, self.bd_id, pg_if.sw_if_index, is_add=0)
self.deleted_hosts_by_pg_idx[pg_if.sw_if_index].append(host)
del self.hosts_by_pg_idx[pg_if.sw_if_index][0]
counter += 1
self.deleted_hosts_by_pg_idx[pg_if.sw_if_index].append(host)
del self.hosts_by_pg_idx[pg_if.sw_if_index][0]
counter += 1