+
+ grouping gnpy {
+ list gnpy-response {
+ key path-dir;
+ config false;
+ description "GNPy response";
+ leaf path-dir{
+ type string;
+ description "A-to-Z or Z-to-A";
+ }
+ leaf feasibility {
+ type boolean;
+ description
+ "true : feasible path / False : non-feasible.";
+ }
+ choice response-type {
+ config false;
+ description "response-type";
+ case no-path-case {
+ uses gnpypc:no-path-info;
+ }
+ case path-case {
+ uses path-performance;
+ description "Path computation service.";
+ }
+ }
+ }
+ }
+
+ grouping path-performance {
+ description "TE generic path properties grouping";
+ container path-properties {
+ config false;
+ description "The TE path properties";
+ list path-metric {
+ key metric-type;
+ description "TE path metric type";
+ leaf metric-type {
+ type identityref {
+ base gnpypc:path-metric-type;
+ }
+ }
+ leaf accumulative-value {
+ type decimal64 {
+ fraction-digits 2;
+ }
+ }
+ }
+ }
+ }