junos-ex-rpc-vpls

Junos RPC YANG module for vpls command(s)

  • Version: 2019-01-01

    junos-ex-rpc-vpls@2019-01-01


    
      module junos-ex-rpc-vpls {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-ex/rpc/vpls";
    
        prefix vpls;
    
        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 vpls command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-vpls-connection-information {
          description
            "Show VPLS connections information";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              default "all";
              description
                "Name of VPLS instance";
            }
    
            leaf local-site {
              type string;
              default "all";
              description
                "Name or ID of VPLS local site";
            }
    
            leaf remote-site {
              type string;
              default "all";
              description
                "ID of VPLS remote site";
            }
    
            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 non- and operational 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 circuit status (default)";
                }
                enum "summary" {
                  value 5;
                  description
                    "Display summary output";
                }
              }
              default "status";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vpls-connection-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-connection-information
    
        rpc get-vpls-statistics-information {
          description
            "Show VPLS statistics information";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              default "all";
              description
                "Name of VPLS instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vpls-statistics-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-statistics-information
    
        rpc get-vpls-mac-table {
          description
            "Show media access control table";
          input {
            leaf instance {
              type string;
              default "all";
              description
                "Display information for a specified vpls";
            }
    
            leaf logical-system {
              type string;
              default "all";
              description
                "Name of logical system, or 'all'";
            }
    
            leaf vlan-id {
              type string;
              description
                "Display MAC address learned on a specified VLAN";
            }
    
            leaf isid {
              type string;
              description
                "Display Information for specified ISID or all ISID(s)";
            }
    
            leaf address {
              type jt:mac-addr;
              default "all";
              description "MAC address";
            }
    
            leaf show-choice {
              type enumeration {
                enum "detail" {
                  value 0;
                  description
                    "Display detailed output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
                enum "count" {
                  value 3;
                  description
                    "Display count only";
                }
                enum "age" {
                  value 4;
                  description
                    "Display age of a single mac-address";
                }
                enum "summary" {
                  value 5;
                  description
                    "Display summary output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-rtb-macdb {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-mac-table
    
        rpc get-vpls-interface-mac-table {
          description
            "Display MAC table for a specified interface";
          input {
            choice interface-choice {
              leaf interface-name {
                type string;
                description
                  "Name of interface for which to display table";
              }
              leaf all {
                type empty;
                description
                  "Display MAC table for all the interfaces";
              }
            }  // choice interface-choice
    
            leaf show-choice {
              type enumeration {
                enum "detail" {
                  value 0;
                  description
                    "Display detailed output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
                enum "count" {
                  value 3;
                  description
                    "Display count only";
                }
                enum "age" {
                  value 4;
                  description
                    "Display age of a single mac-address";
                }
                enum "summary" {
                  value 5;
                  description
                    "Display summary output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-interface-macdb {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-interface-mac-table
    
        rpc get-vpls-flood-information {
          description
            "Show VPLS flooding information";
          input {
            leaf logical-system {
              type string;
              default "all";
              description
                "Name of logical system, or 'all'";
            }
    
            leaf instance {
              type string;
              default "all";
              description
                "Display information for a specified vpls";
            }
    
            leaf verbosity {
              type enumeration {
                enum "detail" {
                  value 0;
                  description
                    "Display detailed output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-vpls-flood-instance {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-flood-information
    
        rpc get-vpls-ce-flood-route-information {
          description
            "Show customer edge flood route";
          input {
            leaf interface {
              type union {
                type jt:interface-unit;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              mandatory true;
              description
                "Interface for which to show CE flood route";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-vpls-flood-route-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-ce-flood-route-information
    
        rpc get-vpls-all-ce-flood-route-information {
          description
            "Show route for flooding traffic to all CE routers";
          input {
            leaf logical-system {
              type string;
              description
                "Name of logical system";
            }
    
            leaf instance {
              type string;
              mandatory true;
              description
                "Display information for a specified vpls";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-vpls-flood-route-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-all-ce-flood-route-information
    
        rpc get-vpls-event-queue-information {
          description
            "Show queue of pending VPLS flood events";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-vpls-flood-event-queue {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vpls-event-queue-information
      }  // module junos-ex-rpc-vpls
    

© 2023 YumaWorks, Inc. All rights reserved.