- sw_if_index = Topology.get_interface_sw_index(node, interface) \
- if isinstance(interface, basestring) else interface
+ if isinstance(interface, basestring):
+ sw_if_index = Topology.get_interface_sw_index(node, interface)
+ else:
+ sw_if_index = interface