Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
slapos.core
Commits
5f177e1f
Commit
5f177e1f
authored
Dec 13, 2016
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partition can request to update ip route of tap interface
parent
36d19481
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
188 additions
and
9 deletions
+188
-9
slapos/format.py
slapos/format.py
+3
-1
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+185
-8
No files found.
slapos/format.py
View file @
5f177e1f
...
...
@@ -840,8 +840,10 @@ class Tap(object):
if
self
.
ipv4_addr
:
# Check if this route exits
code
,
result
=
callAndRead
([
'ip'
,
'route'
,
'show'
,
self
.
ipv4_addr
])
if
code
==
0
and
self
.
ipv4_addr
in
result
and
self
.
name
in
result
:
if
self
.
ipv4_addr
in
result
:
# Skip already configured route
return
code
,
result
=
callAndRead
([
'ip'
,
'route'
,
'show'
])
callAndRead
([
'route'
,
'add'
,
'-host'
,
self
.
ipv4_addr
,
'dev'
,
self
.
name
])
else
:
raise
ValueError
(
"%s should not be empty. No ipv4 address assigned to %s"
%
...
...
slapos/grid/slapgrid.py
View file @
5f177e1f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment