def remove_interface_suffix(interface):
 return interface.partition('@')[0]

def remove_interface_suffix ( interface ) : return interface . partition ( '@' ) [ 0 ]
remove a possible "<if>@<endpoint>" suffix from an interface name .