- rpc calculate-spanloss-base{
- description
- "This RPC calculates spanloss for the very first time on all links
- in the network model or any newly discovered link";
- input{
- leaf src-type {
- description
- "Soruce type defines whether RPC runs for all links or given link Id";
- type enumeration{
- enum "link"{
- value 1;
- }
- enum "all"{
- value 2;
- }
- }
- }
- leaf link-id {
- when "../src-type = 'link'";
- type ietf-network-topology:link-id;
- default "all";
- description
- "Link-Id for the link where spanloss-base needs to be calculated. Default option is
- calculating spanloss for all Roadm to Roadm links";
- }
- }
- output{
- leaf result{
- type string;
- }
- list spans {
- leaf link-id {
- type ietf-network-topology:link-id;
- }
- leaf spanloss {
- type string;
- }
- }
- }
+
+ rpc calculate-spanloss-base {
+ description
+ "This RPC calculates spanloss for the very first time on all links
+ in the network model or any newly discovered link";
+ input {
+ leaf src-type {
+ type enumeration {
+ enum link {
+ value 1;
+ }
+ enum all {
+ value 2;
+ }
+ }
+ description
+ "Source type defines whether RPC runs for all links or given link Id";
+ }
+ leaf link-id {
+ when "../src-type = 'link'";
+ type ietf-network-topology:link-id;
+ default "all";
+ description
+ "Link-Id for the link where spanloss-base needs to be calculated. Default option is
+ calculating spanloss for all Roadm to Roadm links";
+ }
+ }
+ output {
+ leaf result {
+ type string;
+ }
+ list spans {
+ leaf link-id {
+ type ietf-network-topology:link-id;
+ }
+ leaf spanloss {
+ type string;
+ }
+ }
+ }