X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=models%2Fyang%2Fvnfd-base.yang;h=8a43cb7ef1f50b881e56eb2f9c084656bd3a6d6f;hb=refs%2Fchanges%2F18%2F7418%2F6;hp=f98e2d2a15d9566172eae0243178dac2d5b2ecce;hpb=0f6bb7770ea42dd236d742bbf0bfcec766254646;p=osm%2FIM.git diff --git a/models/yang/vnfd-base.yang b/models/yang/vnfd-base.yang index f98e2d2..8a43cb7 100644 --- a/models/yang/vnfd-base.yang +++ b/models/yang/vnfd-base.yang @@ -95,15 +95,17 @@ module vnfd-base description "Specifies the type of virtual interface between VM and host. - VIRTIO : Use the traditional VIRTIO interface. + PARAVIRT : Use the default paravirtualized interface for the VIM (virtio, vmxnet3, etc.). + VIRTIO : Deprecated! Use the traditional VIRTIO interface. PCI-PASSTHROUGH : Use PCI-PASSTHROUGH interface. SR-IOV : Use SR-IOV interface. E1000 : Emulate E1000 interface. RTL8139 : Emulate RTL8139 interface. PCNET : Emulate PCNET interface. - OM-MGMT : Deprecated! Use VIRTIO instead and set the VNF management interface at vnfd:mgmt-interface:cp"; + OM-MGMT : Deprecated! Use PARAVIRT instead and set the VNF management interface at vnfd:mgmt-interface:cp"; type enumeration { + enum PARAVIRT; enum OM-MGMT; enum PCI-PASSTHROUGH; enum SR-IOV; @@ -112,7 +114,7 @@ module vnfd-base enum RTL8139; enum PCNET; } - default "VIRTIO"; + default "PARAVIRT"; } leaf vpci { @@ -719,7 +721,9 @@ module vnfd-base leaf scale-in-threshold { description "Value below which scale-in requests are generated"; - type uint64; + type decimal64{ + fraction-digits 10; + } } leaf scale-in-relational-operation { @@ -733,7 +737,9 @@ module vnfd-base leaf scale-out-threshold { description "Value above which scale-out requests are generated"; - type uint64; + type decimal64{ + fraction-digits 10; + } } leaf scale-out-relational-operation { @@ -837,37 +843,43 @@ module vnfd-base case vdu-monitoring-param { description "VDU-related metric from the infrastructure"; - leaf vdu-ref { - type leafref { - path "../../vdu/id"; + container vdu-monitoring-param { + leaf vdu-ref { + type leafref { + path "../../../vdu/id"; + } } - } - leaf vdu-monitoring-param-ref { - type leafref { - path "../../vdu[id = current()/../vdu-ref]/monitoring-param/id"; + leaf vdu-monitoring-param-ref { + type leafref { + path "../../../vdu[id = current()/../vdu-ref]/monitoring-param/id"; + } } } } case vnf-metric { description "VNF-related metric (from VCA)"; - leaf vnf-metric-name-ref { - type leafref { - path "../../vnf-configuration/metrics/name"; + container vnf-metric { + leaf vnf-metric-name-ref { + type leafref { + path "../../../vnf-configuration/metrics/name"; + } } } } case vdu-metric { description "VDU-related metric (from VCA)"; - leaf vdu-id-ref { - type leafref { - path "../../vdu/id"; + container vdu-metric { + leaf vdu-ref { + type leafref { + path "../../../vdu/id"; + } } - } - leaf vdu-metric-name-ref { - type leafref { - path "../../vdu[id = current()/../vdu-id-ref]/vdu-configuration/metrics/name"; + leaf vdu-metric-name-ref { + type leafref { + path "../../../vdu[id = current()/../vdu-ref]/vdu-configuration/metrics/name"; + } } } }