Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
65c35b65
Commit
65c35b65
authored
12 years ago
by
ryanc
Committed by
Bob Lantz
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove networkx dependency
Conflicts: util/install.sh closes #100
parent
1ea5c91f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
debian/control
+1
-3
1 addition, 3 deletions
debian/control
mininet/topo.py
+23
-5
23 additions, 5 deletions
mininet/topo.py
setup.py
+1
-2
1 addition, 2 deletions
setup.py
util/install.sh
+1
-6
1 addition, 6 deletions
util/install.sh
with
26 additions
and
16 deletions
debian/control
+
1
−
3
View file @
65c35b65
...
...
@@ -9,15 +9,13 @@ Build-Depends:
help2man,
python-dev,
python-pkg-resources,
python-setuptools,
python-networkx
python-setuptools
Homepage: http://openflow.org/mininet
Package: mininet
Architecture: any
Depends:
openvswitch-switch,
python-networkx,
telnet,
${misc:Depends},
${python:Depends},
...
...
This diff is collapsed.
Click to expand it.
mininet/topo.py
+
23
−
5
View file @
65c35b65
...
...
@@ -11,13 +11,31 @@
setup for testing, and can even be emulated with the Mininet package.
'''
# BL: we may have to fix compatibility here.
# networkx is also a fairly heavyweight dependency
# from networkx.classes.graph import Graph
from
networkx
import
Graph
from
mininet.util
import
irange
,
natural
,
naturalSeq
class
Graph
(
object
):
"
Utility class to track nodes and edges
"
def
__init__
(
self
):
self
.
data
=
{}
def
add_node
(
self
,
node
):
if
node
not
in
self
.
data
.
keys
():
self
.
data
[
node
]
=
[]
def
add_edge
(
self
,
src
,
dest
):
self
.
add_node
(
src
)
self
.
add_node
(
dest
)
self
.
data
[
src
].
append
(
dest
)
def
nodes
(
self
):
return
self
.
data
.
keys
()
def
edges
(
self
):
for
src
in
self
.
data
.
keys
():
for
dest
in
self
.
data
[
src
]:
yield
(
src
,
dest
)
class
Topo
(
object
):
"
Data center network representation for structured multi-trees.
"
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
2
View file @
65c35b65
...
...
@@ -37,8 +37,7 @@
keywords
=
'
networking emulator protocol Internet OpenFlow SDN
'
,
license
=
'
BSD
'
,
install_requires
=
[
'
setuptools
'
,
'
networkx
'
'
setuptools
'
],
scripts
=
scripts
,
)
This diff is collapsed.
Click to expand it.
util/install.sh
+
1
−
6
View file @
65c35b65
...
...
@@ -123,14 +123,9 @@ function kernel_clean {
function
mn_deps
{
echo
"Installing Mininet dependencies"
$install
gcc make socat psmisc xterm ssh iperf iproute telnet
\
python-setuptools
python-networkx
cgroup-bin ethtool help2man
\
python-setuptools cgroup-bin ethtool help2man
\
pyflakes pylint pep8
if
[
"
$DIST
"
=
"Ubuntu"
]
&&
[
"
$RELEASE
"
=
"10.04"
]
;
then
echo
"Upgrading networkx to avoid deprecation warning"
sudo
easy_install
--upgrade
networkx
fi
# Add sysctl parameters as noted in the INSTALL file to increase kernel
# limits to support larger setups:
if
!
grep
Mininet /etc/sysctl.conf
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment