Commit 8ed2bc6f by Bach Dániel

fix "too long device name" error

parent efb55aec
......@@ -49,7 +49,7 @@ class Interface(object):
@property
def external_name(self):
if self.is_veth:
return '%s-EXTERNAL' % self.name
return '%s-EXT' % self.name
else:
return self.name
......@@ -125,8 +125,8 @@ class Switch(object):
ovs[bridge] = {}
elif t[0] == 'Port':
port = t[1].replace('"', '') # valahol idezojel van
if port.endswith('-EXTERNAL'):
port = port.rstrip('-EXTERNAL')
if port.endswith('-EXT'):
port = port.rstrip('-EXT')
type = 'internal'
else:
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