keep calm and use parser
Post on 13-Jan-2017
426 Views
Preview:
TRANSCRIPT
Keep Calm and Use Parser
Nov, 2015
Howard Huang, Huawei
Julien Zhang, ZTE
How would OPNFV attract more open source software developers ?
2
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。。。
KEEPCALM
And use
Parser
Page 4
Outline
• Parser Project Overview
• Use Case Analysis
• Heat-Translator Introduction
• YANG-TO-TOSCA
• Future Plan
5
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.
7November 2, 2015 OPNFV Introduction
Parser Project Overview – Fun Facts
Parser Project Overview – Architecture
TOSCA->HOT
YANG->TOSCA
OpenStackUpstream
Parser Repo
OpenStackUpstream
Heat-Translator
Murano,…
Document
Use Case
OPNFV Doc
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,withHA of resource pool and a vdu per resource.
LB: LineCard Module,with HA of resource pool and vdu per resource.
The dependency and specification
Heat Translator
TOSCA TypesTOSCA
Template
TOSCA Nodes
Validation Tests
Map Generate
Validation Tests
tosca-parser heat-translator
HOT - Heat Orchestration
Template
Heat
OpenStackServices
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...
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.
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.
OPNFVParser Project – User guide
Shout out thank you to all the team members
Julien (ZTE)
Shitao (Huawei)
Shiva (HP)
Srinivas (TCS)
Xiaodong (ZTE)
Victor (Huawei)
Vinayak (HP)
Thank you
Page 15
top related