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
Łukasz Nowak
slapos.core
Commits
2173d202
Commit
2173d202
authored
May 24, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bad interface name for speed hack.
parent
5f0924ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
slapos/format.py
slapos/format.py
+6
-1
No files found.
slapos/format.py
View file @
2173d202
...
@@ -392,6 +392,11 @@ class Computer(object):
...
@@ -392,6 +392,11 @@ class Computer(object):
# Speed hack:
# Speed hack:
# Blindly add all IPs from existing configuration, just to speed up actual
# Blindly add all IPs from existing configuration, just to speed up actual
# computer configuration later on.
# computer configuration later on.
# XXX-TODO: only add an address if it doesn't already exist.
if
self
.
ipv6_interface
:
interface_name
=
self
.
ipv6_interface
else
:
interface_name
=
self
.
name
for
partition
in
self
.
partition_list
:
for
partition
in
self
.
partition_list
:
try
:
try
:
for
address
in
partition
.
address_list
:
for
address
in
partition
.
address_list
:
...
@@ -401,7 +406,7 @@ class Computer(object):
...
@@ -401,7 +406,7 @@ class Computer(object):
continue
continue
callAndRead
([
'ip'
,
'addr'
,
'add'
,
callAndRead
([
'ip'
,
'addr'
,
'add'
,
'%s/%s'
%
(
address
[
'addr'
],
netmask
),
'%s/%s'
%
(
address
[
'addr'
],
netmask
),
'dev'
,
self
.
interface
.
name
])
'dev'
,
interface_
name
])
except
ValueError
:
except
ValueError
:
pass
pass
...
...
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