Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
81931542
Commit
81931542
authored
Oct 05, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slolved cap error
parent
9551f6d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
planner.py
drip_planner2/src/planner/planner.py
+6
-2
tosca.py
drip_planner2/src/utils/tosca.py
+1
-1
No files found.
drip_planner2/src/planner/planner.py
View file @
81931542
...
...
@@ -31,8 +31,12 @@ class Planner:
return
self
.
template
def
set_infrastructure_specifications
(
self
,
required_nodes
):
required_nodes
=
self
.
set_vm_specifications
(
required_nodes
)
required_nodes
=
self
.
set_topology_specifications
(
required_nodes
)
# Start bottom up and (node without requirements leaf) and find the root of the graph.
# Get root performance, version requirements and set specs to required node
# required_nodes = self.set_vm_specifications(required_nodes)
# required_nodes = self.set_topology_specifications(required_nodes)
return
required_nodes
def
set_vm_specifications
(
self
,
required_nodes
):
...
...
drip_planner2/src/utils/tosca.py
View file @
81931542
...
...
@@ -2,7 +2,7 @@ from toscaparser.nodetemplate import NodeTemplate
from
utils.TOSCA_parser
import
TOSCAParser
node_type_key_names_to_remove
=
[
'capabilities'
,
'
requirements'
,
'
derived_from'
]
node_type_key_names_to_remove
=
[
'capabilities'
,
'derived_from'
]
def
get_node_type_name
(
node
):
...
...
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