+++ /dev/null
-module renderer {
- yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:renderer";
- prefix "renderer";
-
- import org-transportpce-common-types {
- prefix org-transportpce-common-types;
- revision-date 2017-09-07;
- }
-
- organization
- "transportPCE";
- contact
- "transportPCE committers - ODL";
- description
- "YANG definitions of RPCs supported by renderer.
- Copyright (c) 2017 AT&T and others. All rights reserved.
- authors: Dhruv Bhardwaj ( db929a@att.com )
- Shweta Vachhani ( sv111y@att.com )";
-
- revision "2017-02-28" {
- description "Initial revision of renderer model";
- }
-
- rpc service-path {
- input {
- leaf modulation-format {
- type string;
- }
- leaf operation {
- type enumeration {
- enum "create" {
- value 1;
- }
- enum "delete" {
- value 2;
- }
- }
- }
- uses org-transportpce-common-types:olm-renderer-input;
- }
- output{
- leaf success {
- type boolean;
- }
- leaf result {
- type string;
- }
- uses org-transportpce-common-types:node-interfaces;
- }
- }
-
- rpc renderer-rollback {
- input {
- uses org-transportpce-common-types:node-interfaces;
- }
- output {
- leaf success {
- type boolean;
- }
- list failed-to-rollback {
- key node-id;
- leaf node-id {
- type string;
- }
- leaf-list interface {
- type string;
- }
- }
- }
- }
-
- rpc create-ots-oms {
- input {
- leaf node-id {
- type string;
- }
- leaf logical-connection-point {
- type string;
- }
- }
- output {
- leaf success {
- type boolean;
- }
- leaf result {
- type string;
- }
- }
- }
-}