Commit 8ed2bc6f by Bach Dániel

fix "too long device name" error

parent efb55aec
...@@ -49,7 +49,7 @@ class Interface(object): ...@@ -49,7 +49,7 @@ class Interface(object):
@property @property
def external_name(self): def external_name(self):
if self.is_veth: if self.is_veth:
return '%s-EXTERNAL' % self.name return '%s-EXT' % self.name
else: else:
return self.name return self.name
...@@ -125,8 +125,8 @@ class Switch(object): ...@@ -125,8 +125,8 @@ class Switch(object):
ovs[bridge] = {} ovs[bridge] = {}
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('-EXTERNAL'): if port.endswith('-EXT'):
port = port.rstrip('-EXTERNAL') port = port.rstrip('-EXT')
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