This document summarizes the Parser project, which aims to provide translation tools for the OPNFV platform. It analyzes use cases to determine what features need to be enhanced in upstream projects like Heat-Translator. It also describes the Heat-Translator and how it translates TOSCA templates to HOT templates for OpenStack orchestration. Additionally, it outlines plans to develop a YANG to TOSCA translator to define VNF requirements based on ETSI standards and integrate additional NFV features. The document thanks the various team members contributing to the Parser project.
%in Harare+277-882-255-28 abortion pills for sale in Harare
Keep Calm and Use Parser
1. Keep Calm and Use Parser
Nov, 2015
Howard Huang, Huawei
Julien Zhang, ZTE
2. How would OPNFV attract
more open source software
developers ?
2
3. 3November 2, 2015 OPNFV Introduction
I wrote the script based on the
instructions in ETSI NFV
documents, but I can’t run it on
OPNFV …
Apparently Not In This
Way
。。。
5. Outline
• Parser Project Overview
• Use Case Analysis
• Heat-Translator Introduction
• YANG-TO-TOSCA
• Future Plan
5
6. Parser Project Overview
• Parser is an integration project which aims to provide a
translation tooling for OPNFV platform. (we are a small team spread
over 4 companies)
• The bulk of Parser work would be contributed to Heat-Translator
project which serves as a upstream project for Parser. However
Parser will also develop its own code, including YANG->TOSCA
translation work from HP team and some other work that would not be
contributed to upstream but identified by the use cases.
• Current work is driven by use case analysis, which is provided by
ZTE Team. Such analysis generates what feature Parser need to
enhance for the upstream project.
• Parser would be part of the OPNFV B release, and will make it in
time.
9. Use Case Analysis for a vRNC
MM: Maintain Module, with HA of standby vdu and active vdu.
CM: Control
Module,with HA of
resource pool and
active vdu & standby
vdu per resource.
DM: Data Module,with
HA of resource pool
and a vdu per
resource.
LB: LineCard Module,with HA of resource pool and vdu per resource.
11. Heat Translator
TOSCA
TypesTOSCA
Template
TOSCA
Nodes
Validation Tests
Map Generate
Validation Tests
tosca-parser heat-translator
HOT - Heat
Orchestration
Template
Heat
OpenStack
Services
Orch
TOSCA-to-Heat-Translator is part of OpenStack Heat (from Kilo)
The tosca-parser is an OpenStack project and licensed under Apache 2. It is
developed to parse TOSCA Simple Profile in YAML. It reads the TOSCA templates
and creates an in-memory graph of TOSCA nodes and their relationship.
Heat-Translator is an Openstack project and licensed under Apache 2. It is a
command line tool which takes non-Heat templates as an input and produces a
Heat Orchestration Template (HOT) which can be deployed by Heat. Currently it
supports TOSCA to HOT translation.
TOSCA-parser & Heat-Translator are available as independent Python library.
https://pypi.python.org/pypi/heat-translator ; https://pypi.python.org/pypi/tosca-parser
Heat-Translator available to use in python-openstackclient (OSC) via plugin
Latest TOSCA features integrated: Networking, Block & Object Storage...
12. YANG-TO-TOSCA
• Provide a mechanism for a VNF provider to describe (VNF descriptor)
the deployment requirements (such as basic VM requirements – vCPU,
memory, storage, as well as advanced HW enhancement requirements
such as Huge Pages support, SR-IOV, NUMA, DPDK support etc.) of a
VNF
• Python based script to convert VNF descriptor from YAML/XML based
on YANG to TOSCA
• VNFD based on the YANG schema defined in ETSI’s MANO specification
• Enhancements planned to YANG definition for additional NFV
requirements
– DPDK, SRIOV, HUGE Page support, CPU Pinning etc.
13. YANG-TO-TOSCA (details)
• The conversion from YANG to TOSCA is done with the help of a python
script which takes the YANG schema based VNFD as an input parameter
and produces a TOSCA YAML file as output.
• This is being implemented as a Python script which makes use of a
“PYANG” library to convert the YANG YAML file to an in-memory XML
object which is then fed as an input to a XSLT transformer to
transform the XML file to TOSCA.
OPNFV
Parser Project – User guide
14. Shout out thank you to all the team members
Julien (ZTE)
Shitao (Huawei)
Shiva (HP)
Srinivas (TCS)
Xiaodong (ZTE)
Victor (Huawei)
Vinayak (HP)