From a2a98e0e34a785ba4cacd494eb6d5c5a85e02998 Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Wed, 15 Jan 2020 14:12:22 -0800 Subject: [PATCH] nfv/SOL006#16 --- src/yang/etsi-nfv-common.yang | 37 ------------------------------- src/yang/etsi-nfv-ns.yang | 29 +++++++++++++++++++++++-- src/yang/etsi-nfv-vnf.yang | 41 +++++++++++++++++++++++++++++++++-- 3 files changed, 66 insertions(+), 41 deletions(-) diff --git a/src/yang/etsi-nfv-common.yang b/src/yang/etsi-nfv-common.yang index 2c9acf9..b1b93cb 100644 --- a/src/yang/etsi-nfv-common.yang +++ b/src/yang/etsi-nfv-common.yang @@ -537,43 +537,6 @@ submodule etsi-nfv-common { } } - grouping local-affinity-or-anti-affinity-rule { - list local-affinity-or-anti-affinity-rule { - key "type scope"; - - leaf type { - type affinity-type; - description - "Specifies whether the rule is an affinity rule or an - anti-affinity rule."; - reference - "GS NFV IFA011: Section 7.1.8.11, - LocalAffinityOrAntiAffinityRule information element."; - } - - leaf scope { - type affinity-scope; - description - "Specifies the scope of the rule, possible values are - 'NFVI-PoP', 'Zone', 'ZoneGroup', 'NFVI-node'."; - reference - "GS NFV IFA011: Section 7.1.8.11, - LocalAffinityOrAntiAffinityRule information element."; - } - - uses nfvi-maintenance-info { - description - "When present, provides information on the impact tolerance - and rules to be observed when a group of instances based - on the same VDU is impacted during NFVI operation and - maintenance (e.g. NFVI resource upgrades)."; - reference - "GS NFV IFA011: Section 7.1.8.11, - LocalAffinityOrAntiAffinityRule information element."; - } - } - } - grouping connectivity-type { container connectivity-type { leaf-list layer-protocol { diff --git a/src/yang/etsi-nfv-ns.yang b/src/yang/etsi-nfv-ns.yang index fd41598..dd6b1aa 100644 --- a/src/yang/etsi-nfv-ns.yang +++ b/src/yang/etsi-nfv-ns.yang @@ -41,6 +41,31 @@ submodule etsi-nfv-ns { } } + grouping ns-local-affinity-or-anti-affinity-rule { + list local-affinity-or-anti-affinity-rule { + key "type scope"; + + leaf type { + type affinity-type; + description + "Specifies whether the rule is an affinity rule or an + anti-affinity rule."; + reference + "GS NFV IFA014: Section 6.3.8.2, + LocalAffinityOrAntiAffinityRule information element."; + } + + leaf scope { + type affinity-scope; + description + "Specifies the scope of the rule, possible values are + 'NFVI-PoP', 'Zone', 'ZoneGroup', 'NFVI-node'."; + reference + "GS NFV IFA014: Section 6.3.8.2, + LocalAffinityOrAntiAffinityRule information element."; + } + } + } grouping nsd { leaf id { @@ -790,7 +815,7 @@ submodule etsi-nfv-ns { element"; } - uses local-affinity-or-anti-affinity-rule; + uses ns-local-affinity-or-anti-affinity-rule; list affinity-or-anti-affinity-group { key "id"; @@ -1002,7 +1027,7 @@ submodule etsi-nfv-ns { information element"; } - uses local-affinity-or-anti-affinity-rule; + uses ns-local-affinity-or-anti-affinity-rule; list affinity-or-anti-affinity-group { key "id"; diff --git a/src/yang/etsi-nfv-vnf.yang b/src/yang/etsi-nfv-vnf.yang index 135b36d..50a9a90 100755 --- a/src/yang/etsi-nfv-vnf.yang +++ b/src/yang/etsi-nfv-vnf.yang @@ -171,6 +171,43 @@ submodule etsi-nfv-vnf { } } + grouping vnf-local-affinity-or-anti-affinity-rule { + list local-affinity-or-anti-affinity-rule { + key "type scope"; + + leaf type { + type affinity-type; + description + "Specifies whether the rule is an affinity rule or an + anti-affinity rule."; + reference + "GS NFV IFA011: Section 7.1.8.11, + LocalAffinityOrAntiAffinityRule information element."; + } + + leaf scope { + type affinity-scope; + description + "Specifies the scope of the rule, possible values are + 'NFVI-PoP', 'Zone', 'ZoneGroup', 'NFVI-node'."; + reference + "GS NFV IFA011: Section 7.1.8.11, + LocalAffinityOrAntiAffinityRule information element."; + } + + uses nfvi-maintenance-info { + description + "When present, provides information on the impact tolerance + and rules to be observed when a group of instances based + on the same VDU is impacted during NFVI operation and + maintenance (e.g. NFVI resource upgrades)."; + reference + "GS NFV IFA011: Section 7.1.8.11, + LocalAffinityOrAntiAffinityRule information element."; + } + } + } + grouping vnfd { leaf id { type string; @@ -1591,7 +1628,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.8.3, VduProfile information element."; } - uses local-affinity-or-anti-affinity-rule; + uses vnf-local-affinity-or-anti-affinity-rule; list affinity-or-anti-affinity-group { key "id"; @@ -1660,7 +1697,7 @@ submodule etsi-nfv-vnf { "GS NFV IFA011: Section 7.1.8.4, VirtualLinkProfile information element."; } - uses local-affinity-or-anti-affinity-rule; + uses vnf-local-affinity-or-anti-affinity-rule; list affinity-or-anti-affinity-group { key "id"; -- GitLab