netconfcentral logo

ietf-pw

HTML

ietf-pw@2017-05-05



  module ietf-pw {

    yang-version 1;

    namespace
      "urn:ietf:params:xml:ns:yang:ietf-pw";

    prefix pw;

    import ietf-inet-types {
      prefix inet;
    }
    import ietf-interfaces {
      prefix if;
    }

    organization "ietf";

    contact "ietf";

    description "pw";

    revision "2017-05-05" {
      description "02 revision.";
      reference
        "draft-chen-pals-pw-yang-02.txt";

    }

    revision "2016-10-05" {
      description "01 revision.";
      reference
        "draft-chen-pals-pw-yang-01.txt";

    }

    revision "2016-03-30" {
      description
        "Initial revision of pw model.";
      reference
        "draft-chen-pals-pw-yang-00.txt";

    }


    typedef cw-capable-type {
      type enumeration {
        enum "non-preferred" {
          value 0;
          description
            "No preference for control-word";
        }
        enum "preferred" {
          value 1;
          description
            "Prefer to have control-word negotiation";
        }
      }
      description
        "control-word capable preference type";
    }

    typedef cc-type {
      type enumeration {
        enum "pw-ach" {
          value 0;
          description
            "PWE3 Control Word with 0001b as first nibble (PW-ACH, see [RFC4385])";
        }
        enum "alert-label" {
          value 1;
          description
            "MPLS Router Alert Label";
        }
        enum "ttl" {
          value 2;
          description
            "MPLS PW Label with TTL == 1";
        }
      }
      description
        "The defined values for CC(Control Channel) Types for MPLS PWs.";
    }

    typedef cv-type {
      type enumeration {
        enum "ICMP-ping" {
          value 0;
          description "ICMP-ping.";
        }
        enum "LSP-ping" {
          value 1;
          description "LSP-ping";
        }
        enum "BFD-basic-ip" {
          value 2;
          description "BFD basic ip";
        }
        enum "BFD-basic-raw" {
          value 3;
          description "BFD basic raw ";
        }
        enum "BFD-signalling-ip" {
          value 4;
          description "BFD signalling ip";
        }
        enum "BFD-signalling-raw" {
          value 5;
          description "BFD signalling raw";
        }
      }
      description
        "The defined values for CV(Connectivity Verification) Types for MPLS PWs";
    }

    typedef pw-type {
      type enumeration {
        enum "unknown" {
          value 0;
          description
            "The PW type is unknown";
        }
        enum "dlciOld" {
          value 1;
          description
            "The PW type is dlciOld";
        }
        enum "atmSdu" {
          value 2;
          description
            "The PW type is atmSdu";
        }
        enum "atmCell" {
          value 3;
          description
            "The PW type is atmCell";
        }
        enum "vlan" {
          value 4;
          description "The PW type is vlan";
        }
        enum "ethernet" {
          value 5;
          description
            "The PW type is ethernet";
        }
        enum "hdlc" {
          value 6;
          description "The PW type is hdlc";
        }
        enum "ppp" {
          value 7;
          description "The PW type is ppp";
        }
        enum "sdhCESoM" {
          value 8;
          description
            "The PW type is sdhCESoM";
        }
        enum "atmVCCn" {
          value 9;
          description
            "The PW type is atmVCCn";
        }
        enum "atmVPCn" {
          value 10;
          description
            "The PW type is atmVPCn";
        }
        enum "ipL2" {
          value 11;
          description "The PW type is ipL2";
        }
        enum "atmVCC1" {
          value 12;
          description
            "The PW type is atmVCC1";
        }
        enum "atmVPC1" {
          value 13;
          description
            "The PW type is atmVPC1";
        }
        enum "atmPDU" {
          value 14;
          description
            "The PW type is atmPDU";
        }
        enum "frPort" {
          value 15;
          description
            "The PW type is frPort";
        }
        enum "sdhCEoP" {
          value 16;
          description
            "The PW type is sdhCEoP";
        }
        enum "saTopE1" {
          value 17;
          description
            "The PW type is saTopE1";
        }
        enum "saTopT1" {
          value 18;
          description
            "The PW type is saTopT1";
        }
        enum "saTopE3" {
          value 19;
          description
            "The PW type is saTopE3";
        }
        enum "saTopT3" {
          value 20;
          description
            "The PW type is saTopT3";
        }
        enum "ceSoPSNB" {
          value 21;
          description
            "The PW type is ceSoPSNB";
        }
        enum "tdmAAL1" {
          value 22;
          description
            "The PW type is tdmAAL1";
        }
        enum "ceSoPSNC" {
          value 23;
          description
            "The PW type is ceSoPSNC";
        }
        enum "tdmAAL2" {
          value 24;
          description
            "The PW type is tdmAAL2";
        }
        enum "dlciNew" {
          value 25;
          description
            "The PW type is dlciNew";
        }
      }
      description "The PW type of the PW.";
    }

    typedef pw-rtp-flag {
      type enumeration {
        enum "UNUSE" {
          value 0;
          description
            'Not use the rtp header.';
        }
        enum "USE" {
          value 1;
          description 'Use the rtp header.';
        }
        enum "UNKNOWN" {
          value 3;
          description
            'The usage of the rtp header is unknown.';
        }
      }
      description
        'The use flag of rtp header.';
    }

    typedef pw-timestamp-mode {
      type enumeration {
        enum "Absolute" {
          value 0;
          description
            'The timestamp mode is absolute.';
        }
        enum "Differential" {
          value 1;
          description
            'The timestamp mode is differential .';
        }
        enum "UNKNOWN" {
          value 3;
          description
            'The timestamp mode is unknown.';
        }
      }
      description
        'The timestamp mode of TDM service.';
    }

    container pwe3 {
      description "configure pw";
      container ss-pw {
        description "configure ss-pw";
        list ss-pw {
          key "name";
          description "ss-pw list";
          leaf name {
            type string;
            description "ss-pseudowire name";
          }

          leaf peer-ip {
            type inet:ip-address;
            description "peer IP address";
          }

          leaf cw-capable {
            type cw-capable-type;
            default "preferred";
            description
              "control-word negotiation preference";
          }

          leaf type {
            type pw-type;
            description "pseudo-wire type";
          }

          list tunnel {
            key "tunnel-id";
            description "tunnel list";
            leaf tunnel-id {
              type string;
              description
                "tunnel identifier";
            }
          }  // list tunnel

          leaf leaf-type {
            type pw-type;
            description "pseudo-wire type";
          }

          leaf autodiscovery-enable {
            type boolean;
            description
              "enable the auto-discovery";
          }

          container interfaces {
            description "Interfaces";
            list interface {
              key "name";
              description "interface list";
              leaf name {
                type if:interface-ref;
                description
                  "Interfaces used for pw";
              }

              leaf mtu {
                type uint32;
                description "pseudowire mtu";
              }

              leaf fcs-retention-indicator {
                type uint16;
                description
                  "The negotiated fcs retention indicator of the PW";
              }

              container vccv-parameter {
                description "vccv-parameter";
                leaf cc {
                  type cc-type;
                  description
                    "Control Channel Types";
                }

                leaf cv {
                  type cv-type;
                  description
                    "Connectivity Verification Types";
                }
              }  // container vccv-parameter

              leaf requested-vlan-id {
                type uint32;
                description
                  "The local requested VLAN ID of the PW";
              }

              leaf frag-indicator {
                type uint32;
                description
                  "The local fragmentation indicator of the PW";
              }

              leaf interface-description {
                type string {
                  length "0..81";
                }
                description
                  "The local interface description of the PW";
              }

              choice pw-emu-type {
                description
                  "The emulation type of the PW. It could be tdm, fr and atm. There are different interface parameters for different emulation types";
                case tdm {
                  leaf bit-rate {
                    type uint32;
                    description
                      "The local bit rate of the PW";
                  }

                  leaf payload-bytes {
                    type uint16;
                    description
                      "The local payload bytes of the PW";
                  }

                  leaf cells-per-packet {
                    type uint16;
                    description
                      "The local TDMoIP AAL1 cells per packet of the PW";
                  }

                  container tdm-options {
                    description
                      "The TDM Options parameter of the PW";
                    leaf rtp {
                      type pw-rtp-flag;
                      description
                        "The local rtp header usage";
                    }

                    leaf timestamp-mode {
                      type pw-timestamp-mode;
                      description
                        "The local timestamp mode";
                    }

                    leaf frequency {
                      type uint16;
                      description
                        "The local frequency of timestamping clock";
                    }

                    leaf ssrc {
                      type uint32;
                      description
                        "The local value of the Synchronization source ID";
                    }

                    leaf payload-type {
                      type uint8;
                      description
                        "The local payload type in the RTP header expected by the PW endpoint distributing this FEC";
                    }

                    leaf cas {
                      type uint8;
                      description
                        "The local cas of the PW";
                    }

                    leaf sp {
                      type uint8;
                      description
                        "The local sp of the PW";
                    }
                  }  // container tdm-options

                  container cep-option {
                    description
                      "The CEP Options parameter of the PW";
                    leaf ais {
                      type uint8;
                      description
                        "The local ais of CEP Options parameter of the PW";
                    }

                    leaf une {
                      type uint8;
                      description
                        "The local une of CEP Options parameter of the PW";
                    }

                    leaf rtp {
                      type uint8;
                      description
                        "The local rtp of CEP Options parameter of the PW";
                    }

                    leaf ebm {
                      type uint8;
                      description
                        "The local ebm of CEP Options parameter of the PW";
                    }

                    leaf async-t3 {
                      type uint8;
                      description
                        "The local async-t3 of CEP Options parameter of the PW";
                    }

                    leaf async-e3 {
                      type uint8;
                      description
                        "The local async-e3 of CEP Options parameter of the PW";
                    }

                    leaf cep-type {
                      type uint16;
                      description
                        "The local cep type of CEP Options parameter of the PW";
                    }
                  }  // container cep-option
                }  // case tdm

                case fr {
                  description
                    "The emulation type of the PW is fr";
                  leaf fr-dlci-len {
                    type uint16;
                    description
                      "The local fr dlci length of the PW";
                  }
                }  // case fr

                case atm {
                  description
                    "The emulation type of the PW is atm";
                  leaf max-atm-cells {
                    type uint16;
                    description
                      "The local max atm cells of the PW";
                  }
                }  // case atm
              }  // choice pw-emu-type
            }  // list interface
          }  // container interfaces

          choice pw-type {
            description
              "A choice of pseudowire type";
            choice fec-type {
              description "fec type";
              case generalized-pwid-fec-type {
                leaf agi {
                  type string;
                  description
                    "Attachment Group Identifier";
                }

                leaf source-AII {
                  type string;
                  description
                    "Source Attachment individual identifier";
                }

                leaf target-AII {
                  type string;
                  description
                    "Target Attachment individual identifier";
                }
              }  // case generalized-pwid-fec-type
              leaf pw-id {
                type uint32;
                description "pseudowire id";
              }
            }  // choice fec-type

            case static-pw {
              leaf static-pw-id {
                type uint32;
                description "pseudowire id";
              }

              leaf transmit-label {
                type uint32;
                description "transmit lable";
              }

              leaf receive-label {
                type uint32;
                description "receive label";
              }
            }  // case static-pw
          }  // choice pw-type
        }  // list ss-pw
      }  // container ss-pw

      container ms-pw {
        description "configure ms-pw";
        list ms-pw {
          key "name";
          description "ms-pw list";
          leaf name {
            type string;
            description "ms-pseudowire name";
          }

          list pw-segment-a {
            key "name";
            description "pw segment-a list";
            leaf name {
              type string;
              description
                "pseudowire segment a name";
            }
          }  // list pw-segment-a

          list pw-segment-z {
            key "name";
            description "pw segment-z list";
            leaf name {
              type string;
              description
                "pseudowire segment z name";
            }
          }  // list pw-segment-z
        }  // list ms-pw
      }  // container ms-pw
    }  // container pwe3
  }  // module ietf-pw

Summary

  
  
Organization ietf
  
Module ietf-pw
Version 2017-05-05
File ietf-pw@2017-05-05.yang
  
Prefix pw
Namespace urn:ietf:params:xml:ns:yang:ietf-pw
  
Cooked /cookedmodules/ietf-pw/2017-05-05
YANG /src/ietf-pw@2017-05-05.yang
XSD /xsd/ietf-pw@2017-05-05.xsd
  
Abstract pw
  
Contact
ietf

Description

 
pw

Typedefs

Typedef Base type Abstract
cc-type enumeration The defined values for CC(Control Channel) Types for MPLS PWs.
cv-type enumeration The defined values for CV(Connectivity Verification) Types for MPLS PWs
cw-capable-type enumeration control-word capable preference type
pw-rtp-flag enumeration The use flag of rtp header.
pw-timestamp-mode enumeration The timestamp mode of TDM service.
pw-type enumeration The PW type of the PW.

Objects

Type Key
Mandatory config
Optional config
Not config
Object Type Abstract
pwe3 container configure pw
   ms-pw container configure ms-pw
      ms-pw list ms-pw list
         name leaf ms-pseudowire name
         pw-segment-a list pw segment-a list
            name leaf pseudowire segment a name
         pw-segment-z list pw segment-z list
            name leaf pseudowire segment z name
   ss-pw container configure ss-pw
      ss-pw list ss-pw list
         autodiscovery-enable leaf enable the auto-discovery
         cw-capable leaf control-word negotiation preference
         interfaces container Interfaces
            interface list interface list
               fcs-retention-indicator leaf The negotiated fcs retention indicator of the PW
               frag-indicator leaf The local fragmentation indicator of the PW
               interface-description leaf The local interface description of the PW
               mtu leaf pseudowire mtu
               name leaf Interfaces used for pw
               pw-emu-type choice The emulation type of the PW. It could be tdm, fr and atm. There are different interface parameters for different emulation types
                  atm case The emulation type of the PW is atm
                     max-atm-cells leaf The local max atm cells of the PW
                  fr case The emulation type of the PW is fr
                     fr-dlci-len leaf The local fr dlci length of the PW
                  tdm case bit-rate payload-bytes cells-per-packet tdm-options cep-option
                     bit-rate leaf The local bit rate of the PW
                     cells-per-packet leaf The local TDMoIP AAL1 cells per packet of the PW
                     cep-option container The CEP Options parameter of the PW
                        ais leaf The local ais of CEP Options parameter of the PW
                        async-e3 leaf The local async-e3 of CEP Options parameter of the PW
                        async-t3 leaf The local async-t3 of CEP Options parameter of the PW
                        cep-type leaf The local cep type of CEP Options parameter of the PW
                        ebm leaf The local ebm of CEP Options parameter of the PW
                        rtp leaf The local rtp of CEP Options parameter of the PW
                        une leaf The local une of CEP Options parameter of the PW
                     payload-bytes leaf The local payload bytes of the PW
                     tdm-options container The TDM Options parameter of the PW
                        cas leaf The local cas of the PW
                        frequency leaf The local frequency of timestamping clock
                        payload-type leaf The local payload type in the RTP header expected by the PW endpoint distributing this FEC
                        rtp leaf The local rtp header usage
                        sp leaf The local sp of the PW
                        ssrc leaf The local value of the Synchronization source ID
                        timestamp-mode leaf The local timestamp mode
               requested-vlan-id leaf The local requested VLAN ID of the PW
               vccv-parameter container vccv-parameter
                  cc leaf Control Channel Types
                  cv leaf Connectivity Verification Types
         leaf-type leaf pseudo-wire type
         name leaf ss-pseudowire name
         peer-ip leaf peer IP address
         pw-type choice A choice of pseudowire type
            ldp-pw case fec-type
               fec-type choice fec type
                  generalized-pwid-fec-type case agi source-AII target-AII
                     agi leaf Attachment Group Identifier
                     source-AII leaf Source Attachment individual identifier
                     target-AII leaf Target Attachment individual identifier
                  pwid-fec case pw-id
                     pw-id leaf pseudowire id
            static-pw case static-pw-id transmit-label receive-label
               receive-label leaf receive label
               static-pw-id leaf pseudowire id
               transmit-label leaf transmit lable
         tunnel list tunnel list
            tunnel-id leaf tunnel identifier
         type leaf pseudo-wire type