From a600b3eeb9cae0a26968051488dc8c348ff0472a Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Wed, 2 Jan 2019 17:13:25 -0800 Subject: [PATCH] Fix for bug#93 --- example-data/nfv.xml | 16 ++++++++++++---- src/yang/etsi-nfv-common.yang | 20 +++++++++++++------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/example-data/nfv.xml b/example-data/nfv.xml index 4b9470b..24ed998 100644 --- a/example-data/nfv.xml +++ b/example-data/nfv.xml @@ -243,7 +243,9 @@ fw2dpi 1.0 - Ethernet + + Ethernet + normal @@ -257,7 +259,9 @@ mgmt 1.0 - IPv4 + + IPv4 + normal @@ -271,7 +275,9 @@ r2fw 1.0 - Ethernet + + Ethernet + normal @@ -465,7 +471,9 @@ r2fw 1.0 - IPv4 + + IPv4 + r2fw diff --git a/src/yang/etsi-nfv-common.yang b/src/yang/etsi-nfv-common.yang index 07b26dd..992dd5a 100644 --- a/src/yang/etsi-nfv-common.yang +++ b/src/yang/etsi-nfv-common.yang @@ -253,14 +253,20 @@ submodule etsi-nfv-common { grouping connectivity-type { container connectivity-type { - leaf layer-protocol { - mandatory true; - type identityref { - base layer-protocol; - } + list layer-protocol { + key "protocol"; + + leaf protocol { + type identityref { + base layer-protocol; + } + } description - "Identifies the protocol this VL gives access to (Ethernet, - MPLS, ODU2, IPV4, IPV6, Pseudo-Wire)."; + "Identifies the protocols that the VL uses (Ethernet, + MPLS, ODU2, IPV4, IPV6, Pseudo-Wire). The top layer + protocol of the VL protocol stack shall always be provided. + The lower layer protocols may be included when there are + specific requirements on these layers."; reference "GS NFV IFA011: Section 7.1.7.3, ConnectivityType information element."; -- GitLab