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
Titouan Soulard
slapos.core
Commits
6b4bc29e
Commit
6b4bc29e
authored
Nov 27, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_slap_tool: Support updating partitions with capabilities
parent
45f1ef7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
master/bt5/slapos_slap_tool/SkinTemplateItem/portal_skins/slapos_slap_tool/ComputeNode_updateFromDict.py
...rtal_skins/slapos_slap_tool/ComputeNode_updateFromDict.py
+5
-0
No files found.
master/bt5/slapos_slap_tool/SkinTemplateItem/portal_skins/slapos_slap_tool/ComputeNode_updateFromDict.py
View file @
6b4bc29e
...
@@ -85,6 +85,11 @@ for send_partition in compute_node_dict['partition_list']:
...
@@ -85,6 +85,11 @@ for send_partition in compute_node_dict['partition_list']:
partition
.
validate
(
comment
=
"Reactivated by slapformat"
)
partition
.
validate
(
comment
=
"Reactivated by slapformat"
)
if
partition
.
getReference
()
!=
send_partition
[
'reference'
]:
if
partition
.
getReference
()
!=
send_partition
[
'reference'
]:
partition
.
edit
(
reference
=
send_partition
[
'reference'
])
partition
.
edit
(
reference
=
send_partition
[
'reference'
])
send_capability_list
=
send_partition
.
get
(
'capability_list'
)
or
[]
if
partition
.
getSubjectList
()
!=
send_capability_list
:
partition
.
edit
(
subject
=
send_capability_list
)
network_interface
=
send_partition
[
'tap'
][
'name'
]
network_interface
=
send_partition
[
'tap'
][
'name'
]
compareAndUpdateAddressList
(
partition
,
send_partition
[
'address_list'
],
{
'network_interface'
:
network_interface
})
compareAndUpdateAddressList
(
partition
,
send_partition
[
'address_list'
],
{
'network_interface'
:
network_interface
})
tap_addr_list
=
[]
tap_addr_list
=
[]
...
...
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