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
700c5bf5
Commit
700c5bf5
authored
11 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Add date to ovf name
parent
87c37bb1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/vm/build.py
+4
-2
4 additions, 2 deletions
util/vm/build.py
with
4 additions
and
2 deletions
util/vm/build.py
+
4
−
2
View file @
700c5bf5
...
...
@@ -685,7 +685,9 @@ def build( flavor='raring32server', tests=None, pre='', post='', memory=1024 ):
memory: memory size in MB
"""
global
LogFile
,
Zip
start
=
time
()
date
=
strftime
(
'
%y%m%d-%H-%M-%S
'
,
localtime
())
lstart
=
localtime
()
date
=
strftime
(
'
%y%m%d-%H-%M-%S
'
,
lstart
)
ovfdate
=
strftime
(
'
%y%m%d
'
,
lstart
)
dir
=
'
mn-%s-%s
'
%
(
flavor
,
date
)
try
:
os
.
mkdir
(
dir
)
...
...
@@ -713,7 +715,7 @@ def build( flavor='raring32server', tests=None, pre='', post='', memory=1024 ):
log
(
'
* Removing qcow2 volume
'
,
volume
)
os
.
remove
(
volume
)
log
(
'
* Converted VM image stored as
'
,
abspath
(
vmdk
)
)
ovfname
=
'
mininet-%s-%s
'
%
(
version
,
OSVersion
(
flavor
)
)
ovfname
=
'
mininet-%s-%s
-%s
'
%
(
version
,
ovfdate
,
OSVersion
(
flavor
)
)
ovf
=
generateOVF
(
diskname
=
vmdk
,
disksize
=
size
,
name
=
ovfname
)
log
(
'
* Generated OVF descriptor file
'
,
ovf
)
if
Zip
:
...
...
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