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
e4003290
Unverified
Commit
e4003290
authored
4 years ago
by
lantz
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Try to install python2 and python3 mininet (#1008)
parent
9517f6c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
util/install.sh
+2
-2
2 additions, 2 deletions
util/install.sh
util/vm/build.py
+6
-1
6 additions, 1 deletion
util/vm/build.py
util/vm/install-mininet-vm.sh
+9
-3
9 additions, 3 deletions
util/vm/install-mininet-vm.sh
with
17 additions
and
6 deletions
util/install.sh
+
2
−
2
View file @
e4003290
...
...
@@ -183,8 +183,8 @@ function mn_deps {
${
PYPKG
}
-pexpect
${
PYPKG
}
-tk
# Install pip
$install
${
PYPKG
}
-pip
||
$install
${
PYPKG
}
-pip-whl
if
!
${
PYTHON
}
-m
pip
;
then
curl
https://bootstrap.pypa.io/get-pip.py
-o
get-pip.py
if
!
${
PYTHON
}
-m
pip
-V
;
then
wget
https://bootstrap.pypa.io/get-pip.py
sudo
${
PYTHON
}
get-pip.py
rm
get-pip.py
fi
...
...
This diff is collapsed.
Click to expand it.
util/vm/build.py
+
6
−
1
View file @
e4003290
...
...
@@ -638,7 +638,8 @@ def checkOutBranch( vm, branch, prompt=Prompt ):
vm
.
sendline
(
'
util/install.sh -n
'
)
def
interact
(
vm
,
tests
,
pre
=
''
,
post
=
''
,
prompt
=
Prompt
):
def
interact
(
vm
,
tests
,
pre
=
''
,
post
=
''
,
prompt
=
Prompt
,
clean
=
True
):
"
Interact with vm, which is a pexpect object
"
login
(
vm
)
log
(
'
* Waiting for login...
'
)
...
...
@@ -677,6 +678,10 @@ def interact( vm, tests, pre='', post='', prompt=Prompt ):
vm
.
sendline
(
"
sudo sed -i -e
'
s/^GRUB_TERMINAL=serial/#GRUB_TERMINAL=serial/
'
"
"
/etc/default/grub; sudo update-grub
"
)
vm
.
expect
(
prompt
)
if
clean
:
log
(
'
* Cleaning vm
'
)
vm
.
sendline
(
'
~/mininet/util/install.sh -d
'
)
vm
.
expect
(
prompt
)
log
(
'
* Shutting down
'
)
vm
.
sendline
(
'
sync; sudo shutdown -h now
'
)
log
(
'
* Waiting for EOF/shutdown
'
)
...
...
This diff is collapsed.
Click to expand it.
util/vm/install-mininet-vm.sh
+
9
−
3
View file @
e4003290
...
...
@@ -24,7 +24,7 @@ if [ -e /etc/rc.local.backup ]; then
sudo mv
/etc/rc.local.backup /etc/rc.local
fi
# Fetch Mininet
sudo
apt-get
-y
install
git-core openssh-server
sudo
apt-get
-y
-qq
install
git-core openssh-server
git clone git://github.com/mininet/mininet
# Optionally check out branch
if
[
"
$1
"
!=
""
]
;
then
...
...
@@ -33,8 +33,14 @@ if [ "$1" != "" ]; then
git checkout
$1
popd
fi
# Install Mininet
time
mininet/util/install.sh
# Install Mininet for Python2 and Python3
APT
=
"sudo apt-get -y -qq"
$APT
install
python3
$APT
install
python-is-python3
||
true
$APT
install
python2
||
$APT
install
python
python
--version
time
PYTHON
=
python3 mininet/util/install.sh
time
PYTHON
=
python2 mininet/util/install.sh
-n
# Finalize VM
time
mininet/util/install.sh
-tcd
# Ignoring this since NOX classic is deprecated
...
...
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