Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
fwdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8ed2bc6f
authored
Mar 27, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix "too long device name" error
parent
efb55aec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ovs.py
+3
-3
No files found.
ovs.py
View file @
8ed2bc6f
...
@@ -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-EXT
ERNAL
'
%
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
(
'-EXT
ERNAL
'
):
if
port
.
endswith
(
'-EXT'
):
port
=
port
.
rstrip
(
'-EXT
ERNAL
'
)
port
=
port
.
rstrip
(
'-EXT'
)
type
=
'internal'
type
=
'internal'
else
:
else
:
type
=
'external'
type
=
'external'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment