From efd34f6d033704fe6de14f94743abcb7361dc43f 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 92db22d..fef2422 100644 --- a/example-data/nfv.xml +++ b/example-data/nfv.xml @@ -224,7 +224,9 @@ fw2dpi - Ethernet + + Ethernet + normal @@ -237,7 +239,9 @@ mgmt - IPv4 + + IPv4 + normal @@ -250,7 +254,9 @@ r2fw - Ethernet + + Ethernet + normal @@ -473,7 +479,9 @@ r2fw - IPv4 + + IPv4 + r2fw diff --git a/src/yang/etsi-nfv-common.yang b/src/yang/etsi-nfv-common.yang index 09ff7ee..50b371f 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