Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
f45685fd
Commit
f45685fd
authored
Sep 26, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
00d0b51a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
software/ors-amarisoft/k/krequest-ors.enb
software/ors-amarisoft/k/krequest-ors.enb
+15
-2
software/ors-amarisoft/k/kslap.py
software/ors-amarisoft/k/kslap.py
+9
-0
No files found.
software/ors-amarisoft/k/krequest-ors.enb
View file @
f45685fd
...
...
@@ -10,6 +10,7 @@ import kslap
import json, copy
from pprint import pprint
ors = "/srv/slapgrid/slappart35/srv/project/slapos/software/ors-amarisoft/software.cfg"
enb1 = request(ors,
...
...
@@ -153,7 +154,19 @@ iENB(enb1, 'CELL2_b', {
})
print('\n\n\n----\n\n\n')
# for HO my initial idea was for enb1 to refer to enb2 and retrieve information
# about all cells configured a that enb2 automaically. The code below checks to see
# whether it is possible (lookup of instance by reference is currently only
# possible with linear search and Rafael said that the lookup will also be
# constrained to work only in the same instance tree).
kenb_ = kslap.instance_by_ref(slap, 'kenb')
"""
print()
print(kenb_)
pprint(kenb_)
for _ in dir(kenb_):
y = getattr(kenb_, _)
print('%s:\t' % _, end='')
pprint(y)
"""
software/ors-amarisoft/k/kslap.py
View file @
f45685fd
...
...
@@ -17,3 +17,12 @@ def instance_by_ref(slap, ref):
if
x
.
_partition_reference
==
ref
:
return
x
raise
KeyError
(
'not found instance coresponding to reference %s'
%
ref
)
# XXX vvv does not return information about slaves, nor information about
# to which comp/partition the instance is deployed
"""
o = slap.registerOpenOrder()
return o._hateoas_navigator.getInstanceTreeRootSoftwareInstanceInformation(ref)
inst = slap.registerOpenOrder().getInformation(partition_reference=ref)
return inst
"""
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