Skip to content
Snippets Groups Projects
tapi-connectivity@2019-03-31.yang 44.6 KiB
Newer Older
  • Learn to ignore specific revisions
  • Manuel Kieweg's avatar
    Manuel Kieweg committed
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989
    module tapi-connectivity {
        namespace "urn:onf:otcc:yang:tapi-connectivity";
        prefix tapi-connectivity;
        import tapi-common {
            prefix tapi-common;
        }
        import tapi-topology {
            prefix tapi-topology;
        }
        import tapi-path-computation {
            prefix tapi-path-computation;
        }
        organization "ONF OTCC (Open Transport Configuration & Control) Project";
        contact "
             Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>
             Project List: <mailto:transport-api@opennetworking.org>
             Editor: Karthik Sethuraman
                     <mailto:karthik.sethuraman@necam.com>";
        description "
            This module contains TAPI Connectivity Model definitions.
            Source: TapiConnectivity.uml
            Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.
            License: This module is distributed under the Apache License 2.0
            - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.
            - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]
            <https://github.com/OpenNetworkingFoundation/EagleUmlYang>
            and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]
            <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>
            - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.
            As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.
            - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.
            The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.
            YANG models included in this release may not be backward compatible with previous TAPI releases.";
        revision 2019-03-31 {
            description "ONF Transport API version 2.2-RC1.
                       Changes included in this TAPI release (v2.2) are listed in
                      <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.2.md>";
            reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
                      <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.2.0/UML>";
        }
        revision 2018-12-10 {
            description "ONF Transport API version 2.1.1.
                       Changes included in this TAPI release (v2.1.1) are listed in
                      <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";
            reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
                      <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.1/UML>";
        }
        revision 2018-10-16 {
            description "ONF Transport API version 2.1.0.
                       Changes included in this TAPI release (v2.1.0) are listed in
                      <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";
            reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
                      <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
        }
        revision 2018-03-07 {
            description "ONF Transport API version 2.0.2
            This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
            Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";
            reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
                      <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";
        }
        revision 2018-02-16 {
            description "ONF Transport API version 2.0.1
            This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
            Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";
            reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
                      <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";
        }
        revision 2018-01-02 {
            description "ONF Transport API version 2.0.0
            This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
            Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";
            reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
                      <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";
        }
        augment "/tapi-common:context" {
            container connectivity-context {
                uses connectivity-context;
                description "Augments the base TAPI Context with ConnectivityService information";
            }
            description "Augments the base TAPI Context with ConnectivityService information";
        }
        augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {
            container cep-list {
                uses cep-list;
                description "none";
            }
            description "none";
        }
        /**************************
        * definitions of references
        **************************/
        grouping connectivity-service-ref {
            leaf connectivity-service-uuid {
                type leafref {
                    path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:uuid';
                }
                description "none";
            }
            description "none";
        }
        grouping connectivity-service-end-point-ref {
            uses connectivity-service-ref;
            leaf connectivity-service-end-point-local-id {
                type leafref {
                    path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point/tapi-connectivity:local-id';
                }
                description "none";
            }
            description "none";
        }
        grouping connection-end-point-ref {
            uses tapi-topology:node-edge-point-ref;
            leaf connection-end-point-uuid {
                type leafref {
                    path '/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point/tapi-connectivity:uuid';
                }
                description "none";
            }
            description "none";
        }
        grouping connection-ref {
            leaf connection-uuid {
                type leafref {
                    path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connection/tapi-connectivity:uuid';
                }
                description "none";
            }
            description "none";
        }
        grouping switch-control-ref {
            uses connection-ref;
            leaf switch-control-uuid {
                type leafref {
                    path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connection/tapi-connectivity:switch-control/tapi-connectivity:uuid';
                }
                description "none";
            }
            description "none";
        }
        grouping route-ref {
            uses connection-ref;
            leaf route-local-id {
                type leafref {
                    path '/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connection/tapi-connectivity:route/tapi-connectivity:local-id';
                }
                description "none";
            }
            description "none";
        }
        
        /**************************
        * package object-classes
        **************************/ 
        grouping connection {
            list connection-end-point {
                uses connection-end-point-ref;
                key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';
                config false;
                min-elements 2;
                description "none";
            }
            list lower-connection {
                uses connection-ref;
                key 'connection-uuid';
                config false;
                description "An Connection object supports a recursive aggregation relationship such that the internal construction of an Connection can be exposed as multiple lower level Connection objects (partitioning).
                    Aggregation is used as for the Node/Topology  to allow changes in hierarchy. 
                    Connection aggregation reflects Node/Topology aggregation. 
                    The FC represents a Cross-Connection in an NE. The Cross-Connection in an NE is not necessarily the lowest level of FC partitioning.";
            }
            list supported-client-link {
                uses tapi-topology:link-ref;
                key 'topology-uuid link-uuid';
                config false;
                description "none";
            }
            container bounding-node {
                uses tapi-topology:node-ref;
                config false;
                description "none";
            }
            list route {
                key 'local-id';
                config false;
                uses route;
                description "none";
            }
            list switch-control {
                key 'uuid';
                config false;
                uses switch-control;
                description "none";
            }
            leaf direction {
                type tapi-common:forwarding-direction;
                config false;
                description "none";
            }
            leaf layer-protocol-name {
                type tapi-common:layer-protocol-name;
                config false;
                description "none";
            }
            uses tapi-common:global-class;
            uses tapi-common:operational-state-pac;
            description "The ForwardingConstruct (FC) object class models enabled potential for forwarding between two or more LTPs and like the LTP supports any transport protocol including all circuit and packet forms.
                At the lowest level of recursion, a FC represents a cross-connection within an NE.";
        }
        grouping connection-end-point {
            leaf layer-protocol-name {
                type tapi-common:layer-protocol-name;
                config false;
                description "none";
            }
            leaf layer-protocol-qualifier {
                type tapi-common:layer-protocol-qualifier;
                config false;
                description "none";
            }
            container parent-node-edge-point {
                uses tapi-topology:node-edge-point-ref;
                config false;
                description "none";
            }
            list client-node-edge-point {
                uses tapi-topology:node-edge-point-ref;
                key 'topology-uuid node-uuid node-edge-point-uuid';
                config false;
                description "none";
            }
            list aggregated-connection-end-point {
                uses connection-end-point-ref;
                key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';
                config false;
                description "none";
            }
            leaf connection-port-direction {
                type tapi-common:port-direction;
                config false;
                description "The orientation of defined flow at the EndPoint.";
            }
            leaf connection-port-role {
                type tapi-common:port-role;
                config false;
                description "Each EP of the FC has a role (e.g., working, protection, protected, symmetric, hub, spoke, leaf, root)  in the context of the FC with respect to the FC function. ";
            }
            leaf protection-role {
                type protection-role;
                description "none";
            }
            uses tapi-common:global-class;
            uses tapi-common:operational-state-pac;
            uses tapi-common:termination-pac;
            description "The LogicalTerminationPoint (LTP) object class encapsulates the termination and adaptation functions of one or more transport layers. 
                The structure of LTP supports all transport protocols including circuit and packet forms.";
        }
        grouping connectivity-constraint {
            leaf service-type {
                type service-type;
                description "none";
            }
            leaf service-level {
                type string;
                description "An abstract value the meaning of which is mutually agreed – typically represents metrics such as - Class of service, priority, resiliency, availability
                    Class of Service Name.";
            }
            container requested-capacity {
                uses tapi-common:capacity;
                description "none";
            }
            container schedule {
                uses tapi-common:time-range;
                description "none";
            }
            container coroute-inclusion {
                uses connectivity-service-ref;
                description "none";
            }
            list diversity-exclusion {
                uses connectivity-service-ref;
                key 'connectivity-service-uuid';
                description "none";
            }
            leaf-list connection-exclusion {
                type tapi-common:uuid;
                description "none";
            }
            leaf-list connection-inclusion {
                type tapi-common:uuid;
                description "A ConnectivityService may use one or more existing Connections.
                    A common traditional strategy is to set up 'stranded' connectivity in the core of the network as 'express channels' (this is essentially a serial compound link, but can be treated as simple connections)
                    A connection inclusion capability allows for adoption of a discovered Connections.
                    A ConnectivityService is requested with a connection inclusion constraint that identifies a connection (or chain of connections) that is bounded by CEPs that each belong to a NEP that references a SIP that is referenced by a CSEP of the ConnectivityService such that all CSEPs are satisfied by CEPs of the existing Connection. will allow discovered Connections with no stated intent to be associated with an intent via the ConnectivityService.";
            }
            description "none";
        }
        grouping connectivity-service {
            list end-point {
                key 'local-id';
                min-elements 2;
                uses connectivity-service-end-point;
                description "none";
            }
            list connection {
                uses connection-ref;
                key 'connection-uuid';
                config false;
                description "none";
            }
            container connectivity-constraint {
                uses connectivity-constraint;
                description "none";
            }
            container routing-constraint {
                uses tapi-path-computation:routing-constraint;
                description "none";
            }
            list topology-constraint {
                key 'local-id';
                uses tapi-path-computation:topology-constraint;
                description "none";
            }
            container resilience-constraint {
                uses resilience-constraint;
                description "none";
            }
            leaf direction {
                type tapi-common:forwarding-direction;
                config false;
                description "none";
            }
            list connectivity-service {
                uses connectivity-service-ref;
                key 'connectivity-service-uuid';
                config false;
                description "none";
            }
            uses tapi-common:global-class;
            uses tapi-common:admin-state-pac;
            description "The ForwardingConstruct (FC) object class models enabled potential for forwarding between two or more LTPs and like the LTP supports any transport protocol including all circuit and packet forms.
                At the lowest level of recursion, a FC represents a cross-connection within an NE.";
        }
        grouping connectivity-service-end-point {
            leaf layer-protocol-name {
                type tapi-common:layer-protocol-name;
                description "none";
            }
            leaf layer-protocol-qualifier {
                type tapi-common:layer-protocol-qualifier;
                description "none";
            }
            container service-interface-point {
                uses tapi-common:service-interface-point-ref;
                description "none";
            }
            list connection-end-point {
                uses connection-end-point-ref;
                key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';
                config false;
                description "none";
            }
            container peer-fwd-connectivity-service-end-point {
                uses connectivity-service-end-point-ref;
                description "none";
            }
            container server-connectivity-service-end-point {
                uses connectivity-service-end-point-ref;
                description "none";
            }
            container protecting-connectivity-service-end-point {
                uses connectivity-service-end-point-ref;
                description "none";
            }
            container capacity {
                uses tapi-common:capacity;
                description "none";
            }
            leaf direction {
                type tapi-common:port-direction;
                description "The orientation of defined flow at the EndPoint.";
            }
            leaf role {
                type tapi-common:port-role;
                description "Each EP of the FC has a role (e.g., working, protection, protected, symmetric, hub, spoke, leaf, root)  in the context of the FC with respect to the FC function. ";
            }
            leaf protection-role {
                type protection-role;
                description "To specify the protection role of this Port when create or update ConnectivityService.";
            }
            uses tapi-common:local-class;
            uses tapi-common:admin-state-pac;
            description "The association of the FC to LTPs is made via EndPoints.
                The EndPoint (EP) object class models the access to the FC function. 
                The traffic forwarding between the associated EPs of the FC depends upon the type of FC and may be associated with FcSwitch object instances.  
                In cases where there is resilience the EndPoint may convey the resilience role of the access to the FC. 
                It can represent a protected (resilient/reliable) point or a protecting (unreliable working or protection) point.
                The EP replaces the Protection Unit of a traditional protection model. 
                The ForwadingConstruct can be considered as a component and the EndPoint as a Port on that component";
        }
        grouping route {
            list connection-end-point {
                uses connection-end-point-ref;
                key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';
                config false;
                min-elements 2;
                description "none";
            }
            container resilience-route {
                uses resilience-route;
                description "Provides optional resilience and state attributes to the Route.";
            }
            uses tapi-common:local-class;
            description "The Route of a Connection is modeled as a collection of Connection End Points.
                The logical order of the Connection End Points within the Route object can be inferred by the TAPI client by the knowledge of the Topology information.";
        }
        grouping connectivity-context {
            list connectivity-service {
                key 'uuid';
                uses connectivity-service;
                description "none";
            }
            list connection {
                key 'uuid';
                config false;
                uses connection;
                description "none";
            }
            description "none";
        }
        grouping switch {
            list selected-connection-end-point {
                uses connection-end-point-ref;
                key 'topology-uuid node-uuid node-edge-point-uuid connection-end-point-uuid';
                config false;
                min-elements 1;
                description "none";
            }
            list selected-route {
                uses route-ref;
                key 'connection-uuid route-local-id';
                config false;
                min-elements 1;
                description "none";
            }
            leaf selection-reason {
                type selection-reason;
                config false;
                description "The reason for the current switch selection.";
            }
            leaf switch-direction {
                type tapi-common:port-direction;
                description "Indicates whether the switch selects from ingress to the FC or to egress of the FC, or both.";
            }
            uses tapi-common:local-class;
            description "The class models the switched forwarding of traffic (traffic flow) between FcPorts (ConnectionEndPoints) and is present where there is protection functionality in the FC (Connection). 
                If an FC exposes protection (having two or more FcPorts that provide alternative identical inputs/outputs), the FC will have one or more associated FcSwitch objects to represent the alternative flow choices visible at the edge of the FC.
                The FC switch represents and defines a protection switch structure encapsulated in the FC. 
                Essentially performs one of the functions of the Protection Group in a traditional model. It associates to 2 or more FcPorts each playing the role of a Protection Unit. 
                One or more protection, i.e. standby/backup, FcPorts provide protection for one or more working (i.e. regular/main/preferred) FcPorts where either protection or working can feed one or more protected FcPort.
                The switch may be used in revertive or non-revertive (symmetric) mode. When in revertive mode it may define a waitToRestore time.
                It may be used in one of several modes including source switch, destination switched, source and destination switched etc (covering cases such as 1+1 and 1:1).
                It may be locked out (prevented from switching), force switched or manual switched.
                It will indicate switch state and change of state.
                The switch can be switched away from all sources such that it becomes open and hence two coordinated switches can both feed the same LTP so long as at least one of the two is switched away from all sources (is 'open').
                The ability for a Switch to be 'high impedance' allows bidirectional ForwardingConstructs to be overlaid on the same bidirectional LTP where the appropriate control is enabled to prevent signal conflict.
                This ability allows multiple alternate routes to be present that otherwise would be in conflict.";
        }
        grouping switch-control {
            list sub-switch-control {
                uses switch-control-ref;
                key 'connection-uuid switch-control-uuid';
                config false;
                description "none";
            }
            list switch {
                key 'local-id';
                uses switch;
                description "none";
            }
            uses tapi-common:global-class;
            uses resilience-constraint;
            description "Represents the capability to control and coordinate switches, to add/delete/modify FCs and to add/delete/modify LTPs/LPs so as to realize a protection scheme.";
        }
        grouping resilience-constraint {
            container resilience-type {
                uses tapi-topology:resilience-type;
                description "none";
            }
            leaf restoration-coordinate-type {
                type coordinate-type;
                description " The coordination mechanism between multi-layers.";
            }
            leaf fault-condition-determination {
                type fault-condition-determination;
                description "none";
            }
            leaf restore-priority {
                type uint64;
                description "none";
            }
            leaf reversion-mode {
                type reversion-mode;
                description "Indcates whether the protection scheme is revertive or non-revertive.";
            }
            leaf wait-to-revert-time {
                type uint64;
                default "15";
                description "If the protection system is revertive, this attribute specifies the time, in minutes, to wait after a fault clears on a higher priority (preferred) resource before reverting to the preferred resource.";
            }
            leaf hold-off-time {
                type uint64;
                description "This attribute indicates the time, in milliseconds, between declaration of signal degrade or signal fail, and the initialization of the protection switching algorithm.";
            }
            leaf is-lock-out {
                type boolean;
                description "The resource is configured to temporarily not be available for use in the protection scheme(s) it is part of.
                    This overrides all other protection control states including forced.
                    If the item is locked out then it cannot be used under any circumstances.
                    Note: Only relevant when part of a protection scheme.";
            }
            leaf is-frozen {
                type boolean;
                description "Temporarily prevents any switch action to be taken and, as such, freezes the current state. 
                    Until the freeze is cleared, additional near-end external commands are rejected and fault condition changes and received APS messages are ignored.
                    All administrative controls of any aspect of protection are rejected.";
            }
            leaf is-coordinated-switching-both-ends {
                type boolean;
                description "Is operating such that switching at both ends of each flow acorss the FC is coordinated at both ingress and egress ends.";
            }
            leaf max-switch-times {
                type uint64;
                description "Used to limit the maximum swtich times. When work fault disappears , and traffic return to the original work path, switch counter reset.";
            }
            leaf-list preferred-restoration-layer {
                type tapi-common:layer-protocol-name;
                description "Indicate which layer this resilience parameters package configured for.";
            }
            leaf selection-control {
                type selection-control;
                description "Degree of administrative control applied to the switch selection.";
            }
            list resiliency-route-constraint {
                key 'local-id';
                uses resiliency-route-constraint;
                description "none";
            }
            description "A list of control parameters to apply to a switch.";
        }
        grouping cep-list {
            list connection-end-point {
                key 'uuid';
                uses connection-end-point;
                description "none";
            }
            description "none";
        }
        grouping resilience-route {
            leaf route-state {
                type route-state;
                config false;
                description "Current information on the route selection.";
            }
            leaf priority {
                type uint64;
                config false;
                description "Value of 0 (zero) means 'unspecified priority'.
                    Highest priority is 1, sometimes referred as 'preferred' or 'main' or 'intended' route.
                    2 has lower priority than 1, 3 has lower priority than 2, etc.";
            }
            description "This object adds resilience and state attributes to the Route.
                When this object is not present, then the Route is intended as 'current' Route of the Connection.";
        }
        grouping resiliency-route-constraint {
            leaf priority {
                type uint64;
                description "Value of 0 (zero) means 'unspecified priority'.
                    Highest priority is 1, sometimes referred as 'preferred' or 'main' or 'intended' route.
                    2 has lower priority than 1, 3 has lower priority than 2, etc.";
            }
            container topology-constraint {
                uses tapi-path-computation:topology-constraint;
                description "none";
            }
            container routing-constraint {
                uses tapi-path-computation:routing-constraint;
                description "none";
            }
            uses tapi-common:local-class;
            description "none";
        }
    
        /**************************
        * package type-definitions
        **************************/ 
        identity FAULT_CONDITION_DETERMINATION {
            description "none";
        }
        identity FAULT_CONDITION_DETERMINATION_INHERENT {
            base FAULT_CONDITION_DETERMINATION;
            description "Inherent monitored (/I): The fault condition status of each link connection is derived from the status of the underlying server layer trail.";
        }
        identity FAULT_CONDITION_DETERMINATION_NON_INTRUSIVE {
            base FAULT_CONDITION_DETERMINATION;
            description "Non-intrusive monitored (/N): Each serial compound link connection is extended with a non-intrusive monitoring termination sink function to derive the fault condition status from the traffic signal that is present.";
        }
        identity FAULT_CONDITION_DETERMINATION_SUBLAYER {
            base FAULT_CONDITION_DETERMINATION;
            description "Sublayer monitored (/S): Each serial compound link connection is extended with tandem connection monitoring or segment termination/adaptation functions to derive the fault condition status independent of the traffic signal present.";
        }
        identity FAULT_CONDITION_DETERMINATION_TEST {
            base FAULT_CONDITION_DETERMINATION;
            description "Test monitored (/T): Each serial compound link connection's fault condition status is derived from an additional monitored serial compound link connection transported via the same serial compound link.";
        }
        identity CONNECTIVITY_OBJECT_TYPE {
        	base tapi-common:OBJECT_TYPE;
            description "none";
        }
        identity CONNECTIVITY_OBJECT_TYPE_CONNECTIVITY_SERVICE {
            base CONNECTIVITY_OBJECT_TYPE;
            description "none";
        }
        identity CONNECTIVITY_OBJECT_TYPE_CONNECTIVITY_SERVICE_END_POINT {
            base CONNECTIVITY_OBJECT_TYPE;
            description "none";
        }
        identity CONNECTIVITY_OBJECT_TYPE_CONNECTION {
            base CONNECTIVITY_OBJECT_TYPE;
            description "none";
        }
        identity CONNECTIVITY_OBJECT_TYPE_CONNECTION_END_POINT {
            base CONNECTIVITY_OBJECT_TYPE;
            description "none";
        }
        identity CONNECTIVITY_OBJECT_TYPE_SWITCH_CONTROL {
            base CONNECTIVITY_OBJECT_TYPE;
            description "none";
        }
        identity CONNECTIVITY_OBJECT_TYPE_SWITCH {
            base CONNECTIVITY_OBJECT_TYPE;
            description "none";
        }
        identity CONNECTIVITY_OBJECT_TYPE_ROUTE {
            base CONNECTIVITY_OBJECT_TYPE;
            description "none";
        }
        identity ROUTE_STATE {
            description "none";
        }
        identity ROUTE_STATE_CURRENT {
            base ROUTE_STATE;
            description "The route identified is the current route, i.e., is the one that is active and selected to support service.";
        }
        identity ROUTE_STATE_NOT_CURRENT {
            base ROUTE_STATE;
            description "The route is not the one supporting the service.";
        }
        identity ROUTE_STATE_UNKNOWN {
            base ROUTE_STATE;
            description "The route state is unknown.";
        }
        typedef service-type {
            type enumeration {
                enum POINT_TO_POINT_CONNECTIVITY {
                    description "none";
                }
                enum POINT_TO_MULTIPOINT_CONNECTIVITY {
                    description "none";
                }
                enum MULTIPOINT_CONNECTIVITY {
                    description "none";
                }
                enum ROOTED_MULTIPOINT_CONNECTIVITY {
                    description "none";
                }
            }
            description "none";
        }
        typedef reversion-mode {
            type enumeration {
                enum REVERTIVE {
                    description "An FC switched to a lower priority (non-preferred) resource will revert to a higher priority (preferred) resource when that recovers (potentially after some hold-off time).";
                }
                enum NON-REVERTIVE {
                    description "An FC switched to a lower priority (non-preferred) resource will not revert to a higher priority (preferred) resource when that recovers.";
                }
            }
            description "The reversion mode associated with protection.";
        }
        typedef selection-control {
            type enumeration {
                enum LOCK_OUT {
                    description "The resource is configured to temporarily not be available for use in the protection scheme(s) it is part of.
                        This overrides all other protection control states including forced.
                        If the item is locked out then it cannot be used under any circumstances.
                        Note: Only relevant when part of a protection scheme.";
                }
                enum NORMAL {
                    description "none";
                }
                enum MANUAL {
                    description "none";
                }
                enum FORCED {
                    description "none";
                }
            }
            description "Possible degrees of administrative control applied to the Route selection.";
        }
        typedef selection-reason {
            type enumeration {
                enum LOCKOUT {
                    description "none";
                }
                enum NORMAL {
                    description "none";
                }
                enum MANUAL {
                    description "none";
                }
                enum FORCED {
                    description "none";
                }
                enum WAIT_TO_REVERT {
                    description "none";
                }
                enum SIGNAL_DEGRADE {
                    description "none";
                }
                enum SIGNAL_FAIL {
                    description "none";
                }
            }
            description "The cause of the current route selection.";
        }
        typedef coordinate-type {
            type enumeration {
                enum NO_COORDINATE {
                    description "none";
                }
                enum HOLD_OFF_TIME {
                    description "none";
                }
                enum WAIT_FOR_NOTIFICATION {
                    description "none";
                }
            }
            description "none";
        }
        typedef protection-role {
            type enumeration {
                enum WORK {
                    description "none";
                }
                enum PROTECT {
                    description "none";
                }
                enum PROTECTED {
                    description "none";
                }
                enum NA {
                    description "none";
                }
                enum WORK_RESTORE {
                    description "none";
                }
                enum PROTECT_RESTORE {
                    description "none";
                }
            }
            description "none";
        }
        typedef fault-condition-determination {
            type identityref {
                base FAULT_CONDITION_DETERMINATION;
            }
            description "ITU-T G.808-201611
                3.2.6.8 subnetwork connection protection
                Transport entity protection for the case where the transport entity is a subnetwork connection.
                The serial compound link connection within the subnetwork connection is protected by adding bridges and selectors
                in the connection functions at the edges of the protected domain and an additional serial compound link connection between these connection functions.
                The determination of a fault condition on a serial compound link connection within the protected domain can be performed as follows: see enum.";
        }
        typedef connectivity-object-type {
            type identityref {
                base CONNECTIVITY_OBJECT_TYPE;
            }
            description "The list of TAPI Connectivity Object types/classes.";
        }
        typedef route-state {
            type identityref {
                base ROUTE_STATE;
            }
            description "Potential route states.";
        }
    
        /**************************
        * package interfaces
        **************************/ 
        rpc get-connection-details {
            description "none";
            input {
                leaf uuid {
                    type tapi-common:uuid;
                    description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.
                        An UUID carries no semantics with respect to the purpose or state of the entity.
                        UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.
                        Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} 
                        Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
                }
            }
            output {
                container connection {
                    uses connection;
                    description "none";
                }
            }
        }
        rpc get-connectivity-service-list {
            description "none";
            output {
                list service {
                    key 'uuid';
                    uses connectivity-service;
                    description "none";
                }
            }
        }
        rpc get-connectivity-service-details {
            description "none";
            input {
                leaf uuid {
                    type tapi-common:uuid;
                    description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.
                        An UUID carries no semantics with respect to the purpose or state of the entity.
                        UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.
                        Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} 
                        Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
                }
            }
            output {
                container service {
                    uses connectivity-service;
                    description "none";
                }
            }
        }
        rpc create-connectivity-service {
            description "none";
            input {
                leaf uuid {
                    type tapi-common:uuid;
                    description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.
                        An UUID carries no semantics with respect to the purpose or state of the entity.
                        UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.
                        Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} 
                        Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
                }
                list name {
                    key 'value-name';
                    uses tapi-common:name-and-value;
                    description "List of names. This value is unique in some namespace but may change during the life of the entity.
                        A name carries no semantics with respect to the purpose of the entity.";
                }
                leaf layer-protocol-name {
                    type tapi-common:layer-protocol-name;
                    description "none";
                }
                list end-point {
                    key 'local-id';
                    min-elements 2;
                    uses connectivity-service-end-point;
                    description "none";
                }
                container connectivity-constraint {
                    uses connectivity-constraint;
                    description "none";
                }
                container routing-constraint {
                    uses tapi-path-computation:routing-constraint;
                    description "none";
                }
                list topology-constraint {
                    key 'local-id';
                    uses tapi-path-computation:topology-constraint;
                    description "none";
                }
                container resilience-constraint {
                    uses resilience-constraint;
                    description "none";
                }
                leaf state {
                    type tapi-common:administrative-state;
                    description "none";
                }
            }
            output {
                container service {
                    uses connectivity-service;
                    description "none";
                }
            }
        }
        rpc update-connectivity-service {
            description "none";
            input {
                leaf uuid {
                    type tapi-common:uuid;
                    description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.
                        An UUID carries no semantics with respect to the purpose or state of the entity.
                        UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.
                        Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} 
                        Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
                }
                list name {
                    key 'value-name';
                    uses tapi-common:name-and-value;
                    description "List of names. This value is unique in some namespace but may change during the life of the entity.
                        A name carries no semantics with respect to the purpose of the entity.";
                }
                list end-point {
                    key 'local-id';
                    uses connectivity-service-end-point;
                    description "none";
                }
                container connectivity-constraint {
                    uses connectivity-constraint;
                    description "none";
                }
                container routing-constraint {
                    uses tapi-path-computation:routing-constraint;
                    description "none";
                }
                list topology-constraint {
                    key 'local-id';
                    uses tapi-path-computation:topology-constraint;
                    description "none";
                }
                container resilience-constraint {
                    uses resilience-constraint;
                    description "none";
                }
                leaf state {
                    type tapi-common:administrative-state;
                    description "none";
                }
            }
            output {
                container service {
                    uses connectivity-service;
                    description "none";
                }
            }
        }
        rpc delete-connectivity-service {
            description "none";
            input {
                leaf uuid {
                    type tapi-common:uuid;
                    description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.
                        An UUID carries no semantics with respect to the purpose or state of the entity.
                        UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.
                        Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} 
                        Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
                }
            }
        }
        rpc get-connection-end-point-details {
            description "none";
            input {
                leaf uuid {
                    type tapi-common:uuid;
                    description "UUID: An identifier that is universally unique within an identifier space, where the identifier space is itself globally unique, and immutable.
                        An UUID carries no semantics with respect to the purpose or state of the entity.
                        UUID here uses string representation as defined in RFC 4122.  The canonical representation uses lowercase characters.
                        Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-' + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12} 
                        Example of a UUID in string representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
                }
            }
            output {
                container connection-end-point {
                    uses connection-end-point;
                    description "none";
                }
            }
        }
    
    }