remove tpce service-path 1.5 models 00/87200/6
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 16 Oct 2019 12:49:51 +0000 (14:49 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Wed, 29 Jan 2020 14:08:18 +0000 (15:08 +0100)
JIRA: TRNSPRTPCE-160
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I9b9ff7709a26597636a40d3dd6a8563244816e69

api/src/main/yang/service_path/transportpce-common-service-path-types@2017-04-26.yang [deleted file]
api/src/main/yang/service_path/transportpce-pathDescription@2017-04-26.yang [deleted file]
api/src/main/yang/service_path/transportpce-pce@2017-04-26.yang [deleted file]
api/src/main/yang/service_path/transportpce-routing-constraints@2017-04-26.yang [deleted file]
api/src/main/yang/service_path/transportpce-service-path@2017-04-26.yang [deleted file]
api/src/main/yang/service_path/transportpce-servicehandler@2017-09-30.yang [deleted file]
lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/service/PCEServiceWrapper.java
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/service/RendererServiceWrapper.java
servicehandler/src/test/java/org/opendaylight/transportpce/servicehandler/utils/ServiceDataUtils.java

diff --git a/api/src/main/yang/service_path/transportpce-common-service-path-types@2017-04-26.yang b/api/src/main/yang/service_path/transportpce-common-service-path-types@2017-04-26.yang
deleted file mode 100644 (file)
index b0bf7f2..0000000
+++ /dev/null
@@ -1,219 +0,0 @@
-module transportpce-common-service-path-types {
-  namespace "http://org/transportpce/B-C-interface/service/types";
-  prefix transportpce-common-service-path-types;
-
-  import ietf-yang-types {
-    prefix yang;
-  }
-  import ietf-inet-types {
-    prefix inet;
-  }
-  import transportpce-routing-constraints {
-    prefix transportpce-routing-constraints;
-    revision-date 2017-04-26;
-  }
-  import transportpce-pathDescription {
-    prefix transportpce-pathDescription;
-    revision-date 2017-04-26;
-  }
-  import org-openroadm-common-types {
-    prefix org-openroadm-common-types;
-  }
-  import org-openroadm-resource-types {
-    prefix org-openroadm-resource-types;
-  }
-  import org-openroadm-common-service-types {
-    prefix org-openroadm-common-service-types;
-  }
-
-  organization
-    "transportPCE";
-  contact
-    "transportPCE committers - ODL";
-  description
-    "YANG definitions of B & C interfaces (transportPCE). Adapted from service definition (openroadm).
-     Copyright © 2017 Orange, Inc. and others.  All rights reserved.
-
-     This model is derived from the OpenROADM service definition that includes the following notice:
-
-    openroadm copyright:
-      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
-      AT&T Intellectual Property.  All other rights reserved.
-
-      Redistribution and use in source and binary forms, with or without modification,
-      are permitted provided that the following conditions are met:
-
-      * Redistributions of source code must retain the above copyright notice, this
-        list of conditions and the following disclaimer.
-      * Redistributions in binary form must reproduce the above copyright notice,
-        this list of conditions and the following disclaimer in the documentation and/or
-        other materials provided with the distribution.
-      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
-        contributors may be used to endorse or promote products derived from this software
-        without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
-      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
-      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
-      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-      POSSIBILITY OF SUCH DAMAGE";
-
-  revision 2017-04-26 {
-    description
-      "Version 1.5";
-  }
-  typedef service-path-notification-types {
-    type enumeration {
-      enum "path-computation-request" {
-        value 1;
-      }
-      enum "cancel-resource-reserve" {
-        value 2;
-      }
-      enum "service-implementation-request" {
-        value 3;
-      }
-      enum "service-delete" {
-        value 4;
-      }
-    }
-  }
-
-  typedef rpc-status-ex {
-    description
-      "extended status of RPC ";
-    type enumeration {
-      enum "Successful" {
-        value 1;
-      }
-      enum "Failed" {
-        value 2;
-      }
-      enum "Pending" {
-          value 3;
-      }
-    }
-  }
-
-  grouping rpc-response-status-ex {
-    leaf status {
-      type rpc-status-ex;
-      mandatory true;
-      description
-        "Successful, Failed or Pending";
-
-        }
-     leaf status-message {
-      type string;
-      description
-        "Gives a more detailed reason for failure";
-      }
-  }
-
-  grouping response-parameters-sp {
-    container response-parameters {
-      uses transportpce-routing-constraints:routing-constraints-sp;
-      container path-description {
-          uses transportpce-pathDescription:path-description;
-      }
-    }
-  }
-
-  grouping service-endpoint-sp {
-    leaf service-format {
-      type org-openroadm-common-service-types:service-format;
-      mandatory true;
-      description
-        "Format of the requested service: Ethernet, OTU, etc.";
-    }
-    leaf service-rate {
-      when "../service-format!='OMS'"{
-        description "service rate not applicable when service
-        format is roadmline";
-      }
-      type uint32;
-      mandatory true;
-      description
-        "Rate of the requested service in GBps";
-    }
-    leaf clli {
-      type string;
-      mandatory true;
-      description
-        "CLLI";
-    }
-    leaf node-id {
-        type string;
-    }
-    container tx-direction {
-      uses org-openroadm-common-service-types:service-port;
- //     uses service-lgx;
- //     uses service-tail;
-    }
-    container rx-direction {
-      uses org-openroadm-common-service-types:service-port;
- //     uses service-lgx;
- //     uses service-tail;
-    }
-  }
-
-  grouping service-handler-header {
-    container service-handler-header {
-      leaf request-id {
-        type string;
-        mandatory true;
-      }
-    }
-  }
-
-  grouping service-path {
-    leaf service-path-name {
-      type string;
-      description
-        "Identifier for the service-path to be calculated by
-         the PCE";
-      mandatory true;
-    }
-    uses service-handler-header;
-
-    container service-a-end {
-      uses service-endpoint-sp;
-    }
-    container service-z-end {
-      uses service-endpoint-sp;
-    }
-    uses transportpce-routing-constraints:routing-constraints-sp;
-
-    leaf latency {
-      type uint32;
-      description
-        "Latency on service";
-    }
-    leaf-list fiber-span-srlgs {
-      type string;
-      description
-        "Shared risk link group identifiers";
-    }
-    list equipment-srgs {
-      key "srg-number";
-      uses org-openroadm-resource-types:srg-number;
-    }
-    leaf-list supporting-service-name {
-      description
-        "The service name that this runs over top. If connection-type is service, then this is the related
-         connection-type = infrastructure service, for example.";
-      type string;
-    }
-    container path-description {
-      uses transportpce-pathDescription:path-description;
-    }
-  }
-
-
-
-}
diff --git a/api/src/main/yang/service_path/transportpce-pathDescription@2017-04-26.yang b/api/src/main/yang/service_path/transportpce-pathDescription@2017-04-26.yang
deleted file mode 100644 (file)
index 7aa5e16..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-module transportpce-pathDescription {
-  namespace "http://org/transportpce/B-C-interface/pathDescription";
-  prefix transportpce-pathDescription;
-
-  import org-openroadm-resource {
-    prefix org-openroadm-resource;
-  }
-
-  organization
-    "transportPCE";
-  contact
-    "transportPCE committers - ODL";
-  description
-    "YANG definitions of B interface (transportPCE). Adapted from service definition (openroadm).
-     Copyright © 2017 Orange, Inc. and others.  All rights reserved.
-
-     This model is derived from the OpenROADM service definition that includes the following notice:
-
-
-    openroadm copyright:
-      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
-      AT&T Intellectual Property.  All other rights reserved.
-
-      Redistribution and use in source and binary forms, with or without modification,
-      are permitted provided that the following conditions are met:
-
-      * Redistributions of source code must retain the above copyright notice, this
-        list of conditions and the following disclaimer.
-      * Redistributions in binary form must reproduce the above copyright notice,
-        this list of conditions and the following disclaimer in the documentation and/or
-        other materials provided with the distribution.
-      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
-        contributors may be used to endorse or promote products derived from this software
-        without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
-      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
-      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
-      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-      POSSIBILITY OF SUCH DAMAGE";
-
-  revision 2017-04-26 {
-    description
-      "Version 1.5";
-  }
-
-  grouping PCE-resource {
-    description
-      "This resource identifier is intended to provide a generic identifer
-       for any resource that can be used without specific knowledge of
-       the resource.";
-    container resource {
-      choice resource {
-        case termination-point {
-          container termination-point-identifier {
-            leaf tp-id {
-                type string; //to be clarified with topology model
-            }
-            leaf node-id {
-                type string; //to be clarified with topology model
-            }
-          }
-        }
-
-        case link {
-          container link-identifier {
-            leaf link-id {
-                type string; //to be clarified with topology model
-            }
-          }
-        }
-
-        case node {
-          container node-identifier {
-            leaf node-id {
-                type string; // to be clarified with topology model
-            }
-          }
-        }
-      }
-    }
-  }
-
-
-  grouping path-description {
-    description
-      "Topology reports the individual hops along the service in the A to Z direction and Z to A directions.  This includes both ports internal to a device and those
-       at its edge that are available for externally connections. It includes both physical and logical ports.
-       Physical ports are ordered with the logical ports that run over them as follows:
-       a.\tOn ingress to a node/card, physical then logical
-       b.\tOn egress to a node/card, logical then physical";
-    container aToZ-direction {
-        leaf aToZ-wavelength-number {
-            type uint32;
-            mandatory true;
-        }
-        leaf rate {
-            type uint32;
-            mandatory true;
-        }
-        leaf modulation-format {
-            type string; // enum ?
-        }
-        list aToZ {
-          key "id";
-          leaf id {
-            description
-              "Unigue identifier for this topology component within this service";
-            type string;
-          }
-          uses hop;
-        }
-    }
-
-    container zToA-direction {
-        leaf zToA-wavelength-number {
-            type uint32;
-            mandatory true;
-        }
-        leaf rate {
-            type uint32;
-            mandatory true;
-        }
-        leaf modulation-format {
-            type string; // enum ?
-        }
-        list zToA {
-          key "id";
-          leaf id {
-            description
-              "Unigue identifier for this topology component within this service";
-            type string;
-          }
-          uses hop;
-        }
-    }
-  }
-
-
-  grouping hop {
-    uses PCE-resource;
-  }
-}
diff --git a/api/src/main/yang/service_path/transportpce-pce@2017-04-26.yang b/api/src/main/yang/service_path/transportpce-pce@2017-04-26.yang
deleted file mode 100644 (file)
index 2e665ab..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-module transportpce-pce {
-    namespace "http://org/opendaylight/transportpce/pce";
-    prefix "org-opendaylight-transportpce-pce";
-
-    import ietf-yang-types {
-        prefix yang;
-        revision-date 2013-07-15;
-    }
-    import transportpce-routing-constraints {
-        prefix transportpce-routing-constraints;
-        revision-date 2017-04-26;
-    }
-
-
-    import org-openroadm-common-service-types {
-        prefix org-openroadm-common-service-types;
-        revision-date 2016-10-14;
-    }
-
-    import org-openroadm-resource-types {
-        prefix org-openroadm-resource-types;
-        revision-date 2016-10-14;
-    }
-    import transportpce-common-service-path-types {
-        prefix transportpce-common-service-path-types;
-        revision-date 2017-04-26;
-    }
-    import transportpce-pathDescription {
-        prefix transportpce-pathDescription;
-        revision-date 2017-04-26;
-    }
-
-
-    organization
-        "transportPCE";
-      contact
-        "transportPCE committers - ODL";
-      description
-        "YANG definitions of stubrenderer services (transportPCE). Adapted from service path definition (openroadm).
-         Copyright © 2017 Orange, Inc. and others.  All rights reserved.
-
-        This model is derived from the OpenROADM service definition that includes the following notice:
-
-
-        openroadm copyright:
-          Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
-          AT&T Intellectual Property.  All other rights reserved.
-
-          Redistribution and use in source and binary forms, with or without modification,
-          are permitted provided that the following conditions are met:
-
-          * Redistributions of source code must retain the above copyright notice, this
-            list of conditions and the following disclaimer.
-          * Redistributions in binary form must reproduce the above copyright notice,
-            this list of conditions and the following disclaimer in the documentation and/or
-            other materials provided with the distribution.
-          * Neither the Members of the Open ROADM MSA Agreement nor the names of its
-            contributors may be used to endorse or promote products derived from this software
-            without specific prior written permission.
-
-          THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
-          AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-          WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-          IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
-          INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-          NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
-          OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-          WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-          ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-          POSSIBILITY OF SUCH DAMAGE";
-
-
-      revision 2017-04-26 {
-          description
-            "Version 1.5";
-      }
-
-      rpc path-computation-request {
-        input {
-          leaf service-name {
-            type string;
-            description
-              "Identifier for the service to be created in
-               the ROADM network, e.g., CLFI, CLCI, etc. This is reported against the service, but may not get reflected in the service in the network.";
-            mandatory true;
-          }
-          leaf resource-reserve {
-              type boolean;
-              description
-                  "indicates if resources (from local PCE topology) must be reserved until further notice (cancel-resource-reserve or topology update)";
-              mandatory true;
-          }
-          uses transportpce-common-service-path-types:service-handler-header;
-          container service-a-end {
-            uses transportpce-common-service-path-types:service-endpoint-sp;
-          }
-          container service-z-end {
-            uses transportpce-common-service-path-types:service-endpoint-sp;
-          }
-          uses transportpce-routing-constraints:routing-constraints-sp;
-        }
-        output {
-          uses org-openroadm-common-service-types:configuration-response-common;
-          uses transportpce-common-service-path-types:response-parameters-sp;
-        }
-      }
-
-      rpc cancel-resource-reserve {
-          input {
-          leaf service-name {
-            type string;
-            mandatory true;
-          }
-          uses transportpce-common-service-path-types:service-handler-header;
-          }
-          output {
-          uses org-openroadm-common-service-types:configuration-response-common;
-          }
-      }
-
-      notification service-path-rpc-result {
-        description
-          "This Notification indicates result of  service RPC";
-        leaf notification-type {
-          type transportpce-common-service-path-types:service-path-notification-types;
-        }
-        container path-description {
-              uses transportpce-pathDescription:path-description;
-        }
-        uses transportpce-common-service-path-types:rpc-response-status-ex;
-        uses org-openroadm-common-service-types:service-notification-result;
-      }
-}
diff --git a/api/src/main/yang/service_path/transportpce-routing-constraints@2017-04-26.yang b/api/src/main/yang/service_path/transportpce-routing-constraints@2017-04-26.yang
deleted file mode 100644 (file)
index 9caafdf..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-module transportpce-routing-constraints {
-  namespace "http://org/transportpce/B-C-interface/routing/constraints";
-  prefix transportpce-routing-constraints;
-
-  organization
-    "transportPCE";
-  contact
-    "transportPCE committers - ODL";
-  description
-    "YANG definitions of B interface (transportPCE). Adapted from service definition (openroadm).
-     Copyright © 2017 Orange, Inc. and others.  All rights reserved.
-
-     This model is derived from the OpenROADM service definition that includes the following notice:
-
-    openroadm copyright:
-      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
-      AT&T Intellectual Property.  All other rights reserved.
-
-      Redistribution and use in source and binary forms, with or without modification,
-      are permitted provided that the following conditions are met:
-
-      * Redistributions of source code must retain the above copyright notice, this
-        list of conditions and the following disclaimer.
-      * Redistributions in binary form must reproduce the above copyright notice,
-        this list of conditions and the following disclaimer in the documentation and/or
-        other materials provided with the distribution.
-      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
-        contributors may be used to endorse or promote products derived from this software
-        without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
-      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
-      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
-      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-      POSSIBILITY OF SUCH DAMAGE";
-
-  revision 2017-04-26 {
-    description
-      "Version 1.5";
-  }
-
-  grouping common-constraints-sp {
-    leaf-list SRLG {
-      type string;
-    }
-    leaf-list clli {
-      type string;
-    }
-    leaf-list node-id {
-      type string;
-    }
-  }
-
-  grouping ordered-constraints-sp {
-    description
-      "";
-    container hop-type {
-      choice hop-type {
-        case SRLG {
-          leaf SRLG {
-              type string; //to be clarified with topology model
-          }
-        }
-
-        case clli {
-          leaf clli {
-              type string; //to be clarified with topology model
-          }
-        }
-
-        case node {
-          leaf node-id {
-              type string; // to be clarified with topology model
-          }
-        }
-      }
-    }
-  }
-
-
-  grouping diversity-existing-service-contraints-sp {
-    leaf-list existing-service {
-      type string;
-      description
-        "Diverse from existing services identified by facility CLFI";
-    }
-    container existing-service-applicability {
-      leaf clli {
-        type boolean;
-      }
-      leaf node {
-        type boolean;
-      }
-      leaf srlg {
-        type boolean;
-      }
-    }
-  }
-
-  grouping routing-constraints-sp {
-    container hard-constraints {
-      uses constraints-sp;
-    }
-    container soft-constraints {
-      uses constraints-sp;
-    }
-    leaf pce-metric {
-        type enumeration {
-            enum hop-count;
-            enum propagation-delay;
-            enum TE-metric;
-            enum IGP-metric;
-        }
-    }
-    leaf locally-protected-links {
-        type boolean;
-        description "indicates whether it must use locally protected links or not";
-    }
-  }
-
-  grouping constraints-sp {
-    leaf-list customer-code {
-      type string;
-    }
-    choice co-routing-or-general {
-      case general {
-        container diversity {
-          uses diversity-existing-service-contraints-sp;
-        }
-        container exclude_ {
-          uses common-constraints-sp;
-          leaf-list supporting-service-name {
-            description
-              "Supporting service(s) to exclude from this route.";
-            type string;
-          }
-          leaf affinity {
-              type uint32;
-          }
-        }
-        container include_ {
-          list ordered-hops {
-              key hop-number;
-              leaf hop-number {
-                  description
-                    "designates the id of the hop: node-id, SRLG-id, site-id";
-                  type uint16;
-              }
-              uses ordered-constraints-sp;
-          }
-
-        }
-        container latency {
-          description
-            "Maximum latency allowed";
-          leaf max-latency {
-            type uint32;
-            units "ms";
-          }
-        }
-      }
-      case co-routing {
-        container co-routing {
-          leaf-list existing-service {
-            type string;
-            description
-              "Diverse from existing services identified by facility CLFI";
-          }
-        }
-      }
-    }
-  }
-
-}
diff --git a/api/src/main/yang/service_path/transportpce-service-path@2017-04-26.yang b/api/src/main/yang/service_path/transportpce-service-path@2017-04-26.yang
deleted file mode 100644 (file)
index 41022a3..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-module transportpce-servicepath {
-  namespace "http://org/transportpce/B-C-interface/servicepath";
-  prefix transportpce-servicepath;
-
-  import ietf-yang-types {
-    prefix yang;
-  }
-  import transportpce-routing-constraints {
-    prefix transportpce-routing-constraints;
-    revision-date 2017-04-26;
-  }
-  import org-openroadm-common-types {
-    prefix org-openroadm-common-types;
-  }
-  import org-openroadm-resource-types {
-    prefix org-openroadm-resource-types;
-  }
-  import org-openroadm-common-service-types {
-    prefix org-openroadm-common-service-types;
-  }
-  import transportpce-common-service-path-types {
-    prefix transportpce-common-service-path-types;
-    revision-date 2017-04-26;
-  }
-  import transportpce-pathDescription {
-      prefix transportpce-pathDescription;
-      revision-date 2017-04-26;
-  }
-  import org-openroadm-topology {
-    prefix org-openroadm-topology;
-  }
-
-  organization
-    "transportPCE";
-  contact
-    "transportPCE committers - ODL";
-  description
-    "YANG definitions of B and C interfaces (transportPCE).
-     Copyright © 2017 Orange, Inc. and others.  All rights reserved.
-     @authors: Xavier  POUGNARD ( xavier.pougnard AT orange DOT com )
-               Olivier RENAIS   ( oliver.renais   AT orange DOT com )";
-
-
-  revision 2017-04-26 {
-    description
-      "Version 1.5";
-  }
-
-  rpc path-computation-request {
-    input {
-      leaf service-name {
-        type string;
-        description
-          "Identifier for the service to be created in
-           the ROADM network, e.g., CLFI, CLCI, etc. This is reported against the service, but may not get reflected in the service in the network.";
-        mandatory true;
-      }
-      leaf resource-reserve {
-          type boolean;
-          description
-              "indicates if resources (from local PCE topology) must be reserved until further notice (cancel-resource-reserve or topology update)";
-          mandatory true;
-      }
-      uses transportpce-common-service-path-types:service-handler-header;
-      container service-a-end {
-        uses transportpce-common-service-path-types:service-endpoint-sp;
-      }
-      container service-z-end {
-        uses transportpce-common-service-path-types:service-endpoint-sp;
-      }
-      uses transportpce-routing-constraints:routing-constraints-sp;
-    }
-    output {
-      uses org-openroadm-common-service-types:configuration-response-common;
-      uses transportpce-common-service-path-types:response-parameters-sp;
-    }
-  }
-
-  rpc cancel-resource-reserve {
-      input {
-      leaf service-name {
-        type string;
-        mandatory true;
-      }
-      uses transportpce-common-service-path-types:service-handler-header;
-      }
-      output {
-      uses org-openroadm-common-service-types:configuration-response-common;
-      }
-  }
-
-
-
-  rpc service-implementation-request {
-      input {
-        leaf service-name {
-        type string;
-        description
-          "Identifier for the service to be created in
-           the ROADM network, e.g., CLFI, CLCI, etc. This is reported against the service, but may not get reflected in the service in the network.";
-        mandatory true;
-      }
-      uses transportpce-common-service-path-types:service-handler-header;
-      container service-a-end {
-        uses transportpce-common-service-path-types:service-endpoint-sp;
-      }
-      container service-z-end {
-        uses transportpce-common-service-path-types:service-endpoint-sp;
-      }
-      container path-description {
-          uses transportpce-pathDescription:path-description;
-      }
-      }
-      output {
-        uses org-openroadm-common-service-types:configuration-response-common;
-      }
-  }
-
-  rpc service-delete {
-      input {
-        leaf service-name {
-        type string;
-        description
-          "Identifier for the service to be created in
-           the ROADM network, e.g., CLFI, CLCI, etc. This is reported against the service, but may not get reflected in the service in the network.";
-        mandatory true;
-      }
-      uses transportpce-common-service-path-types:service-handler-header;
-      }
-      output {
-        uses org-openroadm-common-service-types:configuration-response-common;
-      }
-  }
-
-  container service-path-list {
-    description
-      "List of service paths. Can only be created, deleted, modified, etc. using special RPCs.";
-    list service-paths {
-      key "service-path-name";
-      uses transportpce-common-service-path-types:service-path;
-    }
-  }
-
-  grouping stubpce-path-description {
-      leaf path-name {
-          type string;
-          description
-            "Identifier for the pathDescription to be created in
-             the ROADM network, e.g., CLFI, CLCI, etc.";
-          mandatory true;
-        }
-      uses transportpce-pathDescription:path-description;
-  }
-
-  container path-description-list {
-    description
-      "List of pathDescription. Can only be created, deleted, modified, etc. using special RPCs.";
-    list pathDescriptions {
-      key "path-name";
-      uses stubpce-path-description;
-    }
-  }
-
-notification service-path-rpc-result {
-    description
-      "This Notification indicates result of  service RPC";
-    leaf notification-type {
-      type transportpce-common-service-path-types:service-path-notification-types;
-    }
-    container path-description {
-          uses transportpce-pathDescription:path-description;
-    }
-    uses transportpce-common-service-path-types:rpc-response-status-ex;
-    uses org-openroadm-common-service-types:service-notification-result;
-  }
-notification service-rpc-result-sp {
-    description
-      "This Notification indicates result of  service RPC and provides the topology";
-    leaf notification-type {
-      type transportpce-common-service-path-types:service-path-notification-types;
-    }
-    container path-topology {
-          uses org-openroadm-topology:topology;
-    }
-    uses transportpce-common-service-path-types:rpc-response-status-ex;
-    uses org-openroadm-common-service-types:service-notification-result;
-  }
-
-
-
-}
diff --git a/api/src/main/yang/service_path/transportpce-servicehandler@2017-09-30.yang b/api/src/main/yang/service_path/transportpce-servicehandler@2017-09-30.yang
deleted file mode 100644 (file)
index ea2fc11..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-module transportpce-servicehandler {
-  namespace "http://org/opendaylight/transportpce/servicehandler";
-  prefix "org-opendaylight-transportpce-servicehandler";
-
-  import org-openroadm-common-types {
-      prefix org-openroadm-common-types;
-      revision-date 2016-10-14;
-  }
-  import org-openroadm-common-service-types {
-    prefix org-openroadm-common-service-types;
-  }
-  import transportpce-common-service-path-types {
-    prefix org-openroadm-common-service-path-types;
-    revision-date 2017-04-26;
- }
-
-  organization
-    "Open ROADM MSA";
-  contact
-    "OpenROADM.org";
-  description
-    "YANG definitions of services.
-     Copyright © 2017 Orange, Inc. and others.  All rights reserved.
-
-     This model is derived from the OpenROADM service definition that includes the following notice:
-
-
-      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
-      AT&T Intellectual Property.  All other rights reserved.
-
-      Redistribution and use in source and binary forms, with or without modification,
-      are permitted provided that the following conditions are met:
-
-      * Redistributions of source code must retain the above copyright notice, this
-        list of conditions and the following disclaimer.
-      * Redistributions in binary form must reproduce the above copyright notice,
-        this list of conditions and the following disclaimer in the documentation and/or
-        other materials provided with the distribution.
-      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
-        contributors may be used to endorse or promote products derived from this software
-        without specific prior written permission.
-
-      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
-      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
-      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
-      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-      POSSIBILITY OF SUCH DAMAGE";
-
-  revision 2017-09-30 {
-    description
-      "Version 1.2";
-  }
-
-  rpc service-state-modify {
-      input {
-          leaf service-name {
-              type string;
-              mandatory true;
-          }
-          leaf operational-state {
-              type org-openroadm-common-types:state;
-          }
-      }
-      output {
-        uses org-openroadm-common-service-types:configuration-response-common;
-      }
-      description
-          "Just to test rpc restoration from org-openroadm-service";
-  }
-
-  notification service-rpc-result-sh{
-    description
-      "This Notification indicates result of service RPC";
-    leaf notification-type {
-      type org-openroadm-common-service-types:service-notification-types;
-    }
-    uses org-openroadm-common-service-path-types:rpc-response-status-ex;
-    uses org-openroadm-common-service-types:service-notification-result;
-  }
-}
index 874c926e8a35d681f098b201ff87e63d2e55b4d2..3226d8da26e48b2ab91d2bb479c070ec2773de71 100644 (file)
@@ -138,12 +138,10 @@ public final class TPCEUtils {
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.alarmsuppression.rev171102.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.networkutils.rev170818.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.$YangModuleInfoImpl.getInstance(),
-            org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev170426.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev170228.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.device.rev170228.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev171017.$YangModuleInfoImpl.getInstance(),
-            org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev171017.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.transportpce.common.types.rev170907.$YangModuleInfoImpl.getInstance(),
 
@@ -153,13 +151,10 @@ public final class TPCEUtils {
             org.opendaylight.yang.gen.v1.gnpy.path.rev190502.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev190702.$YangModuleInfoImpl.getInstance(),
 
-            org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev170426.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev171017.$YangModuleInfoImpl.getInstance(),
-            org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev170426.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev171017.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev170426.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.$YangModuleInfoImpl.getInstance(),
-            org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev171017.$YangModuleInfoImpl.getInstance(),
             org.opendaylight.yang.gen.v1.http.transportpce.topology.rev190625.$YangModuleInfoImpl.getInstance(),
 
index 2eb0b9815ca27c2f15b0c2af7ada61203cbb4915..e056424194559fe9f0236a48ba0ec8da1c744e2e 100644 (file)
@@ -28,8 +28,8 @@ import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev19
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.PathComputationRequestInputBuilder;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.PathComputationRequestOutput;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.PathComputationRequestOutputBuilder;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.ServiceRpcResultSh;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.ServiceRpcResultShBuilder;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev171017.ServiceRpcResultSh;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev171017.ServiceRpcResultShBuilder;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.ServiceEndpoint;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.ServiceNotificationTypes;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.configuration.response.common.ConfigurationResponseCommon;
@@ -41,7 +41,7 @@ import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev161014.TempSer
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev171017.RoutingConstraintsSp.PceMetric;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev171017.routing.constraints.sp.HardConstraints;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev171017.routing.constraints.sp.SoftConstraints;
-import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev170426.RpcStatusEx;
+import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.RpcStatusEx;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.response.parameters.sp.ResponseParameters;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.response.parameters.sp.ResponseParametersBuilder;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.service.handler.header.ServiceHandlerHeaderBuilder;
index 6b84d611354dc7b66372ffdef22a41da7d9f09ef..8c51b9d61931d48af8347ad3aafc4fda993a8275 100644 (file)
@@ -22,13 +22,13 @@ import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev171017.ServiceDeleteInputBuilder;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev171017.ServiceDeleteOutput;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev171017.ServiceDeleteOutputBuilder;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.ServiceRpcResultSh;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.ServiceRpcResultShBuilder;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev171017.ServiceRpcResultSh;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev171017.ServiceRpcResultShBuilder;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.ServiceNotificationTypes;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.configuration.response.common.ConfigurationResponseCommon;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.configuration.response.common.ConfigurationResponseCommonBuilder;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev161014.TempServiceDeleteInput;
-import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev170426.RpcStatusEx;
+import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.RpcStatusEx;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.service.handler.header.ServiceHandlerHeader;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev171016.service.handler.header.ServiceHandlerHeaderBuilder;
 import org.slf4j.Logger;
index 0ecf45f8d32951d93805f05de274b46b1688630d..44bf2ad85a63b3b06b3d5495c91f5fe1b79432b2 100644 (file)
@@ -27,8 +27,8 @@ import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev19
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev190624.service.path.rpc.result.PathDescriptionBuilder;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev171017.ServiceRpcResultSp;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev171017.ServiceRpcResultSpBuilder;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.ServiceRpcResultSh;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.ServiceRpcResultShBuilder;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev171017.ServiceRpcResultSh;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev171017.ServiceRpcResultShBuilder;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.ConnectionType;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.RpcActions;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.ServiceFormat;
@@ -404,7 +404,7 @@ public final class ServiceDataUtils {
 
     public static ServiceRpcResultSh buildServiceRpcResultSh(ServiceNotificationTypes serviceNotificationTypes,
             String serviceName, org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types
-            .rev170426.RpcStatusEx rpcStatusEx, String message) {
+            .rev171016.RpcStatusEx rpcStatusEx, String message) {
         DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssxxx");
         OffsetDateTime offsetDateTime = OffsetDateTime.now(ZoneOffset.UTC);
         DateAndTime datetime = new DateAndTime(dtf.format(offsetDateTime));