rel3 IM fixes - removed references to rw-pb and corrected config-primitive instead... 46/5546/1
authorRajesh <rajesh.velandy@riftio.com>
Sun, 8 Oct 2017 04:13:32 +0000 (04:13 +0000)
committerRajesh <rajesh.velandy@riftio.com>
Sun, 8 Oct 2017 04:13:32 +0000 (04:13 +0000)
Signed-off-by: Rajesh <rajesh.velandy@riftio.com>
models/yang/mano-types.yang
models/yang/nsd-base.yang
models/yang/nsr.yang
models/yang/vlr.yang
models/yang/vnfr.yang

index 81022ad..8950c7a 100644 (file)
@@ -27,10 +27,6 @@ module mano-types
     prefix "inet";
   }
 
     prefix "inet";
   }
 
-  import rw-pb-ext {
-    prefix "rwpb";
-  }
-
   import rw-project {
     prefix "rw-project";
   }
   import rw-project {
     prefix "rw-project";
   }
@@ -241,7 +237,6 @@ module mano-types
     }
   }
 
     }
   }
 
-
   grouping vca-configuration {
     description
         "Information about the VNF or VDU configuration. Note:
   grouping vca-configuration {
     description
         "Information about the VNF or VDU configuration. Note:
@@ -278,65 +273,61 @@ module mano-types
             type string;
           }
           uses manotypes:vca-relationships;
             type string;
           }
           uses manotypes:vca-relationships;
-
         }
       }
         }
       }
+    }
 
 
+    list config-primitive {
+      description
+        "List of config primitives supported by the
+        configuration agent for this VNF or VDU.";
+      key "name";
 
 
-      list service-primitive {
-        rwpb:msg-new ServicePrimitive;
+      leaf name {
         description
         description
-          "List of config primitives supported by the
-          configuration agent for this VNF or VDU.";
-        key "name";
-
-        leaf name {
-          description
-            "Name of the config primitive.";
-          type string;
-        }
+          "Name of the config primitive.";
+        type string;
+      }
 
 
-        list parameter {
-          description
-            "List of parameters to the config primitive.";
-          key "name";
-          uses primitive-parameter;
-        }
+      list parameter {
+        description
+          "List of parameters to the config primitive.";
+        key "name";
+        uses primitive-parameter;
+      }
 
 
-        leaf user-defined-script {
-          description
-            "A user defined script. If user defined script is defined,
-             the script will be executed using bash";
-          type string;
-        }
+      leaf user-defined-script {
+        description
+          "A user defined script. If user defined script is defined,
+           the script will be executed using bash";
+        type string;
       }
       }
+    }
 
 
-      list initial-config-primitive {
-        rwpb:msg-new InitialConfigPrimitive;
+    list initial-config-primitive {
+      description
+        "Initial set of configuration primitives.";
+      key "seq";
+      leaf seq {
         description
         description
-          "Initial set of configuration primitives.";
-        key "seq";
-        leaf seq {
-          description
-              "Sequence number for the configuration primitive.";
-          type uint64;
-        }
+          "Sequence number for the configuration primitive.";
+        type uint64;
+      }
 
 
-        choice primitive-type {
-          case primitive-definition {
-            leaf name {
-              description
-                "Name of the configuration primitive.";
-              type string;
-            }
+      choice primitive-type {
+        case primitive-definition {
+          leaf name {
+            description
+              "Name of the configuration primitive.";
+            type string;
+          }
 
 
-            uses primitive-parameter-value;
+          uses primitive-parameter-value;
 
 
-            leaf user-defined-script {
-              description
-                "A user defined script.";
-              type string;
-            }
+          leaf user-defined-script {
+            description
+              "A user defined script.";
+            type string;
           }
         }
       }
           }
         }
       }
@@ -1959,7 +1950,6 @@ module mano-types
     }
 
     list user {
     }
 
     list user {
-      rwpb:msg-new CloudConfigUser;
       key "name";
       description "List of users to be added through cloud-config";
 
       key "name";
       description "List of users to be added through cloud-config";
 
index 6c852cb..c332869 100644 (file)
@@ -23,10 +23,6 @@ module nsd-base
   namespace "http://riftio.com/ns/riftware-1.0/nsd-base";
   prefix "nsd-base";
 
   namespace "http://riftio.com/ns/riftware-1.0/nsd-base";
   prefix "nsd-base";
 
-  import rw-pb-ext {
-    prefix "rwpb";
-  }
-
   import ietf-inet-types {
     prefix "inet";
   }
   import ietf-inet-types {
     prefix "inet";
   }
@@ -578,7 +574,6 @@ module nsd-base
     uses manotypes:ip-profile-list;
 
     list initial-service-primitive {
     uses manotypes:ip-profile-list;
 
     list initial-service-primitive {
-      rwpb:msg-new NsdInitialServicePrimitive;
       description
         "Initial set of service primitives for NSD.";
       key "seq";
       description
         "Initial set of service primitives for NSD.";
       key "seq";
@@ -587,7 +582,6 @@ module nsd-base
     }
 
     list terminate-service-primitive {
     }
 
     list terminate-service-primitive {
-      rwpb:msg-new NsdTerminateServicePrimitive;
       description
         "Set of service primitives during
          termination for NSD.";
       description
         "Set of service primitives during
          termination for NSD.";
@@ -743,11 +737,6 @@ module nsd-base
       default false;
     }
 
       default false;
     }
 
-    leaf ipv4-nat-pool-name{
-      type string;
-      description "IPV4 nat pool name";
-    }
-
     choice init-params {
       description "Extra parameters for VLD instantiation";
 
     choice init-params {
       description "Extra parameters for VLD instantiation";
 
index 7597a6f..12cf850 100644 (file)
@@ -23,10 +23,6 @@ module nsr
   namespace "urn:ietf:params:xml:ns:yang:nfvo:nsr";
   prefix "nsr";
 
   namespace "urn:ietf:params:xml:ns:yang:nfvo:nsr";
   prefix "nsr";
 
-  import rw-pb-ext {
-    prefix "rwpb";
-  }
-
   import vlr {
     prefix "vlr";
   }
   import vlr {
     prefix "vlr";
   }
@@ -76,6 +72,34 @@ module nsr
       "Derived from earlier versions of base YANG files";
   }
 
       "Derived from earlier versions of base YANG files";
   }
 
+  typedef vnffgr-operational-status {
+    type enumeration {
+      enum init;
+      enum running;
+      enum terminate;
+      enum terminated;
+      enum failed;
+    }
+  }
+
+  typedef ns-operational-status {
+    type enumeration {
+      enum init;
+      enum vl-init-phase;
+      enum vnf-init-phase;
+      enum running;
+      enum terminate;
+      enum vnf-terminate-phase;
+      enum vl-terminate-phase;
+      enum terminated;
+      enum failed;
+      enum scaling-out;
+      enum scaling-in;
+      enum vl-instantiate;
+      enum vl-terminate;
+    }
+  }
+
   typedef config-states {
     type enumeration {
       enum init;
   typedef config-states {
     type enumeration {
       enum init;
@@ -378,15 +402,7 @@ module nsr
             terminated          : The VNFFGR is in the terminated state.
             failed              : The VNFFGR instantiation failed
           ";
             terminated          : The VNFFGR is in the terminated state.
             failed              : The VNFFGR instantiation failed
           ";
-
-        type enumeration {
-          rwpb:enum-type "VnffgrOperationalStatus";
-          enum init;
-          enum running;
-          enum terminate;
-          enum terminated;
-          enum failed;
-        }
+        type vnffgr-operational-status;
       }
 
       list rsp {
       }
 
       list rsp {
@@ -507,13 +523,9 @@ module nsr
               type string;
             }
             leaf port-id {
               type string;
             }
             leaf port-id {
-              rwpb:field-inline "true";
-              rwpb:field-string-max 64;
               type string;
             }
             leaf vm-id {
               type string;
             }
             leaf vm-id {
-              rwpb:field-inline "true";
-              rwpb:field-string-max 64;
               type string;
             }
             leaf address {
               type string;
             }
             leaf address {
@@ -598,13 +610,9 @@ module nsr
             }
           }
           leaf port-id {
             }
           }
           leaf port-id {
-            rwpb:field-inline "true";
-            rwpb:field-string-max 64;
             type string;
           }
           leaf vm-id {
             type string;
           }
           leaf vm-id {
-            rwpb:field-inline "true";
-            rwpb:field-string-max 64;
             type string;
           }
           leaf ip-address {
             type string;
           }
           leaf ip-address {
@@ -856,21 +864,7 @@ module nsr
             vl-terminate        : The NS is terminating a VL
           ";
 
             vl-terminate        : The NS is terminating a VL
           ";
 
-          type enumeration {
-            enum init;
-            enum vl-init-phase;
-            enum vnf-init-phase;
-            enum running;
-            enum terminate;
-            enum vnf-terminate-phase;
-            enum vl-terminate-phase;
-            enum terminated;
-            enum failed;
-            enum scaling-out;
-            enum scaling-in;
-            enum vl-instantiate;
-            enum vl-terminate;
-          }
+          type ns-operational-status;
         }
 
         leaf config-status {
         }
 
         leaf config-status {
@@ -960,7 +954,6 @@ module nsr
         }
 
         list initial-service-primitive {
         }
 
         list initial-service-primitive {
-          rwpb:msg-new NsrInitialServicePrimitive;
           description
             "Initial set of service primitives for NSD.";
           key "seq";
           description
             "Initial set of service primitives for NSD.";
           key "seq";
@@ -969,7 +962,6 @@ module nsr
         }
 
         list terminate-service-primitive {
         }
 
         list terminate-service-primitive {
-          rwpb:msg-new NsrTerminateServicePrimitive;
           description
             "Set of service primitives to
              execute during termination of NSD.";
           description
             "Set of service primitives to
              execute during termination of NSD.";
index 616bad0..6a9b591 100644 (file)
@@ -23,10 +23,6 @@ module vlr
   namespace "urn:ietf:params:xml:ns:yang:nfvo:vlr";
   prefix "vlr";
 
   namespace "urn:ietf:params:xml:ns:yang:nfvo:vlr";
   prefix "vlr";
 
-  import rw-pb-ext {
-    prefix "rwpb";
-  }
-
   import ietf-yang-types {
     prefix "yang";
   }
   import ietf-yang-types {
     prefix "yang";
   }
@@ -182,7 +178,6 @@ module vlr
           ";
 
           type enumeration {
           ";
 
           type enumeration {
-            rwpb:enum-type "VlOperationalStatus";
             enum init;
             enum vl-alloc-pending;
             enum running;
             enum init;
             enum vl-alloc-pending;
             enum running;
index d47c6a7..ebccf12 100644 (file)
@@ -27,10 +27,6 @@ module vnfr
     prefix "manotypes";
   }
 
     prefix "manotypes";
   }
 
-  import rw-pb-ext {
-    prefix "rwpb";
-  }
-
   import vnfd-base {
     prefix "vnfd-base";
   }
   import vnfd-base {
     prefix "vnfd-base";
   }
@@ -72,6 +68,34 @@ module vnfr
       "Derived from earlier versions of base YANG files";
   }
 
       "Derived from earlier versions of base YANG files";
   }
 
+  typedef vdu-operational-status {
+    type enumeration {
+      enum init;
+      enum vm-init-phase;
+      enum vm-alloc-pending;
+      enum running;
+      enum terminate;
+      enum vl-terminate-phase;
+      enum terminated;
+      enum failed;
+    }
+  }
+
+  typedef vnf-operational-status {
+    type enumeration {
+      enum pre-init;
+      enum init;
+      enum vl-init-phase;
+      enum vm-init-phase;
+      enum running;
+      enum terminate;
+      enum vm-terminate-phase;
+      enum vl-terminate-phase;
+      enum terminated;
+      enum failed;
+    }
+  }
+
   grouping placement-group-info {
     list placement-groups-info {
       description
   grouping placement-group-info {
     list placement-groups-info {
       description
@@ -85,7 +109,6 @@ module vnfr
     }
   }
 
     }
   }
 
-
   grouping virtual-interface {
     container virtual-interface {
       description
   grouping virtual-interface {
     container virtual-interface {
       description
@@ -331,6 +354,7 @@ module vnfr
               "IP address assigned to the external connection point";
             type inet:ip-address;
           }
               "IP address assigned to the external connection point";
             type inet:ip-address;
           }
+
           leaf mac-address {
             description
               "MAC address assigned to the external connection point";
           leaf mac-address {
             description
               "MAC address assigned to the external connection point";
@@ -364,8 +388,6 @@ module vnfr
             description "Short Unique name of the VDU
                   This will be of the format NSR name-ShortnedString-VDUname
                   NSR name and VDU name shall be constrained to 10 characters";
             description "Short Unique name of the VDU
                   This will be of the format NSR name-ShortnedString-VDUname
                   NSR name and VDU name shall be constrained to 10 characters";
-            rwpb:field-inline "true";
-            rwpb:field-string-max 64;
             type string;
           }
 
             type string;
           }
 
@@ -450,6 +472,7 @@ module vnfr
                 "IP address assigned to the internal connection point";
               type inet:ip-address;
             }
                 "IP address assigned to the internal connection point";
               type inet:ip-address;
             }
+
             leaf mac-address {
               description
                 "MAC address assigned to the internal connection point";
             leaf mac-address {
               description
                 "MAC address assigned to the internal connection point";
@@ -513,31 +536,20 @@ module vnfr
           uses virtual-interface;
         }
 
           uses virtual-interface;
         }
 
-        leaf operational-status {
-          description
-            "The operational status of the VDU
-              init                : The VDU has just started.
-              vm-init-phase       : The VDUs in the VNF is being created in VIM.
-              vm-alloc-pending    : The  VM alloc is pending in VIM
-              running             : The VDU is active in VM
-              terminate           : The VDU is being terminated
-              vm-terminate-phase  : The VDU in the VNF is being terminated in VIM.
-              terminated          : The VDU is in the terminated state.
-              failed              : The VDU  instantiation failed.
-            ";
-
-            type enumeration {
-              rwpb:enum-type "VduOperationalStatus";
-              enum init;
-              enum vm-init-phase;
-              enum vm-alloc-pending;
-              enum running;
-              enum terminate;
-              enum vl-terminate-phase;
-              enum terminated;
-              enum failed;
-            }
-          }
+         leaf operational-status {
+            description
+              "The operational status of the VDU
+                init                : The VDU has just started.
+                vm-init-phase       : The VDUs in the VNF is being created in VIM.
+                vm-alloc-pending    : The  VM alloc is pending in VIM
+                running             : The VDU is active in VM
+                terminate           : The VDU is being terminated
+                vm-terminate-phase  : The VDU in the VNF is being terminated in VIM.
+                terminated          : The VDU is in the terminated state.
+                failed              : The VDU  instantiation failed.
+              ";
+            type vdu-operational-status;
+         }
 
           uses placement-group-info;
         }
 
           uses placement-group-info;
         }
@@ -558,20 +570,7 @@ module vnfr
               terminated          : The VNF is in the terminated state.
               failed              : The VNF instantiation failed
             ";
               terminated          : The VNF is in the terminated state.
               failed              : The VNF instantiation failed
             ";
-
-          type enumeration {
-            rwpb:enum-type "VnfrOperationalStatus";
-            enum pre-init;
-            enum init;
-            enum vl-init-phase;
-            enum vm-init-phase;
-            enum running;
-            enum terminate;
-            enum vm-terminate-phase;
-            enum vl-terminate-phase;
-            enum terminated;
-            enum failed;
-          }
+          type vnf-operational-status;
         }
 
         leaf config-status {
         }
 
         leaf config-status {
@@ -599,7 +598,6 @@ module vnfr
         uses placement-group-info;
 
         container cloud-config {
         uses placement-group-info;
 
         container cloud-config {
-          rwpb:msg-new VnfrCloudConfig;
           uses manotypes:cloud-config;
         }
       }
           uses manotypes:cloud-config;
         }
       }