Reformat with black
This commit is contained in:
@@ -327,7 +327,9 @@ class PlannerSyncOperations(PlannerBase): # pylint: disable=too-few-public-meth
|
|||||||
"""Synchronize the VPP Dataplane max frame size (link MTU), where 'shrink' determines the
|
"""Synchronize the VPP Dataplane max frame size (link MTU), where 'shrink' determines the
|
||||||
direction (if shrink is True, go from inner-most (QinQ) to outer-most (untagged),
|
direction (if shrink is True, go from inner-most (QinQ) to outer-most (untagged),
|
||||||
and the other direction if shrink is False"""
|
and the other direction if shrink is False"""
|
||||||
lcp_tap_sw_if_indexes = {lcp.host_sw_if_index for lcp in self.vpp.cache["lcps"].values()}
|
lcp_tap_sw_if_indexes = {
|
||||||
|
lcp.host_sw_if_index for lcp in self.vpp.cache["lcps"].values()
|
||||||
|
}
|
||||||
for _idx, vpp_iface in self.vpp.cache["interfaces"].items():
|
for _idx, vpp_iface in self.vpp.cache["interfaces"].items():
|
||||||
if vpp_iface.sub_number_of_tags != 0:
|
if vpp_iface.sub_number_of_tags != 0:
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -508,7 +508,9 @@ class VPPApi:
|
|||||||
def get_phys(self):
|
def get_phys(self):
|
||||||
"""Return all interfaces for which the super interface has the same sw_if_index
|
"""Return all interfaces for which the super interface has the same sw_if_index
|
||||||
and aren't known to be virtual interfaces"""
|
and aren't known to be virtual interfaces"""
|
||||||
lcp_tap_sw_if_indexes = {lcp.host_sw_if_index for lcp in self.cache["lcps"].values()}
|
lcp_tap_sw_if_indexes = {
|
||||||
|
lcp.host_sw_if_index for lcp in self.cache["lcps"].values()
|
||||||
|
}
|
||||||
phys = [
|
phys = [
|
||||||
self.cache["interfaces"][x].interface_name
|
self.cache["interfaces"][x].interface_name
|
||||||
for x in self.cache["interfaces"]
|
for x in self.cache["interfaces"]
|
||||||
|
|||||||
Reference in New Issue
Block a user