Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
c957367f
Commit
c957367f
authored
Jun 23, 2015
by
Yonghong Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use builtins.input for backward/forward compability
Signed-off-by:
Yonghong Song
<
yhs@plumgrid.com
>
parent
8d806c99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/tc_neighbor_sharing.py
examples/tc_neighbor_sharing.py
+2
-1
No files found.
examples/tc_neighbor_sharing.py
View file @
c957367f
...
...
@@ -30,6 +30,7 @@ from pyroute2 import IPRoute, NetNS, IPDB, NSPopen
from
simulation
import
Simulation
import
sys
from
time
import
sleep
from
builtins
import
input
ipr
=
IPRoute
()
ipdb
=
IPDB
(
nl
=
ipr
)
...
...
@@ -92,7 +93,7 @@ try:
print
(
" (Neighbors are 172.16.1.100-%d, and LAN clients are 172.16.1.150-%d)"
%
(
100
+
num_neighbors
-
1
,
150
+
num_locals
-
1
))
print
(
" e.g.: ip netns exec wan0 netperf -H 172.16.1.100 -l 2"
)
raw_
input
(
"Press enter when finished: "
)
input
(
"Press enter when finished: "
)
finally
:
if
"sim"
in
locals
():
sim
.
release
()
if
"br100"
in
ipdb
.
interfaces
:
ipdb
.
interfaces
.
br100
.
remove
().
commit
()
...
...
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