netconfcentral logo

test-if-mib

HTML

test-if-mib@2017-03-19



  module test-if-mib {

    yang-version 1;

    namespace
      "http://www.yumaworks.com/ns/test-if-mib";

    prefix if-mib;

    import IANAifType-MIB {
      prefix ianaiftype-mib;
    }
    import SNMPv2-TC {
      prefix snmpv2-tc;
    }
    import ietf-yang-smiv2 {
      prefix smiv2;
    }
    import ietf-yang-types {
      prefix yang;
    }

    revision "2017-03-19" {
      description "Initial revision";
    }

    smiv2:alias "ifXTable" {
      smiv2:oid "1.3.6.1.2.1.31.1.1";
    }
    smiv2:alias "ifXEntry" {
      smiv2:oid "1.3.6.1.2.1.31.1.1.1";
    }
    smiv2:alias "interfaces" {
      smiv2:oid "1.3.6.1.2.1.2";
    }
    smiv2:alias "ifMIB" {
      smiv2:oid "1.3.6.1.2.1.31";
    }
    smiv2:alias "ifMIBObjects" {
      smiv2:oid "1.3.6.1.2.1.31.1";
    }
    smiv2:alias "ifConformance" {
      smiv2:oid "1.3.6.1.2.1.31.2";
    }
    smiv2:alias "ifGroups" {
      smiv2:oid "1.3.6.1.2.1.31.2.1";
    }
    smiv2:alias "ifCompliances" {
      smiv2:oid "1.3.6.1.2.1.31.2.2";
    }

    typedef InterfaceIndex {
      type int32 {
        smiv2:display-hint "d";
        range "1..2147483647";
      }
    }

    typedef InterfaceIndexOrZero {
      type int32 {
        smiv2:display-hint "d";
        range "0..2147483647";
      }
    }

    container IF-MIB {
      config false;
      container interfaces {
        smiv2:oid "1.3.6.1.2.1.2";
        leaf ifNumber {
          smiv2:max-access "read-only";
          smiv2:oid "1.3.6.1.2.1.2.1";
          type int32;
        }
      }  // container interfaces

      container ifMIBObjects {
        smiv2:oid "1.3.6.1.2.1.31.1";
        leaf ifTableLastChange {
          smiv2:max-access "read-only";
          smiv2:oid "1.3.6.1.2.1.31.1.5";
          type yang:timeticks;
        }

        leaf ifStackLastChange {
          smiv2:max-access "read-only";
          smiv2:oid "1.3.6.1.2.1.31.1.6";
          type yang:timeticks;
        }
      }  // container ifMIBObjects

      container ifTable {
        smiv2:oid "1.3.6.1.2.1.2.2";
        list ifEntry {
          smiv2:oid "1.3.6.1.2.1.2.2.1";
          key "ifIndex";
          leaf ifIndex {
            smiv2:max-access "read-only";
            smiv2:oid "1.3.6.1.2.1.2.2.1.1";
            type InterfaceIndex;
          }

          leaf ifDescr {
            smiv2:max-access "read-only";
            smiv2:oid "1.3.6.1.2.1.2.2.1.2";
            type snmpv2-tc:DisplayString {
              length "0..255";
            }
          }

          leaf ifType {
            smiv2:max-access "read-only";
            smiv2:oid "1.3.6.1.2.1.2.2.1.3";
            type ianaiftype-mib:IANAifType;
          }

          leaf ifOutErrors {
            smiv2:max-access "read-only";
            smiv2:oid "1.3.6.1.2.1.2.2.1.4";
            type yang:counter32;
          }

          leaf ifAdminStatus {
            smiv2:max-access "read-write";
            smiv2:oid "1.3.6.1.2.1.2.2.1.5";
            type enumeration {
              enum "up" {
                value 1;
              }
              enum "down" {
                value 2;
              }
              enum "testing" {
                value 3;
              }
            }
          }
        }  // list ifEntry
      }  // container ifTable

      container ifStackTable {
        smiv2:oid "1.3.6.1.2.1.31.1.2";
        list ifStackEntry {
          smiv2:oid "1.3.6.1.2.1.31.1.2.1";
          key "ifStackHigherLayer ifStackLowerLayer";
          leaf ifStackHigherLayer {
            smiv2:max-access "not-accessible";
            smiv2:oid "1.3.6.1.2.1.31.1.2.1.1";
            type uint32;
          }

          leaf ifStackLowerLayer {
            smiv2:max-access "not-accessible";
            smiv2:oid "1.3.6.1.2.1.31.1.2.1.2";
            type string;
          }

          leaf ifStackStatus {
            smiv2:max-access "read-write";
            smiv2:oid "1.3.6.1.2.1.31.1.2.1.3";
            type snmpv2-tc:RowStatus;
          }
        }  // list ifStackEntry
      }  // container ifStackTable

      container ifRcvAddressTable {
        smiv2:oid "1.3.6.1.2.1.31.1.4";
        list ifRcvAddressEntry {
          smiv2:oid "1.3.6.1.2.1.31.1.4.1";
          key "ifIndex ifRcvAddressAddress";
          leaf ifIndex {
            type leafref {
              path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifIndex";
            }
          }

          leaf ifRcvAddressAddress {
            smiv2:oid "1.3.6.1.2.1.31.1.4.1.1";
            type yang:phys-address;
          }

          leaf ifRcvAddressStatus {
            smiv2:max-access "read-write";
            smiv2:oid "1.3.6.1.2.1.31.1.4.1.2";
            type snmpv2-tc:RowStatus;
          }

          leaf ifRcvAddressType {
            smiv2:defval "volatile";
            smiv2:max-access "read-write";
            smiv2:oid "1.3.6.1.2.1.31.1.4.1.3";
            type enumeration {
              enum "other" {
                value 1;
              }
              enum "volatile" {
                value 2;
              }
              enum "nonVolatile" {
                value 3;
              }
            }
          }
        }  // list ifRcvAddressEntry
      }  // container ifRcvAddressTable
    }  // container IF-MIB

    augment /if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry {
      smiv2:oid "1.3.6.1.2.1.31.1.1.1";
      leaf ifName {
        smiv2:max-access "read-only";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.1";
        type snmpv2-tc:DisplayString;
      }

      leaf ifInMulticastPkts {
        smiv2:max-access "read-only";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.2";
        type yang:counter32;
      }

      leaf ifHCInOctets {
        smiv2:max-access "read-only";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.3";
        type yang:counter64;
      }

      leaf ifLinkUpDownTrapEnable {
        smiv2:max-access "read-write";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.4";
        type enumeration {
          enum "enabled" {
            value 1;
          }
          enum "disabled" {
            value 2;
          }
        }
      }

      leaf ifHighSpeed {
        smiv2:max-access "read-only";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.5";
        type yang:gauge32;
      }

      leaf ifPromiscuousMode {
        smiv2:max-access "read-write";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.6";
        type boolean;
      }

      leaf ifConnectorPresent {
        smiv2:max-access "read-only";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.7";
        type boolean;
      }

      leaf ifAlias {
        smiv2:max-access "read-write";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.8";
        type snmpv2-tc:DisplayString {
          length "0..64";
        }
      }

      leaf ifCounterDiscontinuityTime {
        smiv2:max-access "read-only";
        smiv2:oid "1.3.6.1.2.1.31.1.1.1.9";
        type yang:timestamp;
      }
    }

    notification linkDown {
      smiv2:oid "1.3.6.1.6.3.1.1.5.3";
      container object-1 {
        leaf ifIndex {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifIndex";
          }
        }
      }  // container object-1

      container object-2 {
        leaf ifIndex {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifIndex";
          }
        }

        leaf ifAdminStatus {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifAdminStatus";
          }
        }
      }  // container object-2

      container object-3 {
        leaf ifIndex {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifIndex";
          }
        }
      }  // container object-3
    }  // notification linkDown

    notification linkUp {
      smiv2:oid "1.3.6.1.6.3.1.1.5.4";
      container object-1 {
        leaf ifIndex {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifIndex";
          }
        }
      }  // container object-1

      container object-2 {
        leaf ifIndex {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifIndex";
          }
        }

        leaf ifAdminStatus {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifAdminStatus";
          }
        }
      }  // container object-2

      container object-3 {
        leaf ifIndex {
          type leafref {
            path "/if-mib:IF-MIB/if-mib:ifTable/if-mib:ifEntry/if-mib:ifIndex";
          }
        }
      }  // container object-3
    }  // notification linkUp
  }  // module test-if-mib

Summary

  
Module test-if-mib
Version 2017-03-19
File test-if-mib.yang
  
Prefix if-mib
Namespace http://www.yumaworks.com/ns/test-if-mib
  
Cooked /cookedmodules/test-if-mib/2017-03-19
YANG /src/test-if-mib@2017-03-19.yang
XSD /xsd/test-if-mib@2017-03-19.xsd
  
  

Description

 

Typedefs

Typedef Base type Abstract
InterfaceIndex int32
InterfaceIndexOrZero int32

Objects

Type Key
Mandatory config
Optional config
Not config
Object Type Abstract
IF-MIB container interfaces ifMIBObjects ifTable ifStackTable ifRcvAddressTable
   ifMIBObjects container ifTableLastChange ifStackLastChange
      ifStackLastChange leaf OID: /IF-MIB/ifMIBObjects/ifStackLastChange
      ifTableLastChange leaf OID: /IF-MIB/ifMIBObjects/ifTableLastChange
   ifRcvAddressTable container ifRcvAddressEntry
      ifRcvAddressEntry list ifIndex ifRcvAddressAddress ifRcvAddressStatus ifRcvAddressType
         ifIndex leaf OID: /IF-MIB/ifRcvAddressTable/ifRcvAddressEntry/ifIndex
         ifRcvAddressAddress leaf OID: /IF-MIB/ifRcvAddressTable/ifRcvAddressEntry/ifRcvAddressAddress
         ifRcvAddressStatus leaf OID: /IF-MIB/ifRcvAddressTable/ifRcvAddressEntry/ifRcvAddressStatus
         ifRcvAddressType leaf OID: /IF-MIB/ifRcvAddressTable/ifRcvAddressEntry/ifRcvAddressType
   ifStackTable container ifStackEntry
      ifStackEntry list ifStackHigherLayer ifStackLowerLayer ifStackStatus
         ifStackHigherLayer leaf OID: /IF-MIB/ifStackTable/ifStackEntry/ifStackHigherLayer
         ifStackLowerLayer leaf OID: /IF-MIB/ifStackTable/ifStackEntry/ifStackLowerLayer
         ifStackStatus leaf OID: /IF-MIB/ifStackTable/ifStackEntry/ifStackStatus
   ifTable container ifEntry
      ifEntry list ifIndex ifDescr ifType ifOutErrors ifAdminStatus ifName ifInMulticastPkts ifHCInOctets ifLinkUpDownTrapEnable ifHighSpeed ifPromiscuousMode ifConnectorPresent ifAlias ifCounterDiscontinuityTime
         ifAdminStatus leaf OID: /IF-MIB/ifTable/ifEntry/ifAdminStatus
         ifAlias leaf OID: /IF-MIB/ifTable/ifEntry/ifAlias
         ifConnectorPresent leaf OID: /IF-MIB/ifTable/ifEntry/ifConnectorPresent
         ifCounterDiscontinuityTime leaf OID: /IF-MIB/ifTable/ifEntry/ifCounterDiscontinuityTime
         ifDescr leaf OID: /IF-MIB/ifTable/ifEntry/ifDescr
         ifHCInOctets leaf OID: /IF-MIB/ifTable/ifEntry/ifHCInOctets
         ifHighSpeed leaf OID: /IF-MIB/ifTable/ifEntry/ifHighSpeed
         ifIndex leaf OID: /IF-MIB/ifTable/ifEntry/ifIndex
         ifInMulticastPkts leaf OID: /IF-MIB/ifTable/ifEntry/ifInMulticastPkts
         ifLinkUpDownTrapEnable leaf OID: /IF-MIB/ifTable/ifEntry/ifLinkUpDownTrapEnable
         ifName leaf OID: /IF-MIB/ifTable/ifEntry/ifName
         ifOutErrors leaf OID: /IF-MIB/ifTable/ifEntry/ifOutErrors
         ifPromiscuousMode leaf OID: /IF-MIB/ifTable/ifEntry/ifPromiscuousMode
         ifType leaf OID: /IF-MIB/ifTable/ifEntry/ifType
   interfaces container ifNumber
      ifNumber leaf OID: /IF-MIB/interfaces/ifNumber

Notifications

Notification Abstract
linkDown object-1 object-2 object-3
linkUp object-1 object-2 object-3