diff --git a/example-data/nfv.xml b/example-data/nfv.xml index 92db22da2c2bf0a21920310c7d5a8c1eae2d4aa3..fef24225243a2311e5f8f2ea64eb8ea59fd51cff 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 09ff7ee9045cc9ce4c13fb58c17a32f503afe982..50b371f6a341cf7f791e70345af39a2430f59a62 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.";