Commit b8548c33 by Bach Dániel

fix ovs-vsctl parser

parent b1757b8c
...@@ -126,7 +126,7 @@ class Switch(object): ...@@ -126,7 +126,7 @@ class Switch(object):
elif t[0] == 'Port': elif t[0] == 'Port':
port = t[1].replace('"', '') # valahol idezojel van port = t[1].replace('"', '') # valahol idezojel van
if port.endswith('-EXT'): if port.endswith('-EXT'):
port = port.rstrip('-EXT') port = port.rsplit('-EXT')[0]
type = 'internal' type = 'internal'
else: else:
type = 'external' type = 'external'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment