[email protected] Maven / Gradle / Ivy
module transportpce-device-renderer {
namespace "http://org/opendaylight/transportpce/device/renderer";
prefix org-opendaylight-transportpce-device-renderer;
import transportpce-common-types {
prefix org-transportpce-common-types;
}
import org-openroadm-otn-common-types {
prefix org-openroadm-otn-common-types;
}
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 ( [email protected] )
Shweta Vachhani ( [email protected] )";
revision 2021-10-04 {
description
"Add source and destinatin API info in service-path";
}
revision 2021-06-18 {
description
"Replace service-type by service-format.
Change service-rate type";
}
revision 2020-01-28 {
description
"Complement rpc otn-service-path";
}
revision 2019-12-12 {
description
"Add rpc otn-service-path";
}
revision 2017-02-28 {
description
"Initial revision of renderer model version 1.5";
}
typedef action {
type enumeration {
enum create {
value 1;
}
enum delete {
value 2;
}
}
}
grouping az-api-info {
container a-end-api-info {
leaf node-id {
type string;
}
uses org-transportpce-common-types:api-info;
}
container z-end-api-info {
leaf node-id {
type string;
}
uses org-transportpce-common-types:api-info;
}
}
rpc service-path {
input {
leaf modulation-format {
type string;
}
leaf operation {
type action;
}
uses az-api-info;
uses org-transportpce-common-types:optical-renderer-input;
}
output {
leaf success {
type boolean;
}
leaf result {
type string;
}
uses org-transportpce-common-types:node-interfaces;
uses org-transportpce-common-types:link-tp;
}
}
rpc otn-service-path {
input {
leaf service-rate {
type uint32;
}
leaf service-format {
type string;
}
leaf ethernet-encoding {
type string;
}
leaf trib-slot {
type int16;
}
leaf-list complex-trib-slots {
type int16;
description
"Used in case trib-slot allocation policy of an equipment would
not correspond to contiguous trib-slots";
}
leaf-list opucn-trib-slots {
type org-openroadm-otn-common-types:opucn-trib-slot-def;
}
leaf trib-port-number {
type int16;
}
leaf operation {
type action;
}
uses az-api-info;
uses org-transportpce-common-types:otn-renderer-input;
}
output {
leaf success {
type boolean;
}
leaf result {
type string;
}
uses org-transportpce-common-types:node-interfaces;
uses org-transportpce-common-types:link-tp;
}
}
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;
}
}
}
}