Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CTI Tools
tosca2doc
Commits
072bb20c
Commit
072bb20c
authored
Jun 17, 2019
by
carignani
Browse files
add clause 9
parent
bfe25516
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/doc2tosca.py
View file @
072bb20c
...
...
@@ -199,7 +199,9 @@ def generate_templates(filename, spec_version=SPEC_VERSION):
sect_8_id
=
find_sect
(
"8
\t
PNFD TOSCA model"
,
sect_7_id
+
1
,
CONTENT
)
annex_a_id
=
find_sect
(
"Annex A (informative):"
,
sect_7_id
+
1
,
CONTENT
)
sect_9_id
=
find_sect
(
"9
\t
Common Definitions"
,
sect_8_id
+
1
,
CONTENT
)
annex_a_id
=
find_sect
(
"Annex A (informative):"
,
sect_9_id
+
1
,
CONTENT
)
count
=
generate_tables_between
(
sect_6_id
,
sect_7_id
,
CONTENT
,
MODELS
[
'vnfd'
][
'buf'
])
print
(
"Printed "
+
str
(
count
)
+
" types to "
+
"VNFD
\n\n\n
"
)
...
...
@@ -207,9 +209,12 @@ def generate_templates(filename, spec_version=SPEC_VERSION):
count
=
generate_tables_between
(
sect_7_id
,
sect_8_id
,
CONTENT
,
MODELS
[
'nsd'
][
'buf'
])
print
(
"Printed "
+
str
(
count
)
+
" types to "
+
"NSD
\n\n\n
"
)
count
=
generate_tables_between
(
sect_8_id
,
annex_a
_id
,
CONTENT
,
MODELS
[
'pnfd'
][
'buf'
])
count
=
generate_tables_between
(
sect_8_id
,
sect_9
_id
,
CONTENT
,
MODELS
[
'pnfd'
][
'buf'
])
print
(
"Printed "
+
str
(
count
)
+
" types to "
+
"PNFD
\n\n\n
"
)
count
=
generate_tables_between
(
sect_9_id
,
annex_a_id
,
CONTENT
,
MODELS
[
'pnfd'
][
'buf'
])
print
(
"Printed "
+
str
(
count
)
+
" types to "
+
"Common
\n\n\n
"
)
def
print_to_files
(
prefix
=
None
):
'''
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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