Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-grid5000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
SIMONIN Matthieu
python-grid5000
Merge requests
!1
from_yaml fallbacks to anonymous connection
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
from_yaml fallbacks to anonymous connection
fix-6
into
master
Overview
0
Commits
1
Pipelines
1
Changes
6
Merged
SIMONIN Matthieu
requested to merge
fix-6
into
master
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
6
Expand
Fix
#6 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7a128d1d
1 commit,
5 years ago
6 files
+
18
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
examples/vlan_set_2.py
+
2
−
2
Options
@@ -11,7 +11,7 @@ logging.basicConfig(level=logging.DEBUG)
def
_to_network_address
(
host
,
interface
):
"""
Translate a host to a network address
e.g:
para
noia
-20.rennes.grid5000.fr -> para
noia
-20-eth2.rennes.grid5000.fr
para
vance
-20.rennes.grid5000.fr -> para
vance
-20-eth2.rennes.grid5000.fr
"""
splitted
=
host
.
split
(
'
.
'
)
splitted
[
0
]
=
splitted
[
0
]
+
"
-
"
+
interface
@@ -26,7 +26,7 @@ site = gk.sites["rennes"]
job
=
site
.
jobs
.
create
({
"
name
"
:
"
pyg5k
"
,
"
command
"
:
"
sleep 3600
"
,
"
resources
"
:
"
{type=
'
kavlan
'
}/vlan=1+{cluster=
'
para
noia
'
}nodes=1
"
,
"
resources
"
:
"
{type=
'
kavlan
'
}/vlan=1+{cluster=
'
para
vance
'
}nodes=1
"
,
"
types
"
:
[
"
deploy
"
]
})
Loading