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
eef43402
Commit
eef43402
authored
10 years ago
by
cody burkard
Browse files
Options
Downloads
Patches
Plain Diff
check for vlan dependency
parent
ec26c749
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
examples/vlanhost.py
+7
-0
7 additions, 0 deletions
examples/vlanhost.py
with
7 additions
and
0 deletions
examples/vlanhost.py
+
7
−
0
View file @
eef43402
...
...
@@ -26,6 +26,8 @@
from
mininet.node
import
Host
from
mininet.topo
import
Topo
from
mininet.util
import
quietRun
from
mininet.log
import
error
class
VLANHost
(
Host
):
...
...
@@ -107,6 +109,11 @@ def exampleCustomTags( vlan ):
setLogLevel
(
'
info
'
)
if
not
quietRun
(
'
which vconfig
'
):
error
(
"
Cannot find command
'
vconfig
'
\n
The packge
"
,
"'
vlan
'
is required in Ubuntu or Debian,
"
,
"
or
'
vconfig
'
in Fedora
\n
"
)
exit
()
try
:
vlan
=
int
(
sys
.
argv
[
1
]
)
except
Exception
:
...
...
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