junos-rpc-l2circuit

Junos RPC YANG module for l2circuit command(s)

  • Version: 2019-01-01

    junos-rpc-l2circuit@2019-01-01


    
      module junos-rpc-l2circuit {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos/rpc/l2circuit";
    
        prefix l2circuit;
    
        import junos-common-types {
          prefix jt;
          revision-date "2019-01-01";
        }
    
        organization "Juniper Networks, Inc.";
    
        contact "yang-support@juniper.net";
    
        description
          "Junos RPC YANG module for l2circuit command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-l2ckt-connection-information {
          description
            "Show the Layer 2 circuit connections";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf neighbor {
              type string;
              default "all";
              description
                "IP address of neighbor";
            }
    
            leaf interface {
              type string;
              default "all";
              description "Name of interface";
            }
    
            leaf state {
              type enumeration {
                enum "down" {
                  value 0;
                  description
                    "Display nonoperational connections";
                }
                enum "up" {
                  value 1;
                  description
                    "Display operational connections";
                }
                enum "up-down" {
                  value 2;
                  description
                    "Display both operational and nonoperational connections (default)";
                }
              }
              default "up-down";
            }
    
            leaf level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display one-line version of output";
                }
                enum "extensive" {
                  value 1;
                  description
                    "Display connection status and history";
                }
                enum "history" {
                  value 2;
                  description
                    "Display connection history";
                }
                enum "instance-history" {
                  value 3;
                  description
                    "Display instance history";
                }
                enum "status" {
                  value 4;
                  description
                    "Display connection and interface status (default)";
                }
                enum "summary" {
                  value 5;
                  description
                    "Display summary output";
                }
              }
              default "status";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2circuit-connection-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2ckt-connection-information
    
        rpc get-l2ckt-pw-auto-sensing-information {
          description
            "Show the Layer 2 circuit PW auto-sensing information";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf neighbor {
              type string;
              default "all";
              description
                "IP address of neighbor";
            }
    
            leaf vc-id {
              type string;
              default "all";
              description "VC ID";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2circuit-pw-auto-sensing-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2ckt-pw-auto-sensing-information
      }  // module junos-rpc-l2circuit
    

© 2023 YumaWorks, Inc. All rights reserved.