Inter-Domain Routing Working Group                               J. Haas
Internet Draft						   NextHop
							  S. Hares
							   NextHop
						      W. Tackabury
					      Gold Wire Technology

						     July 13, 2005

Intended status: Standards Track
Expires: May 14, 2008

Definitions of Managed Objects for the Fourth Version of Border Gateway
                    Protocol (BGP-4), Second Version
		   <draft-ietf-idr-bgp4-mibv2-05.txt>
                      draft-ietf-idr-bgp4-mibv2-06

Status of this Memo This document Memo

   By submitting this Internet-Draft, each author represents that any
   applicable patent or other IPR claims of which he or she is an Internet-Draft aware
   have been or will be disclosed, and is any of which he or she becomes
   aware will be disclosed, in full conformance accordance with
   all provisions of Section 10 6 of RFC2026. BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF), its areas, and its working groups.  Note that
   other groups may also distribute working documents as Internet-
   Drafts.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference mate-
   rial
   material or to cite them other than as "work in progress."

   The list of current Internet-Drafts can be accessed at
   http://www.ietf.org/ietf/1id-abstracts.txt
   http://www.ietf.org/ietf/1id-abstracts.txt.

   The list of Internet-Draft Shadow Directories can be accessed at
   http://www.ietf.org/shadow.html.

   By submitting this Internet-Draft, each author represents that any
   applicable patent or other IPR claims of which he or she is aware
   have been or will be disclosed, and any of which he or she becomes
   aware

   This Internet-Draft will be disclosed, in accordance with Section 6 of BCP 79. expire on May 14, 2008.

Copyright Notice

   Copyright (C) The Internet Society (2005).  All Rights Reserved. IETF Trust (2007).

Abstract

   This memo defines a portion of the Management Information Base (MIB)
   for use with network management protocols in TCP/IP-based internets.
   In particular, this MIB defines objects that facilitate the manage-
   ment of the Border Gateway Protocol Version 4 (BGP4).

   Distribution of this memo is unlimited.

1.  Introduction

   This memo defines a portion of the Management Information Base (MIB)
   for use with network management protocols in the Internet community. protocols.  In particular, particular it describes managed defines
   objects used for managing the Border Gateway Protocol Protocol, Version 4.

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  3
   2.  The Internet-Standard Management Framework

   For a detailed overview of the documents that describe the current
   Internet-Standard Management Framework, please refer to section 7 of
   RFC 3410 [RFC3410].

   Managed objects are accessed via a virtual information store, termed
   the Management Information Base or MIB.  MIB objects are generally
   accessed through the Simple Network Management Protocol (SNMP).
   Objects in the MIB are defined using the mechanisms defined in the . . . . . . . . . .  3
   3.  Conventions  . . . . . . . . . . . . . . . . . . . . . . . . .  3
   4.  Overview . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
   5.  Structure of Management Information (SMI).  This memo specifies a MIB
   module that is compliant to the SMIv2, which is described in STD 58,
   RFC 2578 [RFC2578], STD 58, RFC 2579 [RFC2579] and STD 58, RFC 2580

2.  Objectives

   This MIB Module is meant to broadly update and replace a prior MIB
   Module defined in RFC 1657 [RFC1657].  Additionally, there is another
   effort underway to address very specific limited objectives in updat-
   ing points in the RFC 1657 object definition and managed object
   attributes [MIB-DRAFT].  The MIB Module described herein is intended
   to fully serve the functions and scope of RFC 1657 and these RFC 1657
   updates.

2.1.  Protocol Extensions

   Additionally, however, there are a number of ways in which the BGP
   Protocol has been enhanced through its ability for added capabili-
   ties. Implementations of those capabilities have not been able to
   have any management capabilities present in RFC 1657-compliant MIB
   module agents, since the capabilities themselves postdated the adop-
   tion of RFC 1657.  For several significant capabilities, in the form
   of BGP Communities [RFC1997], Autonomous System Confederation
   [RFC3065] , BGP Multiprotocol Extensions [RFC2858], and Route Reflec-
   tion [RFC2796], the MIB Module defined in this document exposes
   object types to manage those extended capabilities and their opera-
   tion.

   One of these extensions in particular (the multiprotocol extensions)
   requires a thorough redefinition of MIB table row indices from the
   RFC 1657 state.  This allows transport-independent address indices
   consistent with the Address Family Identifier (AFI) and Subsequent
   Address Family Identifier (SAFI) mechanisms of that extension.

2.2.  Mechanisms for MIB Extensibility

   Moreover, the requirement for the incremental update of support for
   capabilities such as these begs the issue of placing modular extensi-
   bility for protocol extensions within the framework of the MIB
   itself.  Going forward, it would be very desirable to have attributes
   of the MIB structure, and administrative procedures,  . . . . . . . . . . . . . . . . .  4
     5.1.  Global Scalars . . . . . . . . . . . . . . . . . . . . . .  4
     5.2.  Tables . . . . . . . . . . . . . . . . . . . . . . . . . .  4
     5.3.  Obsoleted Tables . . . . . . . . . . . . . . . . . . . . .  5
     5.4.  Textual Conventions  . . . . . . . . . . . . . . . . . . .  5
     5.5.  Notifications  . . . . . . . . . . . . . . . . . . . . . .  6
     5.6.  Extensions . . . . . . . . . . . . . . . . . . . . . . . .  6
   6.  Relationship to allow the
   incremental update of the Other MIB scope to cover any such new protocol
   extensions, without requiring a reissue of the entire MIB.  In this
   sense, we seek Modules  . . . . . . . . . . . . . .  6
     6.1.  Relationship to structure the TCP-MIB  . . . . . . . . . . . . . . .  6
     6.2.  MIB much like the underlying BGP4
   itself, allowing capability-by-capability update.

2.3.  BGP Configuration

   Finally, the definition and adoption modules required for IMPORTS . . . . . . . . . . . . .  6
   7.  Definitions  . . . . . . . . . . . . . . . . . . . . . . . . .  7
   8.  Security Considerations  . . . . . . . . . . . . . . . . . . . 75
   9.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 76
   10. Contributors . . . . . . . . . . . . . . . . . . . . . . . . . 76
   11. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 77
   12. References . . . . . . . . . . . . . . . . . . . . . . . . . . 78
     12.1. Normative References . . . . . . . . . . . . . . . . . . . 78
     12.2. Informative References . . . . . . . . . . . . . . . . . . 79

1.  Introduction

   This memo defines a portion of the Management Information Base (MIB)
   for use with network management protocols.  In particular it defines
   objects for managing the Border Gateway Protocol, Version 3 4
   [RFC4271].

2.  The Internet-Standard Management Framework

   For a detailed overview of the SNMP has
   occurred since documents that describe the adoption current
   Internet-Standard Management Framework, please refer to section 7 of the
   RFC 1657 MIB.  As 3410 [RFC3410].

   Managed objects are accessed via a result, virtual information store, termed
   the
   ability to deploy secure configuration of managed elements via SNMP Management Information Base or MIB.  MIB objects are generally
   accessed through the Simple Network Management Protocol (SNMP).
   Objects in a standardized way has become a reality for managed networks.  In
   this the MIB definition effort, we seek to expose a more thorough capac-
   ity for configuration of BGP4 and its capabilities than was present are defined using the mechanisms defined in RFC 1657 or than was common practice at the time
   Structure of its adoption.

3.  MIB Organization

   The MIB is broken down into several top level sections. Management Information (SMI).  This sec-
   tionalization is important to create an organization for extensibil-
   ity.

   In general, memo specifies a top level section of the MIB
   module will identify some
   number of "core" scalar and tabular objects rooted off of it.  If
   there that is sufficient depth within a subsection of one of these top-
   level sections, the "core" subdivision off of the top level section
   may provide multiple levels compliant to the OBJECT IDENTIFIER scope necessary
   to define its management data.

   Once this core section SMIv2, which is defined, however, each top-level section
   has an explicit provision for an 'extensions' section OBJECT IDENTI-
   FIER. described in STD 58,
   RFC 2578 [RFC2578], STD 58, RFC 2579 [RFC2579] and STD 58, RFC 2580
   [RFC2580].

3.  Conventions

   The intent of the extensions section is to be containment for
   discrete per-extension sections.  By 'extension' here, we refer to
   protocol mechanisms, capabilities, key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and exchanges which "OPTIONAL" in this
   document are not
   defined to be interpreted as described in the base Border Gateway Protocol definition, or is not
   configuration for protocol operations RFC 2119 [RFC2119].

4.  Overview

   As part of similarly 'core' status.
   Currently, we propose keying the identification within IETF standardization effort for the per-exten-
   sion section BGP-4 protocol,
   [RFC4273] was written to address open issues in one the previous version
   of two ways.

   Where the extension is keyed BGP-4 MIB, [RFC1657].  However, that RFC was primarily
   intended to a defined capability which has an
   associated BGP capability number assigned by IANA (for example, mul-
   tiprotocol BGP extensions), the per extension section will be that
   defined IANA capability number.  Where address the extension has management
   information suitable for a MIB extension but does not correspond to
   an exchanged base BGP-4 protocol capability (for example, BGP Route Reflection), as documented in
   [RFC4271].

   The BGP-4 protocol has greatly increased in scope over the extension section shall have years from
   its final OBJECT IDENTIFIER fragment
   correspond to the RFC number original definition.  Scaling mechanisms such as Route Reflection
   [RFC4456] and Confederations [RFC5065] have been introduced.  Multi-
   protocol extensions [RFC4760] were introduced along which first uniquely defined allowed
   advertisement of reachability such as IPv6 [RFC2545], MPLS Labeled
   routes [RFC3107], etc.

   This MIB addresses several of the exten-
   sion (i.e., not deficiencies of the previous BGP-4
   MIB and provides an extension mechanism to permit additional MIB
   modules to be authored without requiring renumbering at the time a defining RFC for base BGP-4 MIB to be
   updated.  This is seen as a desirable goal since the BGP-4 protocol mechanism is outdated
   continues to receive attention by a later RFC).

3.1.  bgpM2BaseScalars

   The bgpM2BaseScalars section (and corresponding OBJECT IDENTIFIER) is
   used those wishing to delineate object types used for basic management and monitor-
   ing add to its
   functionality.

   In particular, this MIB addresses some specific weaknesses of the protocol implementation.	 These are core parameters for
   previous version:

   o  Add the local configuration.  While notifications are designed ability to monitor IPv6 BGP-4 peering sessions and carry
      IPv6 reachability.  Other forms of reachability can be
   extensible into any other section in the MIB module, the currently
   defined traps are located here, in a subsection 'bgpM2BaseNotifica-
   tions'.  This is rooted added at index level zero (0) here, owing to con-
   ventions established a
      later date courtesy of the address-family independent manner in [RFC2576].

   Support for multiple concurrently supported versions
      which this was done.

   o  Add several counters of BGP is
   exposed through operational interest.  For example, the entries
      number of routes received from a given BGP peer.

   o  Replaces objects that were incapable of carrying the bgpM2VersionTable.  Similarly,
   support full range of
      their values with ones that can.

   o  Provides human-readable output for multiple capabilities and authentication mechanisms, some complex data structures,
      such as
   identified by their assigned numbers, are reported in the bgpM2Sup-
   portedCapabilitiesTable and bgpM2SupportedAuthTable respectively.

   In the MIB document, there are currently scalar extension mechanisms
   to allow the agent to report membership of a local BGP Confederation
   [RFC3065] or Route Reflection Cluster ID [RFC2796], as well as
   whether these capabilities are in fact supported by the implementa-
   tion.  These are consistent with the non-capability based extension
   section indexing guidelines as presented above.

   bgpM2BaseScalars AS_PATH while also is the root for preserving a subsection, bgpM2BaseScalar-
   Configuration, which contains the companion configuration objects for version of the base scalar objects delineated in data
      that is canonically machine readable.

5.  Structure of the preceding paragraphs.
   These are presented as a series MIB Module

5.1.  Global Scalars

   o  bgpVersion - A vector of scalar read-write objects, with a
   single OBJECT-TYPE supported BGP Versions.

   o  bgpIdentifier - The BGP identifier of syntax StorageType to designate the persistence
   of local system.

   o  bgpLocalAsNew - A 4-byte capable local AS number which replaces
      the instance value data for these configuration scalars.

3.2.  bgpM2PeerData

   The bgpM2PeerData section is per-peer object type definitions. bgpLocalAs object.

   o  bgpAfPathAttrCount - The
   predominant table number of read-only STATUS object types entries in that section
   (bgpM2PeerTable) describes the session, negotiation state, and
   authentication state on a per
      bgpAfPathAttrTable.

5.2.  Tables

   o  bgpPeerAfTable - The BGP peer basis.  A second table.  This table (bgpM2Pre-
   fixCountersTable) exposes information about individual route prefixes
   received over each peer session.  A separate subsection is capable of
      representing IPv6 and its sub-
   ordinate table (bgpM2PeerErrorsTable) reports information about the
   last error encountered on a given other address-family independent peering session.

   Further subsections report authentication state with the peer, peer-
   ing session detected errors,	 and elapsed time it has taken to
   advance
      sessions.  This table replaces the bgpPeerTable from previous
      versions of this MIB.

   o  bgpPeerAfErrorsTable - A table of peering session into various states defined errors.  This
      table covers information previously present in the proto-
   col FSM.

   The bgpM2PeerConfiguredTimersTable reports and allows dynamic reset bgpPeerTable.

   o  bgpPeerAfEventTimesTable - A table of key timers on the peer session.  These currently allow reset peer-specific event timers.
      This table covers information previously present in bgpPeerTable.

   o  bgpPeerAfConfiguredTimersTable - A table of
   hold time and keepalive timer, for compatibility with the same capa-
   bilities in RFC 1657 [RFC1657]. For these resettable timers, their
   end-to-end negotiated current configured values are reflected
      of peer-specific event timers.  This table covers information
      previously present in bgpPeerTable.

   o  bgpPeerAfNegotiatedTimersTable - A table of per-peer negotiated
      timers.  This information covers information previously derived
      from the
   bgpM2PeerNegotiatedTimersTable.

   As currently defined, these tables describing authentication, error
   state, and timer values (in addition to the configuration tables bgpPeerTable.

   o  bgpPerAfCountersTable - A table of per-peer counters for
   session timers) are tightly coupled enough to the logical per-row
   view exposed in the bgpM2PeerTable row entries on a session that
   these subordinate "tables" are defined as AUGMENTing the
   bgpM2PeerTable itself.  The other primary design criterion behind
   this decision is that using this AUGMENTation does not increase messages
      and the
   per-row-data requirements BGP FSM.

   o  bgpPrefixCountersTable - A table of bgpM2PeerTable instance retrieval so as
   to make such per-row retrieval unwieldy per-peer AFI-SAFI counters for the management applica-
   tion.

3.2.1.	bgpM2PeerCapabilities

   bgpM2PeerCapabilitiesData
      prefixes.

   o  bgpNlriTable - A table of per-peer per AFI-SAFI prefix data.  This
      table covers information previously present in bgp4PathAttrTable.

   o  bgpAdjRibsOutTable - A per-peer per AFI-SAFI table indicating what
      reachability has objects and tables been advertised to describe BGP
   capabilities locally supported, and those reported and negotiated
   over each peer session.   For tables supporting each of these capa-
   bility sets, capability code and data value are provided.  Attention
   must be a given to the fact peer.

   o  bgpAfPathAttrTable - A table of BGP Path Attribute information.

   o  bgpAsPathTable - A table that multiple instances decomposes the elements of a given capabil-
   ity can be transmitted between BGP speakers.

3.2.2.	bgpM2PeerCounters

   The bgpM2CountersTable and bgpM2PrefixCountersTable report protocol
   exchanges/FSM transitions, and discrete number of NLRIs exchanged per
   peering session, respectively.  This is independent of actual
   exchanged path attributes, which are tabularized later AS
      Path.

   o  bgpAfPathUnknownTable - A table that decomposes the unknown
      elements received in a BGP Path Attribute tuple.

5.3.  Obsoleted Tables

   o  bgpPeerTable - Replaced by the MIB
   module.  Note that session transitions as reflected information in changes of
   instances within this table may also be reflected bgpPeerAfTable,
      bgpPeerAfErrorsTable, bgpPeerConfiguredTimersTable,
      bgpPeerAfNegotiatedTimersTable, bgpPeerAfCountersTable.

   o  bgpRcvPathAttrTable - Covered BGP-3 and earlier.

   o  bgp4PathAttrTable - Replaced by the information in issuance of
   bgpM2Established bgpNlriTable,
      bgpAfPathAttrTable and bgpM2BackwardTransition NOTIFICATION-TYPE PDUs.

3.2.3.	Peering Data Extensions

   Route reflector status on bgpAfPathUnknownTable.

5.4.  Textual Conventions

   o  BgpIdentifierTC - Representation of a per-peer basis (whether the peer is BGP Identifier

   o  BgpAfiTC - Representation of a
   client or nonClient BGP Address Family Identifier

   o  BgpSafiTC - Representation of a BGP Subsequent Address Family
      Identifier
   o  BgoPathAttrFlagsTC - Representation of BGP-4 Path Attribute Flags.

5.5.  Notifications

   o  bgpAfEstablishedNotification - Sent when a BGP peer transitions
      into the local Established state.  Replaces the previous
      bgpEstablishedNotification, which was not address family
      independent.

   o  bgpAfBackwardTransNotification - Sent when a BGP router's reflected route propa-
   gation), and peer confederation membership is reported in non capa-
   bility extensions transitions
      out of the peering data section.

3.2.4.	Configuring Peering Sessions

   The MIB has several tables indexed on a per-peer level of granularity
   to control creation and activation of new peering sessions, and Established state.  Replaces the previous
      bgpBackwardTransNotification, which was not addrss family
      independent.

   o  bgpEstablished - Erroneously added to
   allow control on running sessions (those reflected an incorrect OID in bgpM2PeerTable
   row instances) regardless a
      previous version of what caused their creation this MIB.

   o  bgpBackwardsTransition - Erroneously added to an incorrect OID in the BGP
   routing process.

   The bgpM2CfgPeerAdminStatusTable allows creation and specification of
   a row by
      a bgpM2PeerIndex value (which is how its associated row
   instance is identified in the bgpM2PeerTable).  For each such row
   instance, the set of the bgpM2CfgPeerAdminStatus OBJECT-TYPE previous version of MAX-
   ACCESS read-write can allow management application start and stop this MIB.

5.6.  Extensions

   A feature of
   the session.

   This this MIB is contrasted with the function of recognition that the bgpM2CfgPeerTable, and
   its related AUGMENTed tables bgpM2CfgPeerTimersTable and bgpM2Cfg-
   PeerAuthTable.  These are used BGP protocol
   continues to facilitate direct creation of peer-
   ing sessions by the management application. grow in functionality.  The function of columnar
   OBJECT-TYPEs within the bgpM2CfgPeerTable bgpExtensions OID is defined
   to provide a place for local and remote
   address, version negotiation, and various row-administrative
   attributes (RowStatus and StorageType SYNTAXes) are straightforward
   enough.  The only subtlety with respect IDR-approved MIB modules for BGP extensions to
   be added to how peering sessions are
   activated from usage of this table, and how the activated sessions
   are reflected through their bgpM2PeerTable and bgpM2CfgPeerAdminSta-
   tusTable entries, bgp MIB subtree.

   It is in the usage of the bgpM2CfgPeerTable columnar
   object bgpM2CfgPeerStatus.  bgpM2CfgPeerStatus can take on two val-
   ues.	 When a peering session, as reflected through its row instance
   in the bgpM2CfgPeerTable, has the bgpM2CfgPeerStatus instance value
   in intended that, where possible, that row set tables added via extensions
   that add information via additional path attributes use
   bgpAfPathAttrIndex as a common index, either via INDEX or AUGMENTS.

6.  Relationship to running(2) at the time of the SYNTAX RowStatus
   object instance of bgpM2CfgPeerRowEntryStatus set Other MIB Modules

6.1.  Relationship to active(1), the TCP-MIB

   The bgpPeerAfLocalAddrType/bgpPeerAfLocalAddr/bgpPeerAfLocalPort and
   bgpPeerAfRemoteAddrType/bgpPeerAfRemoteAddr/bgpPeerAfRemotePort
   objects may provide a suitable index for monitoring the BGP peering
   session's TCP session will in fact be activated in via the TCP-MIB [RFC4022].

   Note that conducting BGP routing process
   (in addition to having its row instance created in the bgpM2Cfg-
   PeerTable and bgpM2CfgPeerAdminStatusTable).	 In this case, the asso-
   ciated row peering sessions over transport protocols
   other that TCP over IP are out of the bgpM2CfgPeerAdminStatusTable row bgpM2CfgPeerAdmin-
   Status instance would have the value scope of start(2).  If, in the prior
   example, the bgpM2CfgPeerStatus is halted(1) at current BGP
   specifications.

6.2.  MIB modules required for IMPORTS

   The following MIB module IMPORTS objects from SNMPv2-SMI [RFC2578],
   SNMPv2-TC [RFC2579], SNMPv2-CONF [RFC2580], INET-ADDRESS-MIB
   [RFC4001] and SNMP-FRAMEWORK-MIB [RFC3411].

7.  Definitions

BGP4-MIB DEFINITIONS ::= BEGIN

    IMPORTS
        MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
        IpAddress, Counter32, Gauge32, mib-2, Unsigned32, Integer32
            FROM SNMPv2-SMI
        InetAddressType, InetAddress, InetPortNumber,
        InetAutonomousSystemNumber, InetAddressPrefixLength
            FROM INET-ADDRESS-MIB
        TEXTUAL-CONVENTION, TruthValue, RowPointer, TimeStamp
            FROM SNMPv2-TC
        MODULE-COMPLIANCE, OBJECT-GROUP, NOTIFICATION-GROUP
            FROM SNMPv2-CONF
        SnmpAdminString
            FROM SNMP-FRAMEWORK-MIB;

        bgp MODULE-IDENTITY
            LAST-UPDATED "200711070000Z"
            ORGANIZATION "IETF IDR Working Group"
            CONTACT-INFO "E-mail:  idr@ietf.org"

            DESCRIPTION
                    "The MIB module for the time BGP-4 protocol.

                     Copyright (C) The Internet Society (2007).  This
                     version of the
   bgpM2CfgPeerRowEntryStatus instance set to active(1), only the peer-
   ing table entries would be created at this time MIB module is part of activation, with-
   out RFC XXX;
                     see the peering session being automatically started.	 The bgpM2Cfg-
   PeerAdminStatusTable row bgpM2CfgPeerAdminStatus instance associated RFC itself for full legal notices."
-- RFC Editor - replace XXX with RFC number

            REVISION "200711110000Z"
            DESCRIPTION
                   "Changes from RFC 4273:

                    TODO"

            REVISION "200601110000Z"
            DESCRIPTION
                   "Changes from RFC 1657:

                    1) Fixed the session would in this case reflect a value of stop(1).

   Since the row entries definitions of the per-peer configuration tables which AUG-
   MENT the bgpM2CfgPeerTable logically fate-share the row instances notifications
                       to make them equivalent to their initial
                       definition in
   the bgpM2CfgPeerTable which they are AUGMENTing, they also share the
   same StorageType RFC 1269.
                    2) Added compliance and RowStatus SYNTAX object sense conformance info.
                    3) Updated information for the values of
                       bgpPeerNegotiatedVersion, bgp4PathAttrLocalPref,
                       bgp4PathAttrCalcLocalPref,
                       bgp4PathAttrMultiExitDisc,
                       bgp4PathAttrASPathSegement.
                    4) Added additional clarification comments where
                       needed.
                    5) Noted where objects do not fully reflect
                       the bgpM2Cfg-
   PeerTable rows which they augment.

3.3.  BGP Routing Information Base Data

   An important table for providing index information protocol as Known Issues.
                    6) Updated the DESCRIPTION for other tables
   in the MIB module is
                       bgp4PathAttrAtomicAggregate object.
                    7) The following objects have had their DESCRIPTION
                       clause modified to remove the bgpM2NlriTable.  This discriminates text that suggested
                       (using 'should' verb) initializing the counter
                       to zero on a
   given network prefix (by AFI/SAFI), and the peer which advertised transition to the
   prefix (since it can be heard of from multiple speakers).  The
   bgpM2PathAttrIndex column which identifies each row in this table is
   used as an index for other per-attribute tables through the remainder
   of the MIB module.

   RFC 3107 [RFC3107] specifies a capability for exchanged routes
   between BGP peers to attach attribute information to a route indicat-
   ing, specifically, related MPLS label path information.  The MIB sup-
   ports the presentation of established state:
                         bgpPeerInUpdates, bgpPeerOutUpdates,
                         bgpPeerInTotalMessages, bgpPeerOutTotalMessages
                       Those implementations that still do this attribute information by generalizing
   how these attributes are presented to accommodate further extensions
   of this particular type.  Within a given bgpM2NlriTable entry, we
   speak of attribute data of
                       still compliant with this type new wording.
                       Applications should not assume counters have
                       started at zero.

                     Published as being 'opaque' RFC 4273."

            REVISION "199405050000Z"
            DESCRIPTION
                    "Translated to BGP, SMIv2 and
   use the columnar OBJECT-TYPEs bgpM2NlriOpaqueType and bgpM2Nlri-
   OpaquePointer to refer to it.  In the case of the published as RFC 3107 MPLS label
   encoding (which is the only usage 1657."

            REVISION "199110261839Z"
            DESCRIPTION
                    "Initial version, published as RFC 1269."
            ::= { mib-2 15 }

    --
    -- Textual Conventions
    --

    BgpIdentifierTC ::= TEXTUAL-CONVENTION
        DISPLAY-HINT "1d."
        STATUS current
        DESCRIPTION
            "The representation of these columnar fields in the
   bgpM2NlriTable right now), a MPLS label stack would be referenced by
   bgpM2NlriOpaquePointer by its per-NLRI instance pointing to a row
   instance in the MPLS LSR MIB mplsLabelStackTable, and the bgpM2Nlri-
   OpaqueType instance having a value of bgpMplsLabelStack(1). BGP Identifier.  The bgpM2AdjRibsOutTable row entries reflect data on routes which
   have been placed, per peering session, BGP
             Identifier should be represented in the Adj-Rib-Out for adver-
   tisement to the associated peer.

   The bgpM2PathAttrTable provides discrete BGP NLRI attributes which
   were received OCTET STRING
             as with the advertisement first OCTET of the prefix by its advertising
   peer.  Specific information about the autonomous system path (AS
   Path) advertised with the NLRI, on a per AS value, is to be found in
   the bgpM2AsPathTable.

   Finally, where attributes which were unable to be reported in string containing
             the
   bgpM2PathAttrTable, first OCTET of the AS Path table, BGP Identifier received or any defined per-NLRI tables sent
             in the agent were received with the prefix, those attributes are
   reported via the bgpM2PathAttrUnknownTable.	Short of advertised
   attribute type, no semantic breakdown OPEN packet and so on.

             The BGP Identifier is displayed as if it is an IP address,
             even if it would be an illegal one."
        REFERENCE
            "RFC 4273, Section 4.2"
        SYNTAX OCTET STRING(SIZE (4))

    BgpAfiTC ::= TEXTUAL-CONVENTION
        DISPLAY-HINT "d"
        STATUS current
        DESCRIPTION
            "The representation of the unknown a BGP AFI"
        REFERENCE
            "RFC 4760, Section 3"
        SYNTAX Unsigned32(0..65535)

    BgpSafiTC ::= TEXTUAL-CONVENTION
        DISPLAY-HINT "d"
        STATUS current
        DESCRIPTION
            "The representation of a BGP SAFI"
        REFERENCE
            "RFC 4760, Section 3"
        SYNTAX Unsigned32(0..255)

    BgpPathAttrFlagsTC ::= TEXTUAL-CONVENTION
        STATUS current
        DESCRIPTION
            "The representation of BGP Path Attribute Flags.  Note that this
             textual convention is meant to directly map to a BGP Path
             Attribute's Flags and is thus constrained by protocol to have no
             more than 8 total bits in use."
        REFERENCE
            "RFC 4271, Sec. 4.3"
        SYNTAX BITS {
            optional(0),    -- When set, path attribute data is provided.	 That data optional instead of
                            -- well known.
            transitive(1),  -- Path attribute is only available as a raw transitive when set.
            partial(2),     -- Path attribute is partial when set.
            extLength(3)    -- Path attributes has extended length field.
            -- 4-7 are reserved
            -- values 8 or greater are illegal.
        }

    --
    -- Top level scalars for this MIB
    --

    bgpVersion OBJECT-TYPE
        SYNTAX     OCTET STRING in
   the bgpM2PathAttrUnknownValue column (SIZE (1..255))
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
            "Vector of supported BGP protocol version
             numbers.  Each peer negotiates the version
             from this table.

3.3.1.	Routing Information Base Extensions

   There vector.  Versions are two extension sections and five subordinate tables to identified
             via the
   bgpM2PathAttrTable and RIB data OBJECT IDENTIFIER-delimited MIB mod-
   ule section. The bgpM2PathAttrRouteReflectionExts and its string of bits contained
   bgpM2PathAttrOriginatorIdTable report on the originating route
   reflector. within this
             object.  The bgpM2PathAttrClusterTable specifically reports on first octet contains bits 0 to
             7, the
   reflection route a NLRI has traversed second octet contains bits 8 to get 15,
             and so on, with the most significant bit
             referring to the local BGP routing
   process.

   The bgpM2PathAttrCommunityExts section deals with extended lowest bit number in the
             octet (e.g., the MSB of the first octet
             refers to bit 0).  If a bit, i, is present
             and non-
   extended communities for network routes.  The bgpM2PathAttrCommTable
   bgpM2PathAttrExtCommTable  contained herein report community member-
   ship (if any) on a per network-prefix basis.

3.4.  Consideration On Table Indexing

   There are certain efficiency concerns for row index management for
   management applications which are useful to take into consideration,
   given the nature of some of the tables implied in the preceding sec-
   tion.

   In the first place, it is valuable to exploit set, then the direct relationship version (i+1) of entries in, for example, the bgpM2PrefixCountersTable as they
   relate to the entry in the bgpM2PeerTable to which they are related.
   More compelling BGP
             is the example case of the one-to-many relationship
   between a row entry in the bgpM2PeerTable supported."
        REFERENCE
            "RFC 4271, Section 4.2."
        ::= { bgp 1 }

    -- bgp 2 and the bgpM2PathAttrTable,
   the latter of which maintains per-row entries for potentially many
   NLRIs as received from a peer 3 have been deprecated and are documented
    -- elsewhere in a this MIB

    bgpIdentifier OBJECT-TYPE
        SYNTAX     IpAddress
        MAX-ACCESS read-only
        STATUS     current
        DESCRIPTION
            "The BGP UPDATE message.  From the
   point Identifier of view the local system.

             A SYNTAX of normalizing these relationships, it BgpIdentifierTC would be useful
   to have a direct reference used here,
             however it would cause this object to be
             deprecated with no additional value.  The
             comments in the "governing" bgpM2PeerTable row
   entry DESCRIPTION of BgpIdentifierTC
             apply here."
        REFERENCE
                "RFC 4271, Section 4.2."
        ::= { bgp 4 }

    bgpLocalAsNew OBJECT-TYPE
        SYNTAX InetAutonomousSystemNumber
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The local autonomous system number.

             This object supports 4 byte ASes and replaces
             bgpLocalAs."
        REFERENCE
                 "RFC 4271, Section 4.2, 'My Autonomous System'.

                  RFC 4893, BGP Support for the Four-octet AS Number
                  Space."
        ::= { bgp 9 }

    --
    -- Address Family (Af) independent per-peer management information.
    --

    bgpPeerAf
        OBJECT IDENTIFIER ::= { bgp 10 }

    --
    -- Address Family (Af) independent per-peer session management
    -- information.
    --

    bgpPeerAfTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpPeerAfEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "BGP peer which is a "dependency" for the subordinate table.  This table
   row contains, one entry for other peer data.

   Second, the nature of protocol-independent addressing makes the
   indexing of these entries indirectly even more compelling.  Even
   accounting for the addressing requirements of IPv6 and per BGP
             peer, information about the provision
   of AFI and SAFI qualifiers, connections with BGP peers.

             This table replaces bgpPeerTable."
        ::= { bgpPeerAf 1 }

    bgpPeerAfEntry OBJECT-TYPE
        SYNTAX BgpPeerAfEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "Entry containing information about the connection with
             a remote BGP peer."
        INDEX {
            bgpPeerAfInstance,
            bgpPeerAfLocalAddrType,
            bgpPeerAfLocalAddr,
            bgpPeerAfRemoteAddrType,
            bgpPeerAfRemoteAddr
        }
        ::= { bgpPeerAfTable 1 }

    BgpPeerAfEntry ::= SEQUENCE {
        bgpPeerAfInstance
            Unsigned32,
        bgpPeerAfIdentifier
            BgpIdentifierTC,
        bgpPeerAfPeerState
            INTEGER,
        bgpPeerAfAdminStatus
            INTEGER,
        bgpPeerAfConfiguredVersion
            Unsigned32,
        bgpPeerAfNegotiatedVersion
            Unsigned32,
        bgpPeerAfLocalAddrType
            InetAddressType,
        bgpPeerAfLocalAddr
            InetAddress,
        bgpPeerAfLocalPort
            InetPortNumber,
        bgpPeerAfLocalAs
            InetAutonomousSystemNumber,
        bgpPeerAfRemoteAddrType
            InetAddressType,
        bgpPeerAfRemoteAddr
            InetAddress,
        bgpPeerAfRemotePort
            InetPortNumber,
        bgpPeerAfRemoteAs
            InetAutonomousSystemNumber
    }

    bgpPeerAfInstance OBJECT-TYPE
        SYNTAX Unsigned32
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "The routing instance index.

             Some BGP implementations permit the logical addressing creation of
             multiple instances of a row BGP routing process. An
             example includes routers running BGP/MPLS IP Virtual
             Private Networks.

             Implementations that do not support multiple
             routing instances should return 1 for this object."
        ::= { bgpPeerAfEntry 1 }

    bgpPeerAfIdentifier OBJECT-TYPE
        SYNTAX BgpIdentifierTC
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The BGP Identifier of this entry's remote BGP peer.

             This entry should be 0.0.0.0 unless the
             bgpPeerAfPeerState is in the
   bgpPathAttrClusterTable (for example) would extend out some 50 bytes
   if there was no direct index linkage openconfirm or the
             established state."
        REFERENCE
            "RFC 4271, Section 4.2, 'BGP Identifier'."
        ::= { bgpPeerAfEntry 2 }

    -- TODO - update according to new FSM
    bgpPeerAfPeerState OBJECT-TYPE
        SYNTAX INTEGER {
            idle(1),
            connect(2),
            active(3),
            opensent(4),
            openconfirm(5),
            established(6)
        }
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The BGP peer connection state."
        REFERENCE
            "RFC 4271, Section 8.2.2."
        ::= { bgpPeerAfEntry 3 }

    bgpPeerAfAdminStatus OBJECT-TYPE
        SYNTAX INTEGER {
            halted(1),
            running(2)
        }
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "Whether or not the "governing" bgpPathAt-
   trTable, and bgpPeerTable entries.

   For BGP FSM for this reason, the tables are structured in such a way that, where
   there remote peer is such
             halted or running. The BGP FSM for a linkage to remote peer is
             halted after processing a "dependent" table (where, for example,
   the bgpPrefixCountersTable "depends on" Stop event. Likewise, it is
             in the bgpPeerTable), running state after a table Start event.

             The bgpPeerAfState will contain a per-row numeric index (e.g., bgpPeerIndex), which the
   "dependent" table will use as one of its own row index values.  These
   indices are manufactured by the agent, and are otherwise opaque to
   the management application (or, for that matter, even to generally be in the organi-
   zation of idle state
             when the "dependent" table[s]).

   Where considerations of per-row retrieval overhead (in terms of typi-
   cal row instance data size, FSM is halted, although some extensions such
             as a function of liability to have a sin-
   gle row retrieval exceed PDU size, for example), and those of general
   logical data organization permit, certain tables logically at Graceful Restart will leave the
   sub-peering-session level have been specified as AUGMENTing peer in the pri-
   mary tables (bgpM2PeerTable and bgpM2CfgPeerTable) Idle
             state but with the FSM running."
        REFERENCE
            "RFC 4271, Section 8.1.2."
        ::= { bgpPeerAfEntry 4 }

    bgpPeerAfConfiguredVersion OBJECT-TYPE
        SYNTAX Unsigned32 (1..255)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The configured version to which those
   sub-peering-session row entries relate.  This is originally start with this
             remote peer. The BGP speaker may permit negotiation to facilitate ease
   on the part of a management application of assembling (for example,
   via GET-BULK operations across a lexicographically contiguous row
   scope) a management image
             lower version number of control information on a given peering
   session.

4.  Definitions

BGP4-V2-MIB DEFINITIONS ::= BEGIN

    IMPORTS
	MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
	Counter32, Gauge32, mib-2, Unsigned32, Integer32,
     TimeTicks
	    FROM SNMPv2-SMI
	InetAddressType, InetAddress, InetPortNumber,
	InetAutonomousSystemNumber, InetAddressPrefixLength
	    FROM INET-ADDRESS-MIB
	TEXTUAL-CONVENTION, TruthValue, RowPointer, StorageType,
	RowStatus
	    FROM SNMPv2-TC
	MODULE-COMPLIANCE, OBJECT-GROUP, NOTIFICATION-GROUP
	    FROM SNMPv2-CONF
	SnmpAdminString
	    FROM SNMP-FRAMEWORK-MIB;

    bgpM2 MODULE-IDENTITY
	LAST-UPDATED "200507130000Z"
	ORGANIZATION "IETF IDR Working Group"
	CONTACT-INFO "E-mail:  idr@merit.net

		      Jeffrey Haas  (Editor)
		      825 Victors Way, Suite 100
		      Ann Arbor, MI  48108
		      Tel: +1 734 222-1600
		      Fax: +1 734 222-1602
		      E-mail: jhaas@nexthop.com"

	DESCRIPTION
	    "This MIB module defines management objects for the Border Gateway Protocol, Version 4." protocol."
        REFERENCE
            "RFC 4271, Section 4.2.
             RFC 4271, Section 7."
        ::= { mib-2 XXX bgpPeerAfEntry 5 }
-- RFC Ed.: replace XXX with IANA-assigned number & remove this note

    BgpM2Identifier ::= TEXTUAL-CONVENTION
	DISPLAY-HINT "1d."

    bgpPeerAfNegotiatedVersion OBJECT-TYPE
        SYNTAX Unsigned32 (1..255)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The representation negotiated version of a BGP Identifier.  The BGP
	     Identifier should be represented in the OCTET STRING
	     as with running between
             the first OCTET of the string containing two peers.

             This entry MUST be zero (0) unless the first OCTET of
             bgpPeerAfState is in the BGP Identifier received openconfirm or sent
	     in the OPEN packet
             established state.

             Note that legal values for this object are
             between 0 and so on.

	     Even though the BGP Identifier is trending away from
	     an IP address it is still displayed as if it was one,
	     even when it would be an illegal IP address."
	SYNTAX OCTET STRING(SIZE (4))

    BgpM2Afi 255."
        REFERENCE
            "RFC 4271, Section 4.2.
             RFC 4271, Section 7."
        ::= TEXTUAL-CONVENTION
	DISPLAY-HINT "d"
	STATUS	     current
	DESCRIPTION
	    "The representation of a BGP AFI" { bgpPeerAfEntry 6 }

    bgpPeerAfLocalAddrType OBJECT-TYPE
        SYNTAX Unsigned32(0..65535)

    BgpM2Safi ::= TEXTUAL-CONVENTION
	DISPLAY-HINT "d" InetAddressType
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "The representation address family of a BGP SAFI"
	SYNTAX Unsigned32(0..255)

    BgpM2Community ::= TEXTUAL-CONVENTION
	DISPLAY-HINT "2d:"
	STATUS	     current
	DESCRIPTION
	    "The representation the local end of a BGP Community."
	SYNTAX OCTET STRING(SIZE(4))

    BgpM2ExtendedCommunity the peering
             session."
        ::= TEXTUAL-CONVENTION
	DISPLAY-HINT "1x:" { bgpPeerAfEntry 7 }

    bgpPeerAfLocalAddr OBJECT-TYPE
        SYNTAX InetAddress (SIZE(4..20))
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "The representation local IP address of a this entry's BGP Extended Community."
	SYNTAX OCTET STRING(SIZE(8))

    bgpM2BaseScalars
	OBJECT IDENTIFIER connection."
        ::= { bgpM2 1 }

    --
    -- Notifications
    --

    bgpM2BaseNotifications
	OBJECT IDENTIFIER ::= { bgpM2BaseScalars 0 }
    bgpM2Established NOTIFICATION-TYPE
	OBJECTS {
	    bgpM2PeerLocalAddrType,
	    bgpM2PeerLocalAddr,
	    bgpM2PeerRemoteAddrType,
	    bgpM2PeerRemoteAddr,
	    bgpM2PeerLastErrorReceived,
	    bgpM2PeerState bgpPeerAfEntry 8 }

    bgpPeerAfLocalPort OBJECT-TYPE
        SYNTAX InetPortNumber
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The BGP Established event is generated when local port for the BGP FSM enters TCP connection between the ESTABLISHED state." BGP
             peers."
        ::= { bgpM2BaseNotifications 1 }

    bgpM2BackwardTransition NOTIFICATION-TYPE
	OBJECTS {
	    bgpM2PeerLocalAddrType,
	    bgpM2PeerLocalAddr,
	    bgpM2PeerRemoteAddrType,
	    bgpM2PeerRemoteAddr,
	    bgpM2PeerLastErrorReceived,
	    bgpM2PeerLastErrorReceivedText,
	    bgpM2PeerState bgpPeerAfEntry 9 }

    bgpPeerAfLocalAs OBJECT-TYPE
        SYNTAX InetAutonomousSystemNumber
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The BGPBackwardTransition Event
            "Some implementations of BGP can represent themselves
             as multiple ASes. This is generated
	     when the BGP FSM moves from a higher numbered
	     state AS that this peering
             session is representing itself as to a lower numbered state."
	::= { bgpM2BaseNotifications 2 }

    --
    -- BGP Supported Version Table
    --

    bgpM2Version
	OBJECT IDENTIFIER the remote peer."
        ::= { bgpM2BaseScalars 1 bgpPeerAfEntry 10 }

    bgpM2VersionTable

    bgpPeerAfRemoteAddrType OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM2VersionEntry InetAddressType
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Table
            "The address family of supported BGP versions." the remote end of the peering
             session."
        ::= { bgpM2Version 1 bgpPeerAfEntry 11 }

    bgpM2VersionEntry

    bgpPeerAfRemoteAddr OBJECT-TYPE
        SYNTAX	   BgpM2VersionEntry InetAddress (SIZE(4..20))
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Entry containing data on a given supported version
	     of the Border Gateway Protocol and the level
            "The remote IP address of
	     support provided.	It is expected that any agent
	     implementation supporting this MIB module will
	     report support for Version 4 of the Border Gateway
	     Protocol at the very minimum."
	INDEX {
	    bgpM2VersionIndex
	}
	::= { bgpM2VersionTable 1 }

    BgpM2VersionEntry entry's BGP peer."
        ::= SEQUENCE {
	    bgpM2VersionIndex
		Unsigned32,
	    bgpM2VersionSupported
		TruthValue bgpPeerAfEntry 12 }

    bgpM2VersionIndex

    bgpPeerAfRemotePort OBJECT-TYPE
        SYNTAX	   Unsigned32(0..255) InetPortNumber
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The version number of remote port for the TCP connection between the BGP
             peers.

             Note that the objects bgpPeerAfLocalAddr,
             bgpPeerAfLocalPort, bgpPeerAfRemoteAddr and
             bgpPeerAfRemotePort provide the appropriate reference to
             the standard MIB TCP connection table, or even the ipv6
             TCP MIB as in RFC 4022."
        REFERENCE
            "RFC 2012 - SNMPv2 Management Information Base for the
             Transmission Control Protocol using SMIv2.
             RFC 4022 - IP Version 6 Management Information Base
             for the Transmission Control Protocol."
        ::= { bgpM2VersionEntry 1 bgpPeerAfEntry 13 }

    bgpM2VersionSupported

    bgpPeerAfRemoteAs OBJECT-TYPE
        SYNTAX	   TruthValue InetAutonomousSystemNumber
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "This value is TRUE if this version of
            "The remote autonomous system number received in the BGP protocol
	     identified in 'bgpM2VersionIndex' is supported.  The absence
	     of a row for a particular bgpM2VersionIndex indicates that
	     that bgpM2VersionIndex protocol version number is not
	     supported."
             OPEN message."
        REFERENCE
            "RFC 4271, Section 4.2."
        ::= { bgpM2VersionEntry 2 bgpPeerAfEntry 14 }

    --
    -- Supported BGP Capabilities Address Family (Af) independent per-peer error management
    -- information.
    --

    bgpM2SupportedCapabilities

    bgpPeerAfErrors
        OBJECT IDENTIFIER ::= { bgpM2BaseScalars bgpPeerAf 2 }

    bgpM2CapabilitySupportAvailable OBJECT-TYPE
	SYNTAX	   TruthValue
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This value is TRUE if capability support is
	     available and is enabled."
	::= { bgpM2SupportedCapabilities 1 }

    bgpM2SupportedCapabilitiesTable

    bgpPeerAfErrorsTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpM2SupportedCapabilityEntry BgpPeerAfErrorsEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Table of supported BGP-4 capabilities."
            "On a per-peer basis, this table reflects the last
             protocol-defined error encountered and reported on
             the peer session. If no entry for a given peer
             exists in this table, then no such errors have been
             observed, reported, and recorded on the session."
        ::= { bgpM2SupportedCapabilities 2 bgpPeerAfErrors 1 }

    bgpM2SupportedCapabilitiesEntry

    bgpPeerAfErrorsEntry OBJECT-TYPE
        SYNTAX	   BgpM2SupportedCapabilityEntry BgpPeerAfErrorsEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Information about supported capabilities indexed
	     by capability number."
	INDEX
            "Each entry contains information about errors sent
             and received for a particular BGP peer."
        AUGMENTS {
	    bgpM2SupportedCapabilityCode
            bgpPeerAfEntry
        }
        ::= { bgpM2SupportedCapabilitiesTable bgpPeerAfErrorsTable 1 }

    BgpM2SupportedCapabilityEntry

    BgpPeerAfErrorsEntry ::= SEQUENCE {
	bgpM2SupportedCapabilityCode
	    Unsigned32,
	bgpM2SupportedCapability
	    TruthValue
        bgpPeerAfLastErrorReceived
            OCTET STRING,
        bgpPeerAfLastErrorSent
            OCTET STRING,
        bgpPeerAfLastErrorReceivedTime
            TimeStamp,
        bgpPeerAfLastErrorSentTime
            TimeStamp,
        bgpPeerAfLastErrorReceivedText
            SnmpAdminString,
        bgpPeerAfLastErrorSentText
            SnmpAdminString,
        bgpPeerAfLastErrorReceivedData
            OCTET STRING,
        bgpPeerAfLastErrorSentData
            OCTET STRING
    }
    bgpM2SupportedCapabilityCode

    bgpPeerAfLastErrorReceived OBJECT-TYPE
        SYNTAX	   Unsigned32 (0..255) OCTET STRING (SIZE (2))
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "Index
            "The last error code and subcode received from this peer
             via NOTIFICATION message on this connection.  If no
             error has occurred, this field is zero.  Otherwise, the
             first byte of supported capability.  The index directly
	     corresponds with this two byte OCTET STRING contains the BGP-4 Capability Advertisement
	     Capability Code."
             error code, and the second byte contains the subcode."
        REFERENCE
            "RFC 4271, Section 4.5.
             RFC 4486 optionally supported.
             RFC 3362, Section 5 optionally supported."
        ::= { bgpM2SupportedCapabilitiesEntry bgpPeerAfErrorsEntry 1 }

    bgpM2SupportedCapability

    bgpPeerAfLastErrorSent OBJECT-TYPE
        SYNTAX	   TruthValue OCTET STRING (SIZE (2))
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "This value is True if
            "The last error code and subcode sent by this BGP
             Speaker via NOTIFICATION message on this capability connection.

             If no error has occurred, this field is supported,
	     False otherwise." zero.
             Otherwise, the first byte of this two byte OCTET STRING
             contains the error code, and the second byte contains
             the subcode."
        REFERENCE
            "RFC 4271, Section 4.5.
             RFC 4486 optionaly supported.
             RFC 3362, Section 5 optionally supported."
        ::= { bgpM2SupportedCapabilitiesEntry bgpPeerAfErrorsEntry 2 }

    --
    -- Base Scalars
    --

    bgpM2AsSize

    bgpPeerAfLastErrorReceivedTime OBJECT-TYPE
        SYNTAX	   INTEGER {
	    twoOctet(1),
	    fourOctet(2)
	} TimeStamp
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The size of timestamp that the AS value in this implementation.

	     The semantics of last NOTIFICATION was received from
             this are determined as per the
	     as-4bytes draft." peer."
        REFERENCE
	    "draft-ietf-idr-as4bytes-04"
            "RFC 4271, Section 4.5."
        ::= { bgpM2BaseScalars 4 bgpPeerAfErrorsEntry 3 }

    bgpM2LocalAs

    bgpPeerAfLastErrorSentTime OBJECT-TYPE
        SYNTAX	   InetAutonomousSystemNumber TimeStamp
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The local autonomous system number.

	     If the bgpM2AsSize is twoOctet, then timestamp that the range is
	     constrained last NOTIFICATION was sent to be 0-65535."
             this peer."
        REFERENCE
            "RFC 4271, Section 4.5."
        ::= { bgpM2BaseScalars 5 bgpPeerAfErrorsEntry 4 }

    bgpM2LocalIdentifier

    bgpPeerAfLastErrorReceivedText OBJECT-TYPE
        SYNTAX	   BgpM2Identifier SnmpAdminString
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The BGP Identifier of local system.

	     Current practice is trending away from this value being
	     treated as
            "This object contains an IP address and more as a generic
	     identifier." implementation specific
             explanation of the error that was reported."
        ::= { bgpM2BaseScalars 6 bgpPeerAfErrorsEntry 5 }

    --
    -- Base Scalar Extensions
    --

    bgpM2BaseScalarExtensions
	OBJECT IDENTIFIER ::= { bgpM2BaseScalars 7 }

    bgpM2BaseScalarNonCapExts
	OBJECT IDENTIFIER ::= { bgpM2BaseScalarExtensions 1 }

    bgpM2BaseScalarCapExts
	OBJECT IDENTIFIER ::= { bgpM2BaseScalarExtensions 2 }

    --
    -- Base Scalar Route Reflection Extensions
    --

    bgpM2BaseScalarRouteReflectExts OBJECT IDENTIFIER ::=
	{ bgpM2BaseScalarNonCapExts 2796 }

    bgpM2RouteReflector

    bgpPeerAfLastErrorSentText OBJECT-TYPE
        SYNTAX	    TruthValue SnmpAdminString
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "This value is TRUE if this object contains an implementation supports the
	     BGP Route Reflection Extension and is enabled as a
	     route reflector.  If specific
             explanation of the BGP Route Reflection extension error that is not supported being reported."
        ::= { bgpPeerAfErrorsEntry 6 }

    bgpPeerAfLastErrorReceivedData OBJECT-TYPE
        SYNTAX OCTET STRING (SIZE(0..4075))
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The last error code's data seen by this value must peer.

             Per RFC 2578, some implementations may have limitations
             dealing with OCTET STRINGS larger than 255.  Thus, this
             data may be FALSE." truncated."
        REFERENCE
            "RFC 2796 - BGP Route Reflection" 4271, Section 4.5,
             RFC 2578, Section 7.1.2,
             RFC 4486 optionaly supported.
             RFC 3362, Section 5 optionally supported."
        ::= { bgpM2BaseScalarRouteReflectExts 1 bgpPeerAfErrorsEntry 7 }

    bgpM2ClusterId

    bgpPeerAfLastErrorSentData OBJECT-TYPE
        SYNTAX	    BgpM2Identifier OCTET STRING (SIZE(0..4075))
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The configured Cluster-ID of the BGP Speaker.  This will
	     default last error code's data sent to the BGP Speaker's BgpM2Identifier if this
	     speaker is functioning as a route reflector and an
	     explicit Cluster-ID has not been configured.

	     A value of 0.0.0.0 will peer.

             Per RFC 2578, some implementations may have limitations
             dealing with OCTET STRINGS larger than 255.  Thus, this
             data may be present if Route Reflection is
	     not enabled." truncated."
        REFERENCE
            "RFC 2796 - BGP Route Reflection" 4271, Section 4.5,
             RFC 2578, Section 7.1.2
             RFC 4486 optionaly supported.
             RFC 3362, Section 5 optionally supported."
        ::= { bgpM2BaseScalarRouteReflectExts 2 bgpPeerAfErrorsEntry 8 }

    --
    -- Base Scalar AS Confederation Extensions Address Family (Af) independent per-peer timer information
    --

    bgpM2BaseScalarASConfedExts

    bgpPeerAfTimers
        OBJECT IDENTIFIER ::= { bgpM2BaseScalarNonCapExts 3065 bgpPeerAf 3 }

    bgpM2ConfederationRouter

    --
    -- Per-peer Event Times
    --

    bgpPeerAfEventTimesTable OBJECT-TYPE
        SYNTAX	   TruthValue SEQUENCE OF BgpPeerAfEventTimesEntry
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "This value is TRUE if this implementation supports
            "A table reporting the
	     BGP AS Confederations Extension per-peering session amount
             of time elapsed and this router is
	     configured to be in a confederation."
	REFERENCE
	    "RFC 3065 - Autonomous System Confederations for BGP" update events since the peering
             session advanced into the established state."
        ::= { bgpM2BaseScalarASConfedExts bgpPeerAfTimers 1 }
    bgpM2ConfederationId

    bgpPeerAfEventTimesEntry OBJECT-TYPE
        SYNTAX	   InetAutonomousSystemNumber BgpPeerAfEventTimesEntry
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "The local Confederation Identification Number.

	     This value will be zero (0) if this BGP Speaker is not
            "Each row contains a confederation router."
	REFERENCE
	    "RFC 3065 - Autonomous System Confederations for BGP" set of statistics about time
             spent and events encountered in the peer session
             established state."
        AUGMENTS {
            bgpPeerAfEntry
        }
        ::= { bgpM2BaseScalarASConfedExts 2 bgpPeerAfEventTimesTable 1 }

    --
    -- Base Configuration Objects
    --

    bgpM2BaseScalarConfiguration
	OBJECT IDENTIFIER

    BgpPeerAfEventTimesEntry ::= SEQUENCE { bgpM2BaseScalars 8
        bgpPeerAfFsmEstablishedTime
            Gauge32,
        bgpPeerAfInUpdatesElapsedTime
            Gauge32
    }

    bgpM2CfgBaseScalarStorageType

    bgpPeerAfFsmEstablishedTime OBJECT-TYPE
        SYNTAX	   StorageType Gauge32
        UNITS "seconds"
        MAX-ACCESS read-write read-only
        STATUS current
        DESCRIPTION
            "This object specifies timer indicates how long (in seconds) this peer
             has been in the intended storage type for
	     all configurable base scalars." established state or how long since this
             peer was last in the established state.  It is set to
             zero when a new peer is configured or when the router is
             booted."
        REFERENCE
            "RFC 4271, Section 8."
        ::= { bgpM2BaseScalarConfiguration bgpPeerAfEventTimesEntry 1 }

    bgpM2CfgLocalAs

    bgpPeerAfInUpdatesElapsedTime OBJECT-TYPE
        SYNTAX	   InetAutonomousSystemNumber Gauge32
        UNITS "seconds"
        MAX-ACCESS read-write read-only
        STATUS current
        DESCRIPTION
	    "The local autonomous system number.

	     If
            "Elapsed time (in seconds) since the last BGP UPDATE
             message was received from the bgpM2AsSize peer.  Each time
             bgpPeerInUpdates is twoOctet, then incremented, the range value of this
             object is
	     constrained set to be 0-65535." zero (0)."
        REFERENCE
            "RFC 4271, Section 4.3.
             RFC 4271, Section 8.2.2, Established state."

        ::= { bgpM2BaseScalarConfiguration bgpPeerAfEventTimesEntry 2 }

    bgpM2CfgLocalIdentifier

    --
    -- Per-Peer Configured Timers
    --

    bgpPeerAfConfiguredTimersTable OBJECT-TYPE
        SYNTAX	   BgpM2Identifier SEQUENCE OF BgpPeerAfConfiguredTimersEntry
        MAX-ACCESS read-write not-accessible
        STATUS current
        DESCRIPTION
	    "The
            "Per peer management data on BGP Identifier of local system.

	     Current practice is trending away from this value being
	     treated as an IP address and more as a generic
	     identifier." session timers."
        ::= { bgpM2BaseScalarConfiguration 3 bgpPeerAfTimers 2 }

    --
    -- Base Scalar Extensions
    --

    bgpM2CfgBaseScalarExtensions
	OBJECT IDENTIFIER ::=

    bgpPeerAfConfiguredTimersEntry OBJECT-TYPE
        SYNTAX BgpPeerAfConfiguredTimersEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "Each entry corresponds to the current state of
             BGP timers on a given peering session."
        AUGMENTS { bgpM2BaseScalarConfiguration 4
            bgpPeerAfEntry
        }

    bgpM2CfgBaseScalarNonCapExts
	OBJECT IDENTIFIER
        ::= { bgpM2CfgBaseScalarExtensions bgpPeerAfConfiguredTimersTable 1 }

    bgpM2CfgBaseScalarCapExts
	OBJECT IDENTIFIER ::= { bgpM2CfgBaseScalarExtensions 2 }

    --
    -- Base Scalar Route Reflection Extensions
    --

    bgpM2CfgBaseScalarReflectorExts
	OBJECT IDENTIFIER

    BgpPeerAfConfiguredTimersEntry ::= SEQUENCE { bgpM2CfgBaseScalarNonCapExts 2796
        bgpPeerAfConnectRetryInterval
            Unsigned32,
        bgpPeerAfHoldTimeConfigured
            Unsigned32,
        bgpPeerAfKeepAliveConfigured
            Unsigned32,
        bgpPeerAfMinASOrigInterval
            Unsigned32,
        bgpPeerAfMinRouteAdverInterval
            Unsigned32
    }

    bgpM2CfgRouteReflector
    bgpPeerAfConnectRetryInterval OBJECT-TYPE
        SYNTAX	    TruthValue Unsigned32 (1..65535)
        UNITS "seconds"
        MAX-ACCESS  read-write read-only
        STATUS current
        DESCRIPTION
	    "This value is set to true if
            "Time interval (in seconds) for the ConnectRetry timer.
             The suggested value for this implementation will
	     be supporting route reflection." timer is 120 seconds."
        REFERENCE
            "RFC 2796 - BGP Route Reflection" 4271, Section 8.2.2.  This is the value used
             to initialize the 'ConnectRetryTimer'."
        ::= { bgpM2CfgBaseScalarReflectorExts bgpPeerAfConfiguredTimersEntry 1 }

    bgpM2CfgClusterId

    bgpPeerAfHoldTimeConfigured OBJECT-TYPE
        SYNTAX	    BgpM2Identifier Unsigned32 ( 0 | 3..65535 )
        UNITS "seconds"
        MAX-ACCESS  read-write read-only
        STATUS current
        DESCRIPTION
	    "The configured Cluster-ID of
            "Time interval (in seconds) for the BGP Speaker.  This will
	     default to Hold Timer
             established with the BGP Speaker's BgpM2Identifier if peer.  The value of this
	     speaker object is functioning as a route reflector
             calculated by this BGP speaker, using the smaller of the
             values in bgpPeerHoldTimeConfigured and an
	     explicit Cluster-ID has not been configured.

	     A the Hold Time
             received in the OPEN message.

             This value of 0.0.0.0 will must be present at least three seconds if Route Reflection it is not enabled."
             zero (0).

             If the Hold Timer has not been established with the
             peer this object MUST have a value of zero (0).

             If the bgpPeerHoldTimeConfigured object has a value of
             (0), then this object MUST have a value of (0)."
        REFERENCE
            "RFC 2796 - BGP Route Reflection" 4271, Section 4.2."
        ::= { bgpM2CfgBaseScalarReflectorExts bgpPeerAfConfiguredTimersEntry 2 }

    --
    -- Base Scalar AS Confederation Extensions
    --

    bgpM2CfgBaseScalarASConfedExts
	OBJECT IDENTIFIER ::= { bgpM2CfgBaseScalarNonCapExts 3065 }

    bgpM2CfgConfederationRouter

    bgpPeerAfKeepAliveConfigured OBJECT-TYPE
        SYNTAX	   TruthValue Unsigned32 ( 0 | 1..21845 )
        UNITS "seconds"
        MAX-ACCESS read-write read-only
        STATUS current
        DESCRIPTION
	    "This
            "Time interval (in seconds) for the KeepAlive timer
             configured for this BGP speaker with this peer.  The
             value is set to true if of this implementation object will be
	     supporting BGP AS Confederations."
	REFERENCE
	    "RFC 3065 - Autonomous System Confederations only determine the KEEPALIVE
             messages' frequency relative to the value specified in
             bgpPeerHoldTimeConfigured; the actual time interval for BGP"
	::= { bgpM2CfgBaseScalarASConfedExts 1 }

    bgpM2CfgConfederationId OBJECT-TYPE
	SYNTAX	   InetAutonomousSystemNumber
	MAX-ACCESS read-write
	STATUS	   current
	DESCRIPTION
	    "The local Confederation Identification Number.

	     This
             the KEEPALIVE messages is indicated by bgpPeerKeepAlive.

             A reasonable maximum value will be zero (0) if for this BGP Speaker is not
	     a confederation router." timer would be one
             third of that of bgpPeerHoldTimeConfigured.

             If the value of this object is zero (0), no periodic
             KEEPALIVE messages are sent to the peer after the BGP
             connection has been established.  The suggested value
             for this timer is 30 seconds."
        REFERENCE
            "RFC 3065 - Autonomous System Confederations for BGP" 4271, Section 4.4.
             RFC 4271, Section 10."
        ::= { bgpM2CfgBaseScalarASConfedExts 2 bgpPeerAfConfiguredTimersEntry 3 }
    --
    -- BGP Peer Data
    --

    bgpM2Peer
	OBJECT IDENTIFIER

    bgpPeerAfMinASOrigInterval OBJECT-TYPE
        SYNTAX Unsigned32 (0..65535)
        UNITS "seconds"
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "Time interval (in seconds) for the
             MinASOriginationInterval timer.

             The suggested value for this timer is 15 seconds."
        REFERENCE
            "RFC 4271, Section 9.2.1.2.
             RFC 4271, Section 10."
        ::= { bgpM2 2 bgpPeerAfConfiguredTimersEntry 4 }

    bgpM2PeerData
	OBJECT IDENTIFIER

    bgpPeerAfMinRouteAdverInterval OBJECT-TYPE
        SYNTAX Unsigned32 (0..65535)
        UNITS "seconds"
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "Time interval (in seconds) for the
             MinRouteAdvertisementInterval timer.

             The suggested value for this timer is 30 seconds for
             EBGP connections and 5 seconds for IBGP connections."
        REFERENCE
            "RFC 4271, Section 9.2.1.1.
             RFC 4271, Section 10."
        ::= { bgpM2Peer 1 bgpPeerAfConfiguredTimersEntry 5 }

    bgpM2PeerTable

    --
    -- Per-Peer Negotiated Timers
    --
    bgpPeerAfNegotiatedTimersTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpM2PeerEntry BgpPeerAfNegotiatedTimersEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "BGP peer table.

	     This table contains, one entry per remote BGP peer,
	     any information about
            "Configured values of per-peer timers are seen
             in the connections with bgpPeerAfConfiguredTimersTable.

             Values in this table reflect the remote
	     BGP peers." current
             operational values, after negotiation from values
             derived from initial configuration."
        ::= { bgpM2PeerData 1 bgpPeerAfTimers 3 }

    bgpM2PeerEntry

    bgpPeerAfNegotiatedTimersEntry OBJECT-TYPE
        SYNTAX	   BgpM2PeerEntry BgpPeerAfNegotiatedTimersEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Entry containing information about the connection with
            "Each entry reflects a remote BGP peer."
	INDEX value of the currently
             operational, negotiated timer as reflected in the
             BgpPeerAfNegotiatedTimersEntry."
        AUGMENTS {
	 bgpM2PeerInstance,
	    bgpM2PeerLocalAddrType,
	    bgpM2PeerLocalAddr,
	    bgpM2PeerRemoteAddrType,
	    bgpM2PeerRemoteAddr
            bgpPeerAfEntry
        }
        ::= { bgpM2PeerTable bgpPeerAfNegotiatedTimersTable 1 }

    BgpM2PeerEntry

    BgpPeerAfNegotiatedTimersEntry ::= SEQUENCE {
     bgpM2PeerInstance
	 Unsigned32,
	bgpM2PeerIdentifier
	    BgpM2Identifier,
	bgpM2PeerState
	    INTEGER,
	bgpM2PeerStatus
	    INTEGER,
	bgpM2PeerConfiguredVersion
	    Unsigned32,
	bgpM2PeerNegotiatedVersion
        bgpPeerAfHoldTime
            Unsigned32,
	bgpM2PeerLocalAddrType
	    InetAddressType,
	bgpM2PeerLocalAddr
	    InetAddress,
	bgpM2PeerLocalPort
	    InetPortNumber,
	bgpM2PeerLocalAs
	    InetAutonomousSystemNumber,
	bgpM2PeerRemoteAddrType
	    InetAddressType,
	bgpM2PeerRemoteAddr
	    InetAddress,
	bgpM2PeerRemotePort
	    InetPortNumber,
	bgpM2PeerRemoteAs
	    InetAutonomousSystemNumber,
	bgpM2PeerIndex
        bgpPeerAfKeepAlive
            Unsigned32
    }

    bgpM2PeerInstance

    bgpPeerAfHoldTime OBJECT-TYPE
        SYNTAX Unsigned32 ( 0 | 3..65535 )
        UNITS "seconds"
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The routing instance index.

	  Some BGP implementations permit the creation of
	  multiple instances value of a this object is calculated by this BGP routing process.	An
	  example includes RFC 2547 PE-CE routers.

	  Implementations that do
             Speaker as being;

             zero (0) - if this was the value sent by the peer and
             this value is permitted by this BGP Speaker. In this
             case, no keepalive messages are sent and the Hold Timer
             is not support multiple
	  routing instances should return 1 set.

             At least three (3). This value is the smaller of
             the value sent by this peer in the OPEN message and
             bgpPeerAfHoldTimeConfigured for this object.

	  XXX TODO - We need to provide a way to configure these peer.

             This value is only defined when the peering session is
             in the peer configuration table." Established state."
        REFERENCE
            "RFC 4271, Section 4.2."
        ::= { bgpM2PeerEntry bgpPeerAfNegotiatedTimersEntry 1 }

    bgpM2PeerIdentifier

    bgpPeerAfKeepAlive OBJECT-TYPE
        SYNTAX	   BgpM2Identifier Unsigned32 ( 0 | 1..21845 )
        UNITS "seconds"
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The BGP Identifier
            "Time interval in seconds for the KeepAlive timer
             established with the peer. The value of this entry's remote object
             is calculated by this BGP peer. speaker such that, when
             compared with bgpPeerAfHoldTime, it has the same
             proportion as what bgpPeerAfKeepAliveConfigured has
             when compared with bgpPeerAfHoldTimeConfigured. If
             the value of this object is zero (0), it indicates
             that the KeepAlive timer has not been established
             with the peer, or, the value of
             bgpPeerAfKeepAliveConfigured is zero (0).

             This entry should be 0.0.0.0 unless value is only defined when the bgpM2PeerState peering session is
             in the OpenConfirm or the Established state."
        REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Sec. 4.2"
            "RFC 4271, Section 4.4."
        ::= { bgpM2PeerEntry bgpPeerAfNegotiatedTimersEntry 2 }

    bgpM2PeerState OBJECT-TYPE
	SYNTAX	   INTEGER

    --
    -- Per-peer counters
    --

    bgpPeerAfCounters
        OBJECT IDENTIFIER ::= {
	    idle(1),
	    connect(2),
	    active(3),
	    opensent(4),
	    openconfirm(5),
	    established(6) bgpPeerAf 4 }

    bgpPeerAfCountersTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpPeerAfCountersEntry
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
            "The remote counters associated with a BGP peer's FSM state."
	REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Sec. 8" Peer."
        ::= { bgpM2PeerEntry 3 bgpPeerAfCounters 1 }

    bgpM2PeerStatus

    bgpPeerAfCountersEntry OBJECT-TYPE
        SYNTAX	   INTEGER {
	    halted(1),
	    running(2)
	} BgpPeerAfCountersEntry
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "Whether or not the BGP
            "Each entry contains counters of message transmissions
             and FSM transitions for this remote peer is halted
	     or running.  The BGP FSM for a remote peer is halted after
	     processing a Stop event.  Likewise, it is in the running
	     state after a Start event.

	     The bgpM2PeerState will generally be in the idle state when
	     the FSM is halted, although some extensions such as
	     Graceful Restart will leave the peer in the Idle state
	     but with the FSM running." given BGP Peering session."
        AUGMENTS {
            bgpPeerAfEntry
        }
        ::= { bgpM2PeerEntry 4 bgpPeerAfCountersTable 1 }

    bgpM2PeerConfiguredVersion

    BgpPeerAfCountersEntry ::= SEQUENCE {
        bgpPeerAfInUpdates
            Counter32,
        bgpPeerAfOutUpdates
            Counter32,
        bgpPeerAfInTotalMessages
            Counter32,
        bgpPeerAfOutTotalMessages
            Counter32,
        bgpPeerAfFsmEstablishedTrans
            Counter32
    }

    bgpPeerAfInUpdates OBJECT-TYPE
        SYNTAX	   Unsigned32 (1..255) Counter32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The configured version to originally start with this
	     remote peer.  The BGP speaker may permit negotiation to a
	     lower version number of BGP UPDATE messages received on this
             connection. This object should be initialized to zero
             (0) when the protocol." connection is established."
        ::= { bgpM2PeerEntry 5 bgpPeerAfCountersEntry 1 }

    bgpM2PeerNegotiatedVersion

    bgpPeerAfOutUpdates OBJECT-TYPE
        SYNTAX	   Unsigned32 (1..255) Counter32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The negotiated version number of BGP running between UPDATE messages transmitted on this
             connection. This object should be initialized to zero
             (0) when the two
	     peers." connection is established."
        ::= { bgpM2PeerEntry 6 bgpPeerAfCountersEntry 2 }

    bgpM2PeerLocalAddrType

    bgpPeerAfInTotalMessages OBJECT-TYPE
        SYNTAX	   InetAddressType Counter32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The address family total number of messages received from the local end of remote
             peer on this connection. This object should be
             initialized to zero when the peering
	     session." connection is established."
        ::= { bgpM2PeerEntry 7 bgpPeerAfCountersEntry 3 }

    bgpM2PeerLocalAddr

    bgpPeerAfOutTotalMessages OBJECT-TYPE
        SYNTAX	   InetAddress (SIZE(4..20)) Counter32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The address total number of messages transmitted to the local end of remote
             peer on this connection. This object should be
             initialized to zero when the peering session." connection is established."
        ::= { bgpM2PeerEntry 8 bgpPeerAfCountersEntry 4 }

    bgpM2PeerLocalPort

    bgpPeerAfFsmEstablishedTrans OBJECT-TYPE
        SYNTAX	   InetPortNumber Counter32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The local port for the TCP connection between total number of times the BGP
	     peers." FSM transitioned into
             the established state for this peer."
        ::= { bgpM2PeerEntry 9 bgpPeerAfCountersEntry 5 }

    bgpM2PeerLocalAs

    --
    -- Per-Peer Prefix Counters
    --

    bgpPrefixCountersTable OBJECT-TYPE
        SYNTAX	   InetAutonomousSystemNumber SEQUENCE OF BgpPrefixCountersEntry
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "Some implementations of BGP can represent themselves
	     as multiple ASs.  This is the AS that this peering
	     session is representing itself as to the remote peer."
            "Additional per-peer, per AFI-SAFI counters for
             prefixes"
        ::= { bgpM2PeerEntry 10 bgpPeerAfCounters 2 }

    bgpM2PeerRemoteAddrType

    bgpPrefixCountersEntry OBJECT-TYPE
        SYNTAX	   InetAddressType BgpPrefixCountersEntry
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
            "Entry containing information about a bgp-peers prefix
             counters."
        INDEX {
            bgpPeerAfInstance,
            bgpPeerAfLocalAddrType,
            bgpPeerAfLocalAddr,
            bgpPeerAfRemoteAddrType,
            bgpPeerAfRemoteAddr,
            bgpPrefixCountersAfi,
            bgpPrefixCountersSafi
        }
        ::= { bgpPrefixCountersTable 1 }

    BgpPrefixCountersEntry ::= SEQUENCE {
        bgpPrefixCountersAfi
            BgpAfiTC,
        bgpPrefixCountersSafi
            BgpSafiTC,
        bgpPrefixInPrefixes
            Gauge32,
        bgpPrefixInPrefixesAccepted
            Gauge32,
        bgpPrefixOutPrefixes
            Gauge32
    }

    bgpPrefixCountersAfi OBJECT-TYPE
        SYNTAX BgpAfiTC
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "The address family of the remote end AFI index of the peering
	     session." per-peer, per prefix counters"
        ::= { bgpM2PeerEntry 11 bgpPrefixCountersEntry 1 }

    bgpM2PeerRemoteAddr

    bgpPrefixCountersSafi OBJECT-TYPE
        SYNTAX	   InetAddress (SIZE(4..20)) BgpSafiTC
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
            "The address of the remote end SAFI index of the peering session." per-peer, per prefix counters"
        ::= { bgpM2PeerEntry 12 bgpPrefixCountersEntry 2 }

    bgpM2PeerRemotePort

    bgpPrefixInPrefixes OBJECT-TYPE
        SYNTAX	   InetPortNumber Gauge32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The remote port for the TCP connection between the BGP
	     peers.  In the case number of prefixes received from a transport for which the notion
	     of 'port' is irrelevant, an instance value of -1
	     should be returned by peer and are
             stored in the agent Adj-Ribs-In for this object. that peer.

             Note that the objects bgpM2PeerLocalAddr,
	     bgpM2PeerLocalPort, bgpM2PeerRemoteAddr and
	     bgpM2PeerRemotePort provide the appropriate reference this number does not reflect prefixes that
             have been discarded due to
	     the standard MIB TCP connection table. or even the ipv6
	     TCP MIB as in rfc2452."
	REFERENCE
	    "RFC 2012 - SNMPv2 Management Information Base for the
	     Transmission Control Protocol using SMIv2.
	     RFC 2542 - IP Version 6 Management Information Base
	     for the Transmission Control Protocol." policy."
        ::= { bgpM2PeerEntry 13 bgpPrefixCountersEntry 3 }

    bgpM2PeerRemoteAs
    bgpPrefixInPrefixesAccepted OBJECT-TYPE
        SYNTAX	   InetAutonomousSystemNumber Gauge32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The remote autonomous system number." number of prefixes for a peer that are installed
             in the Adj-Ribs-In and are eligible to become active
             in the Loc-Rib."
        ::= { bgpM2PeerEntry 14 bgpPrefixCountersEntry 4 }

    bgpM2PeerIndex

    bgpPrefixOutPrefixes OBJECT-TYPE
        SYNTAX	    Unsigned32 Gauge32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "This value is a unique index
            "The number of prefixes for the remote a peer entry that are installed
             in the bgpM2PeerTable.  It is assigned by the agent
	     at the point of creation of the bgpM2PeerTable row
	     entry.  While its value is guaranteed to be unique at
	     any time, it is otherwise opaque to the management
	     application with respect to its value or the contiguity
	     of bgpM2PeerIndex row instance values across rows of
	     the bgpM2PeerTable.  It is used to provide an index
	     structure for other tables whose data is logically
	     per-peer.

	     For explicitly configured peers, this value will remain
	     consistent until this row is deleted by deleting the
	     configured peers.	Unconfigured peers will generate
	     a monotonically increasing number when a BGP FSM is
	     built to process the peering session.  Values in the
	     bgpM2PeerTable and other tables utilizing bgpM2PeerIndex
	     are expected to remain in existence for an arbitrary
	     time after the unconfigured peer has been deleted
	     in order to allow management applications to extract
	     useful management information for those peers.  Thus,
	     an unconfigured peer using the same indices as the
	     bgpM2PeerTable that comes up while this row still
	     exists will re-utilize the same row." peer's Adj-Ribs-Out."
        ::= { bgpM2PeerEntry 15 bgpPrefixCountersEntry 5 }

    --
    -- Errors BGP NLRI Data
    --

    bgpM2PeerErrors

    bgpRib
        OBJECT IDENTIFIER ::= { bgpM2Peer 2 bgp 11 }

    bgpM2PeerErrorsTable

    --
    -- NLRI Table
    --

    bgpNlriTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpM2PeerErrorsEntry BgpNlriEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "On a per peer basis,
            "The BGP-4 Received Path Attribute Table contains
             information about paths to destination networks
             received from all BGP4 peers. Collectively, this table reflects the last
	     protocol-defined error encountered and reported on
             represents the peer session.	If no entry Adj-Ribs-In. The route where
             bgpNlriBest is true represents, for a given peer,
	     by its bgpM2PeerIndex, exists in this table, then no
	     such errors have been observed, reported, and
	     recorded on NLRI,
             the  session." route that is installed in the LocRib from the
             Adj-Ribs-In."
        ::= { bgpM2PeerErrors bgpRib 1 }

    bgpM2PeerErrorsEntry

    bgpNlriEntry OBJECT-TYPE
        SYNTAX	   BgpM2PeerErrorsEntry BgpNlriEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Each entry contains information
            "Information about errors sent
	     and received for a particular BGP peer."
	AUGMENTS path to a network."
        INDEX {
	    bgpM2PeerEntry
            bgpNlriAfi,
            bgpNlriSafi,
            bgpNlriPrefix,
            bgpNlriPrefixLen,
            bgpNlriIndex,
            bgpPeerAfInstance,
            bgpPeerAfLocalAddrType,
            bgpPeerAfLocalAddr,
            bgpPeerAfRemoteAddrType,
            bgpPeerAfRemoteAddr
        }
        ::= { bgpM2PeerErrorsTable bgpNlriTable 1 }

    BgpM2PeerErrorsEntry

    BgpNlriEntry ::= SEQUENCE {
	bgpM2PeerLastErrorReceived
	    OCTET STRING,
	bgpM2PeerLastErrorSent
	    OCTET STRING,
	bgpM2PeerLastErrorReceivedTime
	    TimeTicks,
	bgpM2PeerLastErrorSentTime
	    TimeTicks,
	bgpM2PeerLastErrorReceivedText
	    SnmpAdminString,
	bgpM2PeerLastErrorSentText
	    SnmpAdminString,
	bgpM2PeerLastErrorReceivedData
	    OCTET STRING,
	bgpM2PeerLastErrorSentData
	    OCTET STRING
        bgpNlriIndex
            Unsigned32,
        bgpNlriAfi
            BgpAfiTC,
        bgpNlriSafi
            BgpSafiTC,
        bgpNlriPrefixType
            InetAddressType,
        bgpNlriPrefix
            InetAddress,
        bgpNlriPrefixLen
            InetAddressPrefixLength,
        bgpNlriBest
            TruthValue,
        bgpNlriCalcLocalPref
            Unsigned32,
        bgpAfPathAttrIndex
            Unsigned32,
        bgpAfPathAttrUnknownIndex
            Unsigned32
    }

    bgpM2PeerLastErrorReceived

    bgpNlriIndex OBJECT-TYPE
        SYNTAX	   OCTET STRING (SIZE (2)) Unsigned32
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "The last error code and subcode received by this BGP
	     Speaker via
            "This index allows for multiple instances of a NOTIFICATION message base
             prefix for this a certain AFI-SAFI from a given peer.
	     If no error has occurred, this field
             This is zero.
	     Otherwise, the first byte of this currently useful for two byte
	     OCTET STRING contains the error code, and things:
             1. Allowing for a peer in future implementations to
                send more than a single route instance.
             2. Allow for extensions which extend the second
	     byte contains NLRI field
                to send the subcode." same prefix while utilizing other
                extension specific information. An example of
                this is RFC 3107 - Carrying MPLS labels in BGP."
        REFERENCE
	    "draft-ietf-idr-bgp4-15.txt, Sec. 4.5"
            "RFC 3107 - Carrying Label Information in BGP-4."
        ::= { bgpM2PeerErrorsEntry bgpNlriEntry 1 }

    bgpM2PeerLastErrorSent

    bgpNlriAfi OBJECT-TYPE
        SYNTAX	   OCTET STRING (SIZE (2)) BgpAfiTC
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
            "The last error code and subcode sent by this BGP
	     Speaker via a NOTIFICATION message to this peer.
	     If no error has occurred, this field is zero.
	     Otherwise, the first byte address family of this two byte
	     OCTET STRING contains the error code, and prefix for this NLRI.

             Note that the second
	     byte contains AFI is not necessarily equivalent to
             the subcode." an InetAddressType."
        REFERENCE
	    "draft-ietf-idr-bgp4-15.txt, Sec. 4.5"
            "RFC 4760 - Multiprotocol Extensions for BGP-4"
        ::= { bgpM2PeerErrorsEntry bgpNlriEntry 2 }

    bgpM2PeerLastErrorReceivedTime

    bgpNlriSafi OBJECT-TYPE
        SYNTAX	   TimeTicks BgpSafiTC
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
            "The timestamp that subsequent address family of the last NOTIFICATION was received from prefix for
             this peer." NLRI"
        REFERENCE
	    "draft-ietf-idr-bgp4-15.txt, Sec. 4.5"
            "RFC 4760 - Multiprotocol Extensions for BGP-4"
        ::= { bgpM2PeerErrorsEntry bgpNlriEntry 3 }

    bgpM2PeerLastErrorSentTime

    bgpNlriPrefixType OBJECT-TYPE
        SYNTAX	   TimeTicks InetAddressType
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
            "The timestamp that type of the last NOTIFICATION was sent to IP address prefix in the
             Network Layer Reachability Information field.
             The value of this peer."
	REFERENCE
	    "draft-ietf-idr-bgp4-15.txt, Sec. 4.5"
	::= { bgpM2PeerErrorsEntry 4 }

    bgpM2PeerLastErrorReceivedText OBJECT-TYPE
	SYNTAX	   SnmpAdminString
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This object contains is derived from the
             appropriate value from the bgpNlriAfi field.
             Where an implementation specific
	     explanation appropriate InetAddressType is not
             available, the value of the error that was reported." object must be
             unknown(0)."
        ::= { bgpM2PeerErrorsEntry 5 bgpNlriEntry 4 }

    bgpM2PeerLastErrorSentText

    bgpNlriPrefix OBJECT-TYPE
        SYNTAX	   SnmpAdminString InetAddress (SIZE (4..20))
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "This
            "An IP address prefix in the Network Layer
             Reachability Information field. This object contains
             is an implementation specific
	     explanation of IP address containing the error that is being reported." prefix with
             length specified by
             bgpAfPathAttrAddrPrefixLen.
             Any bits beyond the length specified by
             bgpAfPathAttrAddrPrefixLen are zeroed."
        REFERENCE
            "RFC 4271, Section 4.3."
        ::= { bgpM2PeerErrorsEntry 6 bgpNlriEntry 5 }

    bgpM2PeerLastErrorReceivedData

    bgpNlriPrefixLen OBJECT-TYPE
        SYNTAX	   OCTET STRING (SIZE(0..4075)) InetAddressPrefixLength
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "The last error code's data seen by this peer."
	REFERENCE
	    "draft-ietf-idr-bgp4-15.txt, Sec. 4.5"
            "Length in bits of the address prefix in
             the Network Layer Reachability Information field."
        ::= { bgpM2PeerErrorsEntry 7 bgpNlriEntry 6 }
    bgpM2PeerLastErrorSentData

    bgpNlriBest OBJECT-TYPE
        SYNTAX	   OCTET STRING (SIZE(0..4075)) TruthValue
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The last error code's data sent to
            "An indication of whether or not this peer." route
             was chosen as the best BGP4 route for this
             destination."
        REFERENCE
	    "draft-ietf-idr-bgp4-15.txt, Sec. 4.5"
	::= { bgpM2PeerErrorsEntry 8 }

    --
    -- Peer Event Times
    --

    bgpM2PeerTimers
	OBJECT IDENTIFIER
            "RFC 4271, Section 9.1.2."
        ::= { bgpM2Peer 3 bgpNlriEntry 7 }

    bgpM2PeerEventTimesTable

    bgpNlriCalcLocalPref OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM2PeerEventTimesEntry Unsigned32
        MAX-ACCESS not-accessible read-only
        STATUS current
        DESCRIPTION
	    "A table reporting the per-peering session amount
            "The degree of time elapsed and update events since preference calculated by the peering
	     session advanced into
             receiving BGP4 speaker for an advertised
             route.

             In the Established state." case where this prefix is ineligible, this
             object will be absent."
        REFERENCE
            "RFC 4271, Section 9.1.1"
        ::= { bgpM2PeerTimers 1 bgpNlriEntry 8 }

    bgpM2PeerEventTimesEntry

    bgpAfPathAttrIndex OBJECT-TYPE
        SYNTAX	   BgpM2PeerEventTimesEntry Unsigned32
        MAX-ACCESS not-accessible read-only
        STATUS current
        DESCRIPTION
	    "Each row contains
            "This value is a set of statistics about time
	     spent and events encountered unique index for entries in the peer session
	     Established state."
	AUGMENTS {
	    bgpM2PeerEntry
	}
	::= { bgpM2PeerEventTimesTable 1 }

    BgpM2PeerEventTimesEntry ::= SEQUENCE {
	bgpM2PeerFsmEstablishedTime
	    Gauge32,
	bgpM2PeerInUpdatesElapsedTime
	    Gauge32
    }

    bgpM2PeerFsmEstablishedTime OBJECT-TYPE
	SYNTAX	   Gauge32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This timer indicates how long (in seconds) this
	     peer has been in
             bgpAfPathAttrTable. It is assigned by the Established state or how long
	     since this peer was last in agent at the Established state.
	     It
             point of creation of the bgpAfPathAttrTable row entry.
             While its value is set guaranteed to zero when a new peer be unique at any time,
             it is configured otherwise opaque to the management application
             with respect to its value or the router contiguity of
             bgpAfPathAttrIndex row instance values across rows of the
             bgpAfPathAttrTable.

             Note well that this index is booted." used to distinguish unique
             sets of Path Attributes sent as part of BGP NLRI.  The
             implementor is thus encouraged to make this index unique
             per set of all received path attributes.  This value may
             be used to index tables in extension MIBs that share the
             property of belonging to the same received Path Attribute
             tuple."
        ::= { bgpM2PeerEventTimesEntry 1 bgpNlriEntry 9 }

    bgpM2PeerInUpdatesElapsedTime

    bgpAfPathAttrUnknownIndex OBJECT-TYPE
        SYNTAX	   Gauge32 Unsigned32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "Elapsed time
            "This value is a unique index for entries in seconds since the last BGP UPDATE
	     message was received from the peer.  Each time
	     bgpM2PeerInUpdates
             bgpAfPathAttrUnknownTable. It is incremented, assigned by the value agent at
             the point of this
	     object creation of the bgpAfPathAttrUnknownTable row
             entry.  While its value is set guaranteed to zero (0).	 This value shall also be
	     zero (0) when the peer unique at
             any time, it is not in otherwise opaque to the Established state" management
             application with respect to its value or the contiguity
             of bgpAfPathAttrUnknownIndex row instance values across
             rows of the bgpAfPathAttrUnknownTable."
        ::= { bgpM2PeerEventTimesEntry 2 bgpNlriEntry 10 }

    --
    -- Peer Configured Timers Adj-Ribs-Out Table
    --

    bgpM2PeerConfiguredTimersTable

    bgpAdjRibsOutTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpM2PeerConfiguredTimersEntry BgpAdjRibsOutEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Per peer management data
            "This table contains on BGP session timers." a per-peer basis one or more
             routes from the bgpNlriTable that have been
             placed in this peer's Adj-Ribs-Out."
        REFERENCE
            "RFC 4271, Section 3.2."
        ::= { bgpM2PeerTimers bgpRib 2 }

    bgpM2PeerConfiguredTimersEntry

    bgpAdjRibsOutEntry OBJECT-TYPE
        SYNTAX	   BgpM2PeerConfiguredTimersEntry BgpAdjRibsOutEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Each entry corresponds to the current state
            "List of BGP timers on routes that have been placed into a given peering session."
	AUGMENTS
             peer's Adj-Ribs-Out."
        INDEX {
	    bgpM2PeerEntry
            bgpPeerAfInstance,
            bgpPeerAfLocalAddrType,
            bgpPeerAfLocalAddr,
            bgpPeerAfRemoteAddrType,
            bgpPeerAfRemoteAddr,
            bgpNlriAfi,
            bgpNlriSafi,
            bgpNlriPrefix,
            bgpNlriPrefixLen,
            bgpAdjRibsOutIndex
        }
        ::= { bgpM2PeerConfiguredTimersTable bgpAdjRibsOutTable 1 }

    BgpM2PeerConfiguredTimersEntry

    BgpAdjRibsOutEntry ::= SEQUENCE {
	bgpM2PeerConnectRetryInterval
	    Unsigned32,
	bgpM2PeerHoldTimeConfigured
	    Unsigned32,
	bgpM2PeerKeepAliveConfigured
	    Unsigned32,
	bgpM2PeerMinASOrigInterval
        bgpAdjRibsOutIndex
            Unsigned32,
	bgpM2PeerMinRouteAdverInterval
	    Unsigned32
        bgpAdjRibsOutRoute
            RowPointer
    }

    bgpM2PeerConnectRetryInterval

    bgpAdjRibsOutIndex OBJECT-TYPE
        SYNTAX Unsigned32 (1..65535)
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "Time interval in seconds for
            "Certain extensions to BGP permit multiple instance of
             a per afi, per safi prefix to be advertised to a peer.
             This object allows the ConnectRetry
	     timer.  The suggested value for this timer is 120
	     seconds." enumeration of them."
        ::= { bgpM2PeerConfiguredTimersEntry bgpAdjRibsOutEntry 1 }

    bgpM2PeerHoldTimeConfigured

    bgpAdjRibsOutRoute OBJECT-TYPE
        SYNTAX	   Unsigned32 ( 0 | 3..65535 ) RowPointer
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "Time interval in seconds for the Hold Time configured
	     for this BGP speaker with this peer.  This value
	     is placed in an OPEN message sent
            "This object points to this peer by
	     this BGP speaker, and is compared with the Hold
	     Time field route in an OPEN message received from the
	     peer when determining the Hold Time (bgpM2PeerHoldTime)
	     with bgpNlriTable
             that corresponds to the peer.  This value must not be less than
	     three seconds if it is not zero (0) entry in which case
	     the Hold Time is NOT to be established with the
	     peer.  The suggested value for peer's
             Adj-Rib-Out. Outgoing route maps are not
             reflected at this timer is 90
	     seconds." point as those are part of the
             Update-Send process."
        REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Appendix 6.4"
            "RFC 4271, Section 9.2."
        ::= { bgpM2PeerConfiguredTimersEntry bgpAdjRibsOutEntry 2 }

    bgpM2PeerKeepAliveConfigured

    --
    -- Path Attribute Counter
    --

    bgpAfPathAttrCount OBJECT-TYPE
        SYNTAX	   Unsigned32 ( 0 | 1..21845 ) Counter32
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "Time interval in seconds for the KeepAlive timer
	     configured for this BGP speaker with this peer.
	     The value
            "The number of this object will only determine the
	     KEEPALIVE messages frequency relative to the value
	     specified entries in bgpM2PeerHoldTimeConfigured; the actual
	     time interval for the KEEPALIVE messages is indicated
	     by bgpM2PeerKeepAlive.  A reasonable maximum value
	     for this timer would be configured to be one third
	     of that of bgpM2PeerHoldTimeConfigured.

	     If the value of this object is zero (0), no
	     periodical KEEPALIVE messages are sent to the peer
	     after the BGP connection has been established.
	     The suggested value for this timer is 30 seconds."
	REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Appendix 6.4" bgpAfPathAttrTable."
        ::= { bgpM2PeerConfiguredTimersEntry bgpRib 3 }

    bgpM2PeerMinASOrigInterval OBJECT-TYPE
	SYNTAX	   Unsigned32 (0..65535)
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "Time interval in seconds for the MinASOriginationInterval
	     timer.  The suggested value for this timer is 15
	     seconds."
	::= { bgpM2PeerConfiguredTimersEntry 4 }

    bgpM2PeerMinRouteAdverInterval OBJECT-TYPE
	SYNTAX	   Unsigned32 (0..65535)
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "Time interval in seconds for the
	     MinRouteAdvertisementInterval timer.  The suggested
	     value for this timer is 30 seconds."
	::= { bgpM2PeerConfiguredTimersEntry 5 }

    --
    -- Peer Negotiated Timers Path Attributes Table
    --

    bgpM2PeerNegotiatedTimersTable

    bgpAfPathAttrTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpM2PeerNegotiatedTimersEntry BgpAfPathAttrEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Current values of per-peer timers which can be
	     dynamically set in the bgpM2PeerConfiguredTimersTable.
	     Values reflected in this table are the current
	     operational values, after negotiation from values
	     derived from initial configuration or last set from
	     bgpM2PeerConfiguredTimersTable row instances."
            "Provides per advertised network-prefix attribute data,
             as advertised over a peering session."
        ::= { bgpM2PeerTimers 3 bgpRib 4 }

    bgpM2PeerNegotiatedTimersEntry

    bgpAfPathAttrEntry OBJECT-TYPE
        SYNTAX	   BgpM2PeerNegotiatedTimersEntry BgpAfPathAttrEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "Each entry reflects contains data about path attributes
             associated with a value of the currently
	     operational, negotiated timers as reflected given prefix in the
	     BgpM2PeerNegotiatedTimersEntry."
	AUGMENTS bgpNlriTable."
        REFERENCE
             "RFC 4271, Section 5."
        INDEX {
	    bgpM2PeerEntry
            bgpAfPathAttrIndex
        }
        ::= { bgpM2PeerNegotiatedTimersTable bgpAfPathAttrTable 1 }

    BgpM2PeerNegotiatedTimersEntry

    BgpAfPathAttrEntry ::= SEQUENCE {
	bgpM2PeerHoldTime
        bgpAfPathAttrOrigin
            INTEGER,
        bgpAfPathAttrNextHopAddrType
            InetAddressType,
        bgpAfPathAttrNextHop
            InetAddress,
        bgpAfPathAttrLinkLocalNextHop
            InetAddress,
        bgpAfPathAttrMedPresent
            TruthValue,
        bgpAfPathAttrMed
            Unsigned32,
	bgpM2PeerKeepAlive
	    Unsigned32
        bgpAfPathAttrLocalPref
            Unsigned32,
        bgpAfPathAttrAtomicAggregate
            INTEGER,
        bgpAfPathAttrAggregatorAS
            InetAutonomousSystemNumber,
        bgpAfPathAttrAggregatorAddr
            BgpIdentifierTC,
        bgpAsPathCalcLength
            Unsigned32,
        bgpAsPathIndex
            Unsigned32,
        bgpAsPathString
            SnmpAdminString
    }

    bgpM2PeerHoldTime

    bgpAfPathAttrOrigin OBJECT-TYPE
        SYNTAX	   Unsigned32  ( 0 | 3..65535 ) INTEGER {
            igp(1),-- networks are interior
            egp(2),-- networks learned via the EGP protocol
            incomplete(3) -- networks that
                          -- are learned by some other
                          -- means
            }
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The value ultimate origin of this object is calculated by this BGP
	     Speaker as being;

	     zero (0) - if this was the value sent by the peer and
	     this value is permitted by this BGP Speaker.  In this
	     case, no keepalive messages are sent and the Hold Timer
	     is not set.

	     At least three (3).  This value is the smaller path information."
        REFERENCE
            "RFC 4271, Section 4.3.
             RFC 4271, Section 5.1.1."
        ::= { bgpAfPathAttrEntry 1 }

    bgpAfPathAttrNextHopAddrType OBJECT-TYPE
        SYNTAX InetAddressType
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The address family of the value sent by this peer in the OPEN message and
	     bgpM2PeerHoldTimeConfigured address for this peer.

	     This value is only defined when
             the peering session is
	     in border router that should be used
             to access the Established state."
	REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Sec. 4.2" destination network."
        ::= { bgpM2PeerNegotiatedTimersEntry 1 bgpAfPathAttrEntry 2 }

    bgpM2PeerKeepAlive

    bgpAfPathAttrNextHop OBJECT-TYPE
        SYNTAX	   Unsigned32 ( 0 | 1..21845 ) InetAddress (SIZE(4..20))
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "Time interval in seconds for
            "The address of the KeepAlive timer
	     established with border router that
             should be used to access the peer.	 The value of this object destination
             network. This address is calculated by this BGP speaker such that, when
	     compared with bgpM2PeerHoldTime, it has the same
	     proportion as what bgpM2PeerKeepAliveConfigured has
	     when compared with bgpM2PeerHoldTimeConfigured.  If nexthop
             address received in the value of UPDATE packet associated with
             this object is zero (0), it indicates prefix.

             Note that for RFC2545 style double nexthops,
             this object will always contain the KeepAlive timer has not been established
	     with the peer, or, global scope
             nexthop. bgpPathAttrLinkLocalNextHop will contain
             the value of
	     bgpM2PeerKeepAliveConfigured is zero (0).

	     This value linklocal scope nexthop, if it is only defined when present.

             In the peering session case a mechanism is
	     in developed to use only a link
             local nexthop, bgpAfPathAttrNextHop will contain the Established state."
             link local nexthop."
        REFERENCE
	    "draft-ietf-idr-bgp4-17, Sec. 4.4"
	::= { bgpM2PeerNegotiatedTimersEntry 2 }

    --
    -- Peer Capabilities
    --

    bgpM2PeerCapabilities
	OBJECT IDENTIFIER
            "RFC 4271, Section 4.3,
             RFC 4271, Section 5.1.3,
             RFC 2545, Section 3."
        ::= { bgpM2Peer 4 bgpAfPathAttrEntry 3 }
    --
    -- Announced Capabilities
    --

    bgpM2PeerCapsAnnouncedTable

    bgpAfPathAttrLinkLocalNextHop OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM2PeerCapsAnnouncedEntry InetAddress (SIZE(20))
        MAX-ACCESS not-accessible read-only
        STATUS current
        DESCRIPTION
            "This table value contains the capabilities
	     that are supported for a given peer." an IPv6 link local address of
             InetAddressType of type ipv6z and is present only when
             receiving RFC 2545 style double nexthops.

             This object is optionally present in BGP
             implementations that do not support IPv6."
        REFERENCE
            "RFC 2545, Section 3."
        ::= { bgpM2PeerCapabilities 1 bgpAfPathAttrEntry 4 }

    bgpM2PeerCapsAnnouncedEntry

    bgpAfPathAttrMedPresent OBJECT-TYPE
        SYNTAX	   BgpM2PeerCapsAnnouncedEntry TruthValue
        MAX-ACCESS not-accessible read-only
        STATUS current
        DESCRIPTION
	    "These entries are keyed by a BGP-4 peer remote
	     address and
            "Whether or not the BGP Capability Code"
	INDEX {
	    bgpM2PeerIndex,
	    bgpM2PeerCapAnnouncedCode,
	    bgpM2PeerCapAnnouncedIndex
	}
	::= { bgpM2PeerCapsAnnouncedTable 1 }

    BgpM2PeerCapsAnnouncedEntry MED value was sent in the UPDATE
             message."
        ::= SEQUENCE {
	bgpM2PeerCapAnnouncedCode
	    Unsigned32,
	bgpM2PeerCapAnnouncedIndex
	    Unsigned32,
	bgpM2PeerCapAnnouncedValue
	    OCTET STRING bgpAfPathAttrEntry 5 }

    bgpM2PeerCapAnnouncedCode

    bgpAfPathAttrMed OBJECT-TYPE
        SYNTAX Unsigned32 (0..255)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The BGP Capability Advertisement Capability Code."
            "This metric is used to discriminate between multiple
             exit points to an adjacent autonomous system.  When the MED
             value is absent but has a calculated default value, this
             object will contain the calculated value."
        REFERENCE
            "RFC 4271, Section 4.3.
             RFC 4271, Section 5.1.4."
        ::= { bgpM2PeerCapsAnnouncedEntry 1 bgpAfPathAttrEntry 6 }
    bgpM2PeerCapAnnouncedIndex

    bgpAfPathAttrLocalPref OBJECT-TYPE
        SYNTAX Unsigned32 (1..128)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "Multiple instances
            "The originating BGP4 speakers degree of a given capability may be preference for an
             advertised route.  If the route was not sent
	     bgp with a BGP speaker.	 This variable is used to index them." LOCAL_PREF
             value, this object will be absent."
        REFERENCE
            "RFC 4271, Section 4.3.
             RFC 4271, Section 5.1.5."
        ::= { bgpM2PeerCapsAnnouncedEntry 2 bgpAfPathAttrEntry 7 }

    bgpM2PeerCapAnnouncedValue

    bgpAfPathAttrAtomicAggregate OBJECT-TYPE
        SYNTAX	   OCTET STRING (SIZE(0..255)) INTEGER {
            atomicAggregatePresent(1),
            atomicAggregateMissing(2)
            }
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The value of
            "When this object is set to atomicAggregatePresent,
             the ATOMIC_AGGREGATE Path Attribute is present and
             indicates that the announced capability." NLRI MUST NOT be made more
             specific."
        REFERENCE
            "RFC 4271, Sections 5.1.6 and 9.1.4."
        ::= { bgpM2PeerCapsAnnouncedEntry 3 bgpAfPathAttrEntry 8 }

    --
    -- Received Capabilities
    --

    bgpM2PeerCapsReceivedTable

    bgpAfPathAttrAggregatorAS OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM24PeerCapsReceivedEntry InetAutonomousSystemNumber
        MAX-ACCESS not-accessible read-only
        STATUS current
        DESCRIPTION
	    "This table contains
            "The AS number of the capabilities last BGP4 speaker that are supported for a given peer." performed route
             aggregation. If the AGGREGATOR path attribute is absent, this
             object will not be present in the conceptual row."
        REFERENCE
            "RFC 4271, Section 5.1.7.
             RFC 4271, Section 9.2.2.2."
        ::= { bgpM2PeerCapabilities 2 bgpAfPathAttrEntry 9 }

    bgpM2PeerCapsReceivedEntry

    bgpAfPathAttrAggregatorAddr OBJECT-TYPE
        SYNTAX	   BgpM24PeerCapsReceivedEntry BgpIdentifierTC
        MAX-ACCESS not-accessible read-only
        STATUS current
        DESCRIPTION
	    "These entries are keyed by a BGP-4 peer remote
            "The IP address and of the BGP Capability Code"
	INDEX {
	    bgpM2PeerIndex,
	    bgpM2PeerCapReceivedCode,
	    bgpM2PeerCapReceivedIndex
	}
	::= { bgpM2PeerCapsReceivedTable 1 }
    BgpM24PeerCapsReceivedEntry last BGP4 speaker that performed route
             aggregation.  If the AGGREGATOR path attribute is absent, this
             object will not be present in the conceptual row."
        REFERENCE
            "RFC 4271, Section 5.1.7.
             RFC 4271, Section 9.2.2.2."
        ::= SEQUENCE {
	bgpM2PeerCapReceivedCode
	    Unsigned32,
	bgpM2PeerCapReceivedIndex
	    Unsigned32,
	bgpM2PeerCapReceivedValue
	    OCTET STRING bgpAfPathAttrEntry 10 }

    bgpM2PeerCapReceivedCode

    bgpAsPathCalcLength OBJECT-TYPE
        SYNTAX Unsigned32 (0..255)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The
            "This value represents the calculated length of the
             AS Path according to the rules of the BGP Capability Advertisement Capability Code."
             specification.  This value is used in route selection."
        REFERENCE
            "RFC 4271, Section 9.1.2.2.a"
        ::= { bgpM2PeerCapsReceivedEntry 1 bgpAfPathAttrEntry 11 }

    bgpM2PeerCapReceivedIndex

    bgpAsPathIndex OBJECT-TYPE
        SYNTAX Unsigned32 (1..128)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "Multiple instances of
            "This value is a given capability may unique index for the decomposed AS Path
             in the bgpAsPathTable. It is assigned by the
             agent at the point of creation of the bgpAsPathTable
             row entry. While its value is guaranteed to be sent
	     bgp a BGP speaker.	 This variable unique
             at any time, it is used otherwise opaque to index them." the management
             application with respect to its value or the contiguity
             of bgpAsPathIndex row instance values across rows
             of the bgpAsPathTable."
        ::= { bgpM2PeerCapsReceivedEntry 2 bgpAfPathAttrEntry 12 }

    bgpM2PeerCapReceivedValue

    bgpAsPathString OBJECT-TYPE
        SYNTAX	   OCTET STRING (SIZE(0..255)) SnmpAdminString
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The value
            "This is a string depicting the autonomous system
             path to this network which was received from the
             peer which advertised it. The format of the string
             is implementation-dependent, and should be designed
             for operator readability.

             Note that SnmpAdminString is only capable of
             representing a maximum of 255 characters.  This may
             lead to the string being truncated in the presence of
             a large AS Path.  The bgpAsPathTable will give access
             to the announced capability." full AS Path."
        ::= { bgpM2PeerCapsReceivedEntry 3 bgpAfPathAttrEntry 13 }

    --
    -- Per-peer counters BGP 4 AS_PATH.  This table provides a platform netrual
    --

    bgpM2PeerCounters
	OBJECT IDENTIFIER ::= { bgpM2Peer 6 }

    bgpM2PeerCountersTable representation of the AS_PATH.
    --

    bgpAsPathTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpM2PeerCountersEntry BgpAsPathEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "The counters associated with a BGP Peer."
	::= { bgpM2PeerCounters 1 }

    bgpM2PeerCountersEntry OBJECT-TYPE
	SYNTAX	   BgpM2PeerCountersEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Each entry BGP-4 Path Attribute AS Path Table
             contains counters of message transmissions the per network path (NLRI)
             AS PATH data received from the
             advertising BGP peer.

             Note that the bgpAsPathElementValue is 4-byte AS capable.  This
             table and FSM transitions related objects in this MIB are meant to reflect the
             active AS_PATH for a given 2-byte or a 4-byte AS speaker.  For a
             transitional 2-byte to 4-byte speaker, the received AS_PATH and
             AS4_PATH path attributes may be present in an extension MIB."
        REFERENCE
            "RFC 4271, Sections 4.3 and 5.1.2.
             RFC 4893, BGP Peering session."
	AUGMENTS Support for Four-octet AS Number Space"
        ::= { bgpRib 6 }

    bgpAsPathTableEntry OBJECT-TYPE
        SYNTAX BgpAsPathEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
            "Information about an AS path provided with a path to
             a network."
        INDEX {
	    bgpM2PeerEntry
            bgpAsPathIndex,
            bgpAsPathSegmentIndex,
            bgpAsPathElementIndex
        }
        ::= { bgpM2PeerCountersTable bgpAsPathTable 1 }

    BgpM2PeerCountersEntry

    BgpAsPathEntry ::= SEQUENCE {
	bgpM2PeerInUpdates
	    Counter32,
	bgpM2PeerOutUpdates
	    Counter32,
	bgpM2PeerInTotalMessages
	    Counter32,
	bgpM2PeerOutTotalMessages
	    Counter32,
	bgpM2PeerFsmEstablishedTrans
	    Counter32
        bgpAsPathSegmentIndex
            Unsigned32,
        bgpAsPathElementIndex
            Unsigned32,
        bgpAsPathType
            INTEGER,
        bgpAsPathElementValue
            InetAutonomousSystemNumber
    }

-- +++wayne need to describe what happens if connection is broken
-- and then reestablished. Does the prior counter value accumulate?
    bgpM2PeerInUpdates

    bgpAsPathSegmentIndex OBJECT-TYPE
        SYNTAX	   Counter32 Unsigned32
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "The number of BGP UPDATE messages received on this
	     connection.
            "A per-AS path segment index.  This object will index a set of
             autonomous systems in an AS path which are part
             of the same sequence or set (as determined by
             the row value of bgpAsPathType, which
             should be initialized to zero
	     (0) when the connection is established." same value for each bgpAsPathTable
             entry indexed by the same bgpAsPathIndex."
        REFERENCE
            "RFC 4271, Sections 4.3 and 5.1.2."
        ::= { bgpM2PeerCountersEntry bgpAsPathTableEntry 1 }

    bgpM2PeerOutUpdates
    bgpAsPathElementIndex OBJECT-TYPE
        SYNTAX	   Counter32 Unsigned32
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
	    "The number of BGP UPDATE messages transmitted on this
	     connection.
            "A per-AS element index.  This object should be initialized to zero
	     (0) when the connection is established." will index a particular
             AS within a sequence or set of autonomous systems in
             an AS path."
        REFERENCE
            "RFC 4271, Sections 4.3 and 5.1.2."
        ::= { bgpM2PeerCountersEntry bgpAsPathTableEntry 2 }

    bgpM2PeerInTotalMessages

    bgpAsPathType OBJECT-TYPE
        SYNTAX	   Counter32 INTEGER {
            asSet(1),
            asSequence(2),
            confedSequence(3),
            confedSet(4)
         }
         MAX-ACCESS read-only
         STATUS current
         DESCRIPTION
             "The total number of messages received from path segment type advertised for the remote
	     peer on this connection.  This object should be
	     initialized per-AS element.
              Note that all asPath row instances for a given
              bgpAsPathIndex index will have their
              bgpAsPathType set to zero when the connection is established." same value.
              The values for bgpAsPathType are
              interpreted as defined in the base BGP document
              and the BGP AS Confederations document."
        REFERENCE
            "RFC 4271, Sections 4.3 and 5.1.2,
             RFC 5065 - BGP AS Confederations"
        ::= { bgpM2PeerCountersEntry bgpAsPathTableEntry 3 }

    bgpM2PeerOutTotalMessages

    bgpAsPathElementValue OBJECT-TYPE
        SYNTAX	   Counter32 InetAutonomousSystemNumber
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The total number of messages transmitted to
            "An AS the remote
	     peer on this connection. NLRI traversed in the propagation of its
             advertisement.  This object should be
	     initialized value is to zero when be interpreted in
             the connection is established."
	::= { bgpM2PeerCountersEntry 4 }

    bgpM2PeerFsmEstablishedTrans OBJECT-TYPE
	SYNTAX	   Counter32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	"The total number context of times the BGP FSM
	transitioned into segment type of the established state
	for this peer." bgpAsPathType
             in the same conceptual row."
        ::= { bgpM2PeerCountersEntry 5 bgpAsPathTableEntry 4 }

    -- BGP 4 Path unknown attribute. There is one row in
    -- Per-Peer Prefix Counters this table for each attribute not known by this BGP
    -- implementation (or agent instrumentation), but provided
    --

    bgpM2PrefixCountersTable from a peer.

    bgpAfPathAttrUnknownTable OBJECT-TYPE
        SYNTAX SEQUENCE OF BgpM2PrefixCountersEntry BgpAfPathAttrUnknownEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Additional per-peer,
            "The BGP-4 Path Attribute Unknown Table
             contains the per AFI SAFI counters network path (NLRI)
             data on the path attributes advertised
             with a route but not known to the local BGP
             implementation or not otherwise capable of being
             returned from this agent.

             The absence of row data for prefixes" a given index value for
             bgpAfPathAttrIndex indicates a lack of such unknown
             attribute information for the indicated network path
             (as indexed by that bgpAfPathAttrIndex value in the
             bgpAfPathAttrTable)."
        REFERENCE
            "RFC 4271, Sections 4.3 and 5."
        ::= { bgpM2PeerCounters 2 bgpRib 7 }

    bgpM2PrefixCountersEntry

    bgpAfPathAttrUnknownEntry OBJECT-TYPE
        SYNTAX	   BgpM2PrefixCountersEntry BgpAfPathAttrUnknownEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Entry containing information
            "Information about an unknown attribute
             provided with a bgp-peers prefix
	     counters." path to a network."
        INDEX {
	    bgpM2PeerIndex,
	    bgpM2PrefixCountersAfi,
	    bgpM2PrefixCountersSafi
            bgpAfPathAttrUnknownIndex,
            bgpAfPathAttrUnknownCode
        }
        ::= { bgpM2PrefixCountersTable bgpAfPathAttrUnknownTable 1 }

    BgpM2PrefixCountersEntry

    BgpAfPathAttrUnknownEntry ::= SEQUENCE {
	bgpM2PrefixCountersAfi
	    BgpM2Afi,
	bgpM2PrefixCountersSafi
	    BgpM2Safi,
	bgpM2PrefixInPrefixes
	    Gauge32,
	bgpM2PrefixInPrefixesAccepted
	    Gauge32,
	bgpM2PrefixInPrefixesRejected
	    Gauge32,
	bgpM2PrefixOutPrefixes
	    Gauge32
        bgpAfPathAttrUnknownCode
            Unsigned32,
        bgpAfPathAttrUnknownFlags
            OCTET STRING,
        bgpAfPathAttrUnknownValue
            OCTET STRING
    }

    bgpM2PrefixCountersAfi

    bgpAfPathAttrUnknownCode OBJECT-TYPE
        SYNTAX	   BgpM2Afi Unsigned32
        MAX-ACCESS read-only not-accessible
        STATUS current
        DESCRIPTION
            "The AFI index of path attribute code advertised with this unknown
             attribute by the per-peer, per prefix counters" peer."
        ::= { bgpM2PrefixCountersEntry bgpAfPathAttrUnknownEntry 1 }
    bgpM2PrefixCountersSafi

    -- Maximum size of the following is derived as
    -- 4096 max message size
    -- - 16 BGP message marker bytes
    -- - 2 BGP message size
    -- - 1 BGP message type (UPDATE with unknown attr)
    -- - 2 UPDATE routes length (even assuming no routes)
    -- - 2 UPDATE path attributes length
    -- - 1 path attribute flag octet
    -- - 2 unknown path attr type (in bgpAfPathAttrUnknownCode)
    -- ---------
    -- 4070 bytes maximum per-message attribute value data

    bgpAfPathAttrUnknownFlags OBJECT-TYPE
        SYNTAX	   BgpM2Safi BgpPathAttrFlagsTC
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The SAFI index flags of the per-peer, per prefix counters" unknown path attribute."
        ::= { bgpM2PrefixCountersEntry bgpAfPathAttrUnknownEntry 2 }

    bgpM2PrefixInPrefixes

    bgpAfPathAttrUnknownValue OBJECT-TYPE
        SYNTAX	   Gauge32 OCTET STRING (SIZE(0..4070))
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The number
            "Value of prefixes received from a peer and are
	     stored in path attribute not understood
             by the Adj-Ribs-In base BGP-4 document.

             Per RFC 2578, Section 7.1.2, some implementations
             may have limitations dealing with OCTET STRINGS
             larger than 255.  Thus, this data may be truncated.

             Octets beyond the maximum size, if any,
             are not recorded by this row object."
        ::= { bgpAfPathAttrUnknownEntry 3 }

    --
    -- Mount point for that peer." extensions
    -- jmh - note that we are allowing stuff to be discarded

    bgpExtensions OBJECT IDENTIFIER ::= { bgpM2PrefixCountersEntry 7 bgp 12 }
    --
    -- Notifications
    --

    bgpNotification OBJECT IDENTIFIER ::= { bgp 0 }

    -- bgpNotification 1 and 2 have been deprecated and are
    -- documented elsewhere in this MIB

    bgpAfEstablishedNotification NOTIFICATION-TYPE
        OBJECTS {
            bgpPeerAfPeerState,
            bgpPeerAfLocalPort,
            bgpPeerAfRemotePort
        }

    bgpM2PrefixInPrefixesAccepted OBJECT-TYPE
	SYNTAX	   Gauge32
	MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The number of prefixes for a peer that are installed
	     in BGP Established event is generated when
             the Adj-Ribs-In and are eligible to become active
	     in BGP FSM enters the Loc-Rib." established state."
        ::= { bgpM2PrefixCountersEntry 8 bgpNotification 3 }

    bgpAfBackwardTransNotification NOTIFICATION-TYPE
        OBJECTS {
            bgpPeerAfPeerState,
            bgpPeerAfLocalPort,
            bgpPeerAfRemotePort,
            bgpPeerAfLastErrorReceived,
            bgpPeerAfLastErrorReceivedText
        }

    bgpM2PrefixInPrefixesRejected OBJECT-TYPE
	SYNTAX	   Gauge32
	MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
            "The number of prefixes for a peer that are installed
	     in BGPBackwardTransition Event is generated
             when the Adj-Ribs-In and are NOT eligible BGP FSM moves from a higher numbered
             state to a lower numbered state.

             Due to become active
	     in the Loc-Rib."
	::= { bgpM2PrefixCountersEntry 9 }

    bgpM2PrefixOutPrefixes OBJECT-TYPE
	SYNTAX	   Gauge32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "The number nature of prefixes for a peer that are installed
	     in that peers Adj-Ribs-Out." the BGP state machine, an implementation MAY
             rate limit the generation of this event.  An implementation MAY
             also generate this notification ONLY when the state machine moves
             out of the established state.  An implementation should document
             its specific behavior."
        ::= { bgpM2PrefixCountersEntry 10 bgpNotification 4 }

    bgpM2PeerExtensions

    --
    -- Conformance Information
    --

    bgpConformance
        OBJECT IDENTIFIER ::= { bgpM2Peer 7 bgp 8 }

    bgpM2PeerNonCapExts
    bgp4MIBCompliances OBJECT IDENTIFIER ::=
        { bgpM2PeerExtensions bgpConformance 1 }

    bgpM2PeerCapExts

    bgp4MIBGroups OBJECT IDENTIFIER ::=
        { bgpM2PeerExtensions bgpConformance 2 }

    --
    -- Peer Route Reflection Extensions
    --

    bgpM2PeerRouteReflectionExts
	OBJECT IDENTIFIER ::= { bgpM2PeerNonCapExts 2796 }

    bgpM2PeerReflectorClientTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2PeerReflectorClientEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Table of route reflection client settings on a per-peer
	     basis."
	REFERENCE
	    "RFC 2796 - BGP Route Reflection"
	::= { bgpM2PeerRouteReflectionExts bgp4MIBCompliances 1 }

    bgpM2PeerReflectorClientEntry OBJECT-TYPE
	SYNTAX	   BgpM2PeerReflectorClientEntry
	MAX-ACCESS not-accessible through 3 have been deprecated and are
    -- documented elsewhere in this MIB.

    bgpAfMIBCompliance MODULE-COMPLIANCE
        STATUS current
        DESCRIPTION
	    "Entry containing data on a per-peer basis on whether
            "The compliance statement for entities which
            implement the peer is configured as a route reflector client."
	REFERENCE
	    "RFC 2796 - BGP Route Reflection"
	AUGMENTS {
	    bgpM2PeerEntry
	}
	::= { bgpM2PeerReflectorClientTable 1 }

    BgpM2PeerReflectorClientEntry ::= SEQUENCE {
	bgpM2PeerReflectorClient
	    INTEGER
    }

    bgpM2PeerReflectorClient OBJECT-TYPE
	SYNTAX	  INTEGER BGP4 mib."
        MODULE -- this module
        MANDATORY-GROUPS {
	    nonClient(0),
	    client(1),
	    meshedClient(2)
            bgpTimersGroup,
            bgpCountersGroup,
            bgpAsPathGroup,
            bgpBaseGroup,
            bgpErrorsGroup,
            bgpPeerAfGroup,
            bgpAfPathAttributesGroup
            }
	MAX-ACCESS  read-only
	STATUS	    current
        GROUP bgpAfMIBGlobalsGroup
        DESCRIPTION
           "This value indicates whether the given peer group is a
	     reflector client of this router, or not.  A value of
	     nonClient indicates that this peer mandatory for all agent implementations."
        GROUP bgpTimersGroup
        DESCRIPTION
            "This group is not a reflector
	     client.  A value mandatory for all agent implementations."
        GROUP bgpCountersGroup
        DESCRIPTION
            "This group is mandatory for all agent implementations."
        GROUP bgpAsPathGroup
        DESCRIPTION
            "This group is mandatory for all agent implementations."
        GROUP bgpBaseGroup
        DESCRIPTION
            "This group is mandatory for all agent implementations."
        GROUP bgpErrorsGroup
        DESCRIPTION
            "This group is mandatory for all agent implementations."
        GROUP bgpPeerAfGroup
        DESCRIPTION
            "This group is mandatory for all agent implementations."
        GROUP bgpAfPathAttributesGroup
        DESCRIPTION
            "This group is mandatory for all agent implementations."
        GROUP bgpAfMIBNotificationGroup
        DESCRIPTION
            "Implementation of client indicates that BGP Notifications are completely
             optional in this peer MIB."
        ::= { bgp4MIBCompliances 4 }

    bgpAfMIBDeprecatedCompliances MODULE-COMPLIANCE
        STATUS deprecated
        DESCRIPTION
            "The compliance statement for entities which
            implement the BGP4 mib."
         MODULE -- this module
        GROUP bgpAfMIBOldGlobalsGroup
        DESCRIPTION
            "Implementation of the bgp4MIBGlobalsGroup is a
	     reflector client that OPTIONAL.
             If it is not fully meshed with other
	     reflector clients.	 A value implemented, then bgp4MIBGlobalsGroup,
             bgp4MIBPeerGroup, bgp4MIBPathAttrGroup and
             bgp4MIBNotificationGroup MUST all be implemented."
        GROUP bgp4MIBPeerGroup
        DESCRIPTION
            "Implementation of meshedClient indicates
	     that the peer bgp4MIBPeerGroup is a reflector client OPTIONAL.
             If it is implemented, then bgp4MIBGlobalsGroup,
             bgp4MIBPeerGroup, bgp4MIBPathAttrGroup and
             bgp4MIBNotificationGroup MUST all be implemented."
        GROUP bgp4MIBPathAttrGroup
        DESCRIPTION
            "Implementation of the bgp4MIBPathAttrGroup is fully meshed
	     with OPTIONAL.
             If it is implemented, then bgp4MIBGlobalsGroup,
             bgp4MIBPeerGroup, bgp4MIBPathAttrGroup and
             bgp4MIBNotificationGroup MUST all other reflector clients.

	     This value must be nonClient (0) for BGP external peers."
	REFERENCE
	    "RFC 2796 - BGP Route Reflection" implemented."
        GROUP bgp4MIBNotificationGroup
        DESCRIPTION
            "Implementation of the bgp4MIBNotificationGroup is OPTIONAL.
             If it is implemented, then bgp4MIBGlobalsGroup,
             bgp4MIBPeerGroup, bgp4MIBPathAttrGroup and
             bgp4MIBNotificationGroup MUST all be implemented."
        ::= { bgpM2PeerReflectorClientEntry 1 bgp4MIBCompliances 5 }

    -- bgp4MIBGroups 1 through 7 have been deprecated and are documented
    -- Peer AS Confederations Extensions
    --

    bgpM2PeerASConfederationExts
	OBJECT IDENTIFIER ::= elsewhere in this MIB.

    bgpAfMIBGlobalsGroup OBJECT-GROUP
        OBJECTS { bgpM2PeerNonCapExts 3065 bgpVersion,
                  bgpIdentifier }

    bgpM2PeerConfedMemberTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2PeerConfedMemberEntry
	MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Table
            "A collection of confederation member settings objects providing information on a per-peer
	     basis."
	REFERENCE
	    "RFC 3065 - global
             BGP Confederations" state.  This group covers objects that overlap the
             old bgp4MIBGlobalsGroup that are still current."
        ::= { bgpM2PeerASConfederationExts 1 bgp4MIBGroups 8 }

    bgpAfMIBOldGlobalsGroup OBJECT-GROUP
        OBJECTS { bgpLocalAs }

    bgpM2PeerConfedMemberEntry OBJECT-TYPE
	SYNTAX	   BgpM2PeerConfedMemberEntry
	MAX-ACCESS not-accessible
        STATUS	   current deprecated
        DESCRIPTION
	    "Entry containing data on a per-peer basis
            "A collection of objects providing information on whether
	     the peer is configured as a BGP confederation member."
	REFERENCE
	    "RFC 3065 - global
             BGP Confederations"
	AUGMENTS {
	    bgpM2PeerEntry
	} state.  This group covers objects that overlap the
             old bgp4MIBGlobalsGroup that are deprecated."
        ::= { bgpM2PeerConfedMemberTable 1 bgp4MIBGroups 9 }

    BgpM2PeerConfedMemberEntry ::= SEQUENCE

    bgpTimersGroup OBJECT-GROUP
        OBJECTS {
	bgpM2PeerConfedMember
	    TruthValue
            bgpPeerAfFsmEstablishedTime,
            bgpPeerAfInUpdatesElapsedTime,
            bgpPeerAfConnectRetryInterval,
            bgpPeerAfHoldTimeConfigured,
            bgpPeerAfKeepAliveConfigured,
            bgpPeerAfMinASOrigInterval,
            bgpPeerAfMinRouteAdverInterval,
            bgpPeerAfHoldTime,
            bgpPeerAfKeepAlive
        }

    bgpM2PeerConfedMember OBJECT-TYPE
	SYNTAX	    TruthValue
	MAX-ACCESS  read-only
        STATUS current
        DESCRIPTION
	    "This value indicates whether the given peer is in our
	     confederation or not."
	REFERENCE
	    "RFC 3065 -
            "Objects associated with BGP Confederations" peering timers."
        ::= { bgpM2PeerConfedMemberEntry 1 bgp4MIBGroups 10 }

    --
    -- Peer configuration objects
    --

    bgpM2PeerConfiguration
	OBJECT IDENTIFIER ::=

    bgpCountersGroup OBJECT-GROUP
        OBJECTS { bgpM2Peer 8
            bgpPeerAfInUpdates,
            bgpPeerAfOutUpdates,
            bgpPeerAfInTotalMessages,
            bgpPeerAfOutTotalMessages,
            bgpPeerAfFsmEstablishedTrans,
            bgpPrefixInPrefixes,
            bgpPrefixInPrefixesAccepted,
            bgpPrefixOutPrefixes
        }

    --
    -- Administering activated peering sessions
    --

    bgpM2CfgPeerAdminStatusTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2CfgPeerAdminStatusEntry
	MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Table containing rows for administratively starting
            "Objects to count discrete events and
	     stopping peering exchanges on BGP
             sessions."
         ::= { bgpM2PeerConfiguration 1 bgp4MIBGroups 11 }

    bgpAsPathGroup OBJECT-GROUP
        OBJECTS {
            bgpAsPathType,
            bgpAsPathElementValue
        }

    bgpM2CfgPeerAdminStatusEntry OBJECT-TYPE
	SYNTAX	   BgpM2CfgPeerAdminStatusEntry
	MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
	    "Entry containing row for administratively starting and
	     stopping peers."
	INDEX
            "Objects to report AS paths received on BGP NLRIs."
        ::= { bgp4MIBGroups 12 }

    bgpBaseGroup OBJECT-GROUP
        OBJECTS {
	    bgpM2PeerIndex
            bgpLocalAsNew
        }
        STATUS current
        DESCRIPTION
            "Basic objects in local BGP implementation."
        ::= { bgpM2CfgPeerAdminStatusTable 1 bgp4MIBGroups 13 }

    bgpErrorsGroup OBJECT-GROUP
        OBJECTS {
            bgpPeerAfLastErrorReceived,
            bgpPeerAfLastErrorReceivedData,
            bgpPeerAfLastErrorReceivedTime,
            bgpPeerAfLastErrorReceivedText,
            bgpPeerAfLastErrorSent,
            bgpPeerAfLastErrorSentData,
            bgpPeerAfLastErrorSentTime,
            bgpPeerAfLastErrorSentText
        }

    BgpM2CfgPeerAdminStatusEntry
        STATUS current
        DESCRIPTION
            "Errors received on BGP peering sessions."
        ::= SEQUENCE {
	bgpM2CfgPeerAdminStatus
	    INTEGER bgp4MIBGroups 14 }

    bgpM2CfgPeerAdminStatus OBJECT-TYPE
	SYNTAX	    INTEGER

    bgpPeerAfGroup OBJECT-GROUP
        OBJECTS {
	    stop(1),
	    start(2)
            bgpPeerAfIdentifier,
            bgpPeerAfPeerState,
            bgpPeerAfAdminStatus,
            bgpPeerAfConfiguredVersion,
            bgpPeerAfNegotiatedVersion,
            bgpPeerAfLocalPort,
            bgpPeerAfLocalAs,
            bgpPeerAfRemotePort,
            bgpPeerAfRemoteAs
        }
	MAX-ACCESS read-write
        STATUS current
        DESCRIPTION
	    "This
            "Core object allows the Manual Stop and Manual Start
	     events to be sent to an activated types on BGP peering session." sessions."
        ::= { bgpM2CfgPeerAdminStatusEntry 1 bgp4MIBGroups 15 }

    bgpAfPathAttributesGroup OBJECT-GROUP
        OBJECTS {
            bgpAfPathAttrCount,
            bgpAsPathCalcLength,
            bgpAsPathElementValue,
            bgpAsPathIndex,
            bgpAsPathString,
            bgpAsPathType,
            bgpNlriBest,
            bgpNlriCalcLocalPref,
            bgpAdjRibsOutRoute,
            bgpAfPathAttrAggregatorAS,
            bgpAfPathAttrAggregatorAddr,
            bgpAfPathAttrAtomicAggregate,
            bgpAfPathAttrIndex,
            bgpAfPathAttrLocalPref,
            bgpAfPathAttrMed,
            bgpAfPathAttrMedPresent,
            bgpAfPathAttrNextHop,
            bgpAfPathAttrNextHopAddrType,
            bgpAfPathAttrLinkLocalNextHop,
            bgpAfPathAttrOrigin,
            bgpAfPathAttrUnknownIndex,
            bgpAfPathAttrUnknownFlags,
            bgpAfPathAttrUnknownValue
        }
        STATUS current
        DESCRIPTION
            "Attributes received on BGP peering sessions."
        ::= { bgp4MIBGroups 16 }

    -- =========================================================
    --
    -- Objects that are deprecated from RFC 4273 follow below.
    -- Peer Configuration
    --
    bgpM2CfgPeerNextIndex =========================================================

    bgpLocalAs OBJECT-TYPE
        SYNTAX     Integer32 (0..65535)
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "This
                "The local autonomous system number.

                 This object contains the next appropriate value to
	     use as an index for creation of a row instance in
	     in the bgpM2CfgPeerTable.	If has been replaced with bgpLocalAsNew
                 which can accomodate 4-byte AS numbers.  When
                 the Local AS number of available
	     entries in the bgpM2CfgPeerTable is exhausted, cannot be represented by
                 a
	     retrieval value of 2-byte number, this object instance will should return
	     0.	 A value of 0 may also be returned if the agent
	     is otherwise incapable of bgpM2CfgPeerTable row creation
	     at the time of bgpM2CfgPeerNextIndex retrieval."
                 AS_TRANS value, 23456."
        REFERENCE
                 "RFC 4271, Section 4.2, 'My Autonomous System'.

                  RFC 4893, BGP Support for Four-octet AS Number
                  Space."
        ::= { bgpM2PeerConfiguration bgp 2 }

    bgpM2CfgPeerTable

    -- BGP Peer table.  This table contains, one entry per
    -- BGP peer, information about the BGP peer.

    bgpPeerTable OBJECT-TYPE
        SYNTAX     SEQUENCE OF BgpM2CfgPeerEntry BgpPeerEntry
        MAX-ACCESS not-accessible
        STATUS	   current     deprecated
        DESCRIPTION
                "BGP configuration peer table.  This table allows the configuration of contains,
                 one entry per BGP peer, information about the parameters
	     for a session
                 connections with a BGP peer.

	     +++wayne provide description of how config should be done
	     for a peer per table." peers.

                 This table has been replaced with BgpPeerAfTable."
        ::= { bgpM2PeerConfiguration bgp 3 }

    bgpM2CfgPeerEntry

    bgpPeerEntry OBJECT-TYPE
        SYNTAX	   BgpM2CfgPeerEntry     BgpPeerEntry
        MAX-ACCESS not-accessible
        STATUS	   current     deprecated
        DESCRIPTION
                "Entry containing information set up by a management
	     entity to configure a about the
                 connection with a BGP peer."
        INDEX { bgpM2CfgPeerIndex bgpPeerRemoteAddr }
        ::= { bgpM2CfgPeerTable bgpPeerTable 1 }

    BgpM2CfgPeerEntry

    BgpPeerEntry ::= SEQUENCE {
	bgpM2CfgPeerConfiguredVersion
	    Unsigned32,
	bgpM2CfgAllowVersionNegotiation
	    TruthValue,
	bgpM2CfgPeerLocalAddrType
	    InetAddressType,
	bgpM2CfgPeerLocalAddr
	    InetAddress,
	bgpM2CfgPeerLocalAs
	    InetAutonomousSystemNumber,
	bgpM2CfgPeerRemoteAddrType
	    InetAddressType,
	bgpM2CfgPeerRemoteAddr
	    InetAddress,
	bgpM2CfgPeerRemoteAs
	    InetAutonomousSystemNumber,
	bgpM2CfgPeerEntryStorageType
	    StorageType,
	bgpM2CfgPeerError
            bgpPeerIdentifier
                IpAddress,
            bgpPeerState
                INTEGER,
	bgpM2CfgPeerBgpPeerEntry
	    RowPointer,
	bgpM2CfgPeerRowEntryStatus
	    RowStatus,
	bgpM2CfgPeerIndex
            bgpPeerAdminStatus
                INTEGER,
            bgpPeerNegotiatedVersion
                Integer32,
	bgpM2CfgPeerStatus
	    INTEGER
            bgpPeerLocalAddr
                IpAddress,
            bgpPeerLocalPort
                Integer32,
            bgpPeerRemoteAddr
                IpAddress,
            bgpPeerRemotePort
                Integer32,
            bgpPeerRemoteAs
                Integer32,
            bgpPeerInUpdates
                Counter32,
            bgpPeerOutUpdates
                Counter32,
            bgpPeerInTotalMessages
                Counter32,
            bgpPeerOutTotalMessages
                Counter32,
            bgpPeerLastError
                OCTET STRING,
            bgpPeerFsmEstablishedTransitions
                Counter32,
            bgpPeerFsmEstablishedTime
                Gauge32,
            bgpPeerConnectRetryInterval
                Integer32,
            bgpPeerHoldTime
                Integer32,
            bgpPeerKeepAlive
                Integer32,
            bgpPeerHoldTimeConfigured
                Integer32,
            bgpPeerKeepAliveConfigured
                Integer32,
            bgpPeerMinASOriginationInterval
                Integer32,
            bgpPeerMinRouteAdvertisementInterval
                Integer32,
            bgpPeerInUpdateElapsedTime
                Gauge32
            }

    bgpM2CfgPeerConfiguredVersion

    bgpPeerIdentifier OBJECT-TYPE
        SYNTAX	   Unsigned32 (1..255)     IpAddress
        MAX-ACCESS read-create read-only
        STATUS	   current     deprecated
        DESCRIPTION
                "The configured version to originally start with
	     this peer.	 The BGP speaker may permit negotiation
	     to a lower version number Identifier of this entry's BGP peer.
                 This entry MUST be 0.0.0.0 unless the protocol depending on
                 bgpPeerState is in the
	     set value of bgpM2CfgAllowVersionNegotiation."
	DEFVAL	   { 4 } openconfirm or the
                 established state."
        REFERENCE
                "RFC 4271, Section 4.2, 'BGP Identifier'."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 1 }

    bgpM2CfgAllowVersionNegotiation

    bgpPeerState OBJECT-TYPE
        SYNTAX	   TruthValue
	MAX-ACCESS read-create
	STATUS	   current
	DESCRIPTION
	    "If set to true, during session establishment with this
	     peer, negotiation to a version lower than that specified
	     in bgpM2CfgPeerConfiguredVersion will be allowed."
	DEFVAL { false }
	::=     INTEGER { bgpM2CfgPeerEntry 2
                            idle(1),
                            connect(2),
                            active(3),
                            opensent(4),
                            openconfirm(5),
                            established(6)
                   }

    bgpM2CfgPeerLocalAddrType OBJECT-TYPE
	SYNTAX	   InetAddressType
        MAX-ACCESS read-create read-only
        STATUS	   current     deprecated
        DESCRIPTION
                "The address family of the speakers of this BGP
	     session." peer connection state."
        REFERENCE
                "RFC 4271, Section 8.2.2."
        ::= { bgpM2CfgPeerEntry 3 bgpPeerEntry 2 }

    bgpM2CfgPeerLocalAddr

    bgpPeerAdminStatus OBJECT-TYPE
        SYNTAX	   InetAddress (SIZE (4..20))     INTEGER {
                            stop(1),
                            start(2)
                   }
        MAX-ACCESS read-create read-write
        STATUS	   current     deprecated
        DESCRIPTION
                "The address of the local end desired state of the peering session."
	::= { bgpM2CfgPeerEntry 4 }

    bgpM2CfgPeerLocalAs OBJECT-TYPE
	SYNTAX	   InetAutonomousSystemNumber
	MAX-ACCESS read-create
	STATUS	   current
	DESCRIPTION
	    "Autonomous system represented BGP connection.
                 A transition from 'stop' to peer on peering
	     session initialization.  Some implementations of 'start' will cause
                 the BGP Manual Start Event to be generated.
                 A transition from 'start' to 'stop' will cause
                 the BGP Manual Stop Event to be generated.
                 This parameter can represent themselves as multiple ASes.
	     These implementations can set this be used to restart BGP peer
                 connections.  Care should be used in providing
                 write access to an alternate
	     autonomous system.	 If this object is set to without adequate
                 authentication."
        REFERENCE
                "RFC 4271, Section 8.1.2."
        ::= { bgpPeerEntry 3 }

    bgpPeerNegotiatedVersion OBJECT-TYPE
        SYNTAX     Integer32
        MAX-ACCESS read-only
        STATUS     deprecated
        DESCRIPTION
                "The negotiated version of BGP running between
                 the two peers.

                 This entry MUST be zero (0) at unless the point this row instance
                 bgpPeerState is set to active,
	     then in the implementation will initialize this session
	     representing itself as openconfirm or the value of bgpM2CfgLocalAs."
	DEFVAL {
                 established state.

                 Note that legal values for this object are
                 between 0 } and 255."
        REFERENCE
                "RFC 4271, Section 4.2.
                 RFC 4271, Section 7."
        ::= { bgpM2CfgPeerEntry 5 bgpPeerEntry 4 }

    bgpM2CfgPeerRemoteAddrType

    bgpPeerLocalAddr OBJECT-TYPE
        SYNTAX	   InetAddressType     IpAddress
        MAX-ACCESS read-create read-only
        STATUS	   current     deprecated
        DESCRIPTION
                "The local IP address family of this entry's BGP
                 connection."
        ::= { bgpPeerEntry 5 }

    bgpPeerLocalPort OBJECT-TYPE
        SYNTAX     Integer32 (0..65535)
        MAX-ACCESS read-only
        STATUS     deprecated
        DESCRIPTION
                "The local port for the speakers of TCP connection between
                 the remote BGP
	     session." peers."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 6 }
    bgpM2CfgPeerRemoteAddr

    bgpPeerRemoteAddr OBJECT-TYPE
        SYNTAX	    InetAddress (SIZE(4..20))     IpAddress
        MAX-ACCESS  read-create read-only
        STATUS	    current     deprecated
        DESCRIPTION
                "The address of the remote end (destination IP address of peer) for peering session." this entry's BGP
                 peer."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 7 }

    bgpM2CfgPeerRemoteAs

    bgpPeerRemotePort OBJECT-TYPE
        SYNTAX	   InetAutonomousSystemNumber     Integer32 (0..65535)
        MAX-ACCESS read-create read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "Autonomous system number of the
                "The remote peer." port for the TCP connection
                 between the BGP peers.  Note that the
                 objects bgpPeerLocalAddr,
                 bgpPeerLocalPort, bgpPeerRemoteAddr, and
                 bgpPeerRemotePort provide the appropriate
                 reference to the standard MIB TCP
                 connection table."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 8 }

    bgpM2CfgPeerEntryStorageType

    bgpPeerRemoteAs OBJECT-TYPE
        SYNTAX	   StorageType     Integer32 (0..65535)
        MAX-ACCESS read-create read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "This object type specifies the intended storage
	     type for
                "The remote autonomous system number received in
                 the bgpM2CfgPeerEntry row instance." BGP OPEN message."
        REFERENCE
                "RFC 4271, Section 4.2."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 9 }

    bgpM2CfgPeerError

    bgpPeerInUpdates OBJECT-TYPE
        SYNTAX	    INTEGER {
	    unknown(0),
	    notActivated (1),
	    errDuplicatePeeringSession (2),
	    activated (3)
	    -- +++wayne more to follow
	}     Counter32
        MAX-ACCESS read-only
        STATUS	    current     deprecated
        DESCRIPTION
	    "This value indicates the current error status
                "The number of
	     the row denoting the configured error status.

	     If this row is still under creation (has not been activated
	     bgpM2CfgPeerRowEntryStatus), then this instance will be set to
	     not-activated (1).

	     At the point that the row is activated, bgpM2CfgPeerError
	     will reflect the error status of the row data itself.  If
	     there is another session already activated with the same
	     local and remote addresses as denoted by
	     {bgpM2CfgPeerLocalAddrType, bgpM2CfgPeerLocalAddr,
	     bgpM2CfgPeerRemoteAddr}, then
	     the value of this will be set to
	     err-duplicate-peering-session (2).

	     If this row is associated with a peer session whose
	     initialization has been attempted, the value will be
	     set to activated (3) (and, bgpM2PeerCfgPeerEntry will
	     be set to the row instance of the entry in the
	     bgpM2PeerTable which reflects the state of the peering
	     session).

	     Note that this object only reflects the error as a
	     function of the attempted activation of this row as
	     containing data for a bgp peering session.	 The actual
	     state of the session at the point of any protocol exchange
	     or session state machine initiation is reflected in the
	     bgpM2PeerTable row instance (as reflected through
	     bgpM2CfgPeerPeerEntry) associated with BGP UPDATE messages
                 received on this row instance." connection."
        REFERENCE
                "RFC 4271, Section 4.3."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 10 }

    bgpM2CfgPeerBgpPeerEntry

    bgpPeerOutUpdates OBJECT-TYPE
        SYNTAX	    RowPointer     Counter32
        MAX-ACCESS read-only
        STATUS	    current     deprecated
        DESCRIPTION
	    "Upon activation of the session data contained in this
	     row instance, this object points to an instance of a row
	     within the bgpM2PeerTable reflecting the session in its
	     initializing or operational state.	 Retrieval
                "The number of BGP UPDATE messages
                 transmitted on this
	     column instance will always yield a value of {0.0} unless
	     the session has successfully been activated (via
	     bgpM2CfgPeerRowEntryStatus).  Such row instances will always
	     have a value of bgpM2CfgPeerError which is activated (3)." connection."
        REFERENCE
                "RFC 4271, Section 4.3."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 11 }

    bgpM2CfgPeerRowEntryStatus

    bgpPeerInTotalMessages OBJECT-TYPE
        SYNTAX	   RowStatus     Counter32
        MAX-ACCESS read-create read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "This object type is used to control creation,
	     activation, and deletion
                "The total number of messages received
                 from the remote peer on this row instance."
	    -- +++wayne need better directions for agent auto-removal
	    -- of row instances which have moved to active or error
	    -- state connection."
        REFERENCE
                "RFC 4271, Section 4."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 12 }

    bgpM2CfgPeerIndex

    bgpPeerOutTotalMessages OBJECT-TYPE
        SYNTAX	   Integer32 (1..65535)     Counter32
        MAX-ACCESS accessible-for-notify read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "Uniquely identifies an instance
                "The total number of a messages transmitted to
                 the remote peer row, as
	     an element of configuration." on this connection."
        REFERENCE
                "RFC 4271, Section 4."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 13 }

    bgpM2CfgPeerStatus

    bgpPeerLastError OBJECT-TYPE
        SYNTAX	    INTEGER {
	    halted(1),
	    running(2)
	}     OCTET STRING (SIZE (2))
        MAX-ACCESS read-create read-only
        STATUS	current     deprecated
        DESCRIPTION
	     "This specifies the state of the peering session upon
	      activation.
                "The last error code and subcode seen by this
                 peer on this connection.  If disabled, the FSM no error has
                 occurred, this field is in zero.  Otherwise, the halted
	      state
                 first byte of this two byte OCTET STRING
                 contains the error code, and no Automatic Start events are generated.
	      If enabled, the FSM is in second byte
                 contains the running state and
	      Automatic Start events may be generated." subcode."
        REFERENCE
                "RFC 4271, Section 4.5."
        ::= { bgpM2CfgPeerEntry bgpPeerEntry 14 }

    --
    -- Per-peer timers table
    --

    bgpM2CfgPeerTimersTable

    bgpPeerFsmEstablishedTransitions OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM2CfgPeerTimersEntry     Counter32
        MAX-ACCESS not-accessible read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "Table for configuration
                "The total number of per-peer timers." times the BGP FSM
                 transitioned into the established state
                 for this peer."
        REFERENCE
                "RFC 4271, Section 8."
        ::= {  bgpM2PeerConfiguration 4 bgpPeerEntry 15 }

    bgpM2CfgPeerTimersEntry

    bgpPeerFsmEstablishedTime OBJECT-TYPE
        SYNTAX	    BgpM2CfgPeerTimersEntry     Gauge32
        UNITS      "seconds"
        MAX-ACCESS not-accessible read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "Entry containing per-peer
                "This timer configuration."
	AUGMENTS {
	    bgpM2CfgPeerEntry
	}
	::= { bgpM2CfgPeerTimersTable 1 }

    BgpM2CfgPeerTimersEntry indicates how long (in
                 seconds) this peer has been in the
                 established state or how long
                 since this peer was last in the
                 established state.  It is set to zero when
                 a new peer is configured or when the router is
                 booted."
        REFERENCE
                "RFC 4271, Section 8."
        ::= SEQUENCE {
	bgpM2CfgPeerConnectRetryInterval
	    Unsigned32,
	bgpM2CfgPeerHoldTimeConfigured
	    Unsigned32,
	bgpM2CfgPeerKeepAliveConfigured
	    Unsigned32,
	bgpM2CfgPeerMinASOrigInterval
	    Unsigned32,
	bgpM2CfgPeerMinRouteAdverInter
	    Unsigned32 bgpPeerEntry 16 }

    bgpM2CfgPeerConnectRetryInterval

    bgpPeerConnectRetryInterval OBJECT-TYPE
        SYNTAX	   Unsigned32     Integer32 (1..65535)
        UNITS      "seconds"
        MAX-ACCESS read-create read-write
        STATUS	   current     deprecated
        DESCRIPTION
                "Time interval in seconds (in seconds) for the
                 ConnectRetry timer.  The suggested value
                 for this timer is 120 seconds."
	DEFVAL {
	    120
	}
        REFERENCE
                "RFC 4271, Section 8.2.2.  This is the value used
                 to initialize the 'ConnectRetryTimer'."
        ::= { bgpM2CfgPeerTimersEntry 1 bgpPeerEntry 17 }

    bgpM2CfgPeerHoldTimeConfigured

    bgpPeerHoldTime OBJECT-TYPE
        SYNTAX	   Unsigned32     Integer32  ( 0 | 3..65535 )
        UNITS      "seconds"
        MAX-ACCESS read-create read-only
        STATUS	   current     deprecated
        DESCRIPTION
                "Time interval in seconds (in seconds) for the Hold Time configured
	     for this BGP speaker
                 Timer established with this the peer.  This  The
                 value
	     is placed of this object is calculated by this
                 BGP speaker, using the smaller of the
                 values in bgpPeerHoldTimeConfigured and the
                 Hold Time received in the OPEN message.

                 This value must be at least three seconds
                 if it is not zero (0).

                 If the Hold Timer has not been established
                 with the peer this object MUST have a value
                 of zero (0).

                 If the bgpPeerHoldTimeConfigured object has
                 a value of (0), then this object MUST have a
                 value of (0)."
        REFERENCE
                "RFC 4271, Section 4.2."
        ::= { bgpPeerEntry 18 }

    bgpPeerKeepAlive OBJECT-TYPE
        SYNTAX     Integer32 ( 0 | 1..21845 )
        UNITS      "seconds"
        MAX-ACCESS read-only
        STATUS     deprecated
        DESCRIPTION
                "Time interval (in seconds) for the KeepAlive
                 timer established with the peer.  The value
                 of this object is calculated by this BGP
                 speaker such that, when compared with
                 bgpPeerHoldTime, it has the same proportion
                 that bgpPeerKeepAliveConfigured has,
                 compared with bgpPeerHoldTimeConfigured.

                 If the KeepAlive timer has not been established
                 with the peer, this object MUST have a value
                 of zero (0).

                 If the of bgpPeerKeepAliveConfigured object
                 has a value of (0), then this object MUST have
                 a value of (0)."
        REFERENCE
                "RFC 4271, Section 4.4."
        ::= { bgpPeerEntry 19 }

    bgpPeerHoldTimeConfigured OBJECT-TYPE
        SYNTAX     Integer32 ( 0 | 3..65535 )
        UNITS      "seconds"
        MAX-ACCESS read-write
        STATUS     deprecated
        DESCRIPTION
                "Time interval (in seconds) for the Hold Time
                 configured for this BGP speaker with this
                 peer.  This value is placed in an OPEN
                 message sent to this peer by this BGP
                 speaker, and is compared with the Hold
                 Time field in an OPEN message received
                 from the peer when determining the Hold
                 Time (bgpM2PeerHoldTime) (bgpPeerHoldTime) with the peer.
                 This value must not be less than three
                 seconds if it is not zero (0) in which case (0).  If it is
                 zero (0), the Hold Time is NOT to be
                 established with the peer.  The suggested
                 value for this timer is 90 seconds."
        REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Appendix 6.4"
	DEFVAL {
	    90
	}
                "RFC 4271, Section 4.2.
                 RFC 4271, Section 10."
        ::= { bgpM2CfgPeerTimersEntry 2 bgpPeerEntry 20 }

    bgpM2CfgPeerKeepAliveConfigured

    bgpPeerKeepAliveConfigured OBJECT-TYPE
        SYNTAX	   Unsigned32     Integer32 ( 0 | 1..21845 )
        UNITS      "seconds"
        MAX-ACCESS read-create read-write
        STATUS	   current     deprecated
        DESCRIPTION
                "Time interval in seconds (in seconds) for the
                 KeepAlive timer configured for this BGP
                 speaker with this peer.  The value of this
                 object will only determine the
                 KEEPALIVE messages messages' frequency relative to
                 the value specified in bgpM2PeerHoldTimeConfigured;
                 bgpPeerHoldTimeConfigured; the actual
                 time interval for the KEEPALIVE messages is
                 indicated by bgpM2PeerKeepAlive. bgpPeerKeepAlive.  A
                 reasonable maximum value for this timer
                 would be configured to be one third of that of bgpM2PeerHoldTimeConfigured.
                 bgpPeerHoldTimeConfigured.
                 If the value of this object is zero (0),
                 no
	     periodical periodic KEEPALIVE messages are sent
                 to the peer after the BGP connection has
                 been established.  The suggested value for
                 this timer is 30 seconds."
        REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Appendix 6.4"
	DEFVAL {
	    30
	}
                "RFC 4271, Section 4.4.
                 RFC 4271, Section 10."
        ::= { bgpM2CfgPeerTimersEntry 3 bgpPeerEntry 21 }

    bgpM2CfgPeerMinASOrigInterval

    bgpPeerMinASOriginationInterval OBJECT-TYPE
        SYNTAX	   Unsigned32 (0..65535)     Integer32 (1..65535)
        UNITS      "seconds"
        MAX-ACCESS read-create read-write
        STATUS	   current     deprecated
        DESCRIPTION
                "Time interval in seconds (in seconds) for the
                 MinASOriginationInterval timer.
                 The suggested value for this timer is 15
                 seconds."
	DEFVAL {
	    15
	}
        REFERENCE
                "RFC 4271, Section 9.2.1.2.
                 RFC 4271, Section 10."
        ::= { bgpM2CfgPeerTimersEntry 4 bgpPeerEntry 22 }

    bgpM2CfgPeerMinRouteAdverInter

    bgpPeerMinRouteAdvertisementInterval OBJECT-TYPE
        SYNTAX	   Unsigned32 (0..65535)     Integer32 (1..65535)
        UNITS      "seconds"
        MAX-ACCESS read-create read-write
        STATUS	   current     deprecated
        DESCRIPTION
                "Time interval in seconds (in seconds) for the
                 MinRouteAdvertisementInterval timer.
                 The suggested value for this timer is 30 seconds."
	DEFVAL {
	    30
	}
	::= { bgpM2CfgPeerTimersEntry 5 }

    --
    -- Per-peer configuration extensions
    --

    bgpM2CfgPeerExtensions
	OBJECT IDENTIFIER ::= { bgpM2PeerConfiguration
                 seconds for EBGP connections and 5 }

    bgpM2CfgPeerNonCapExts
	OBJECT IDENTIFIER
                 seconds for IBGP connections."
        REFERENCE
                "RFC 4271, Section 9.2.1.1.
                 RFC 4271, Section 10."
        ::= { bgpM2CfgPeerExtensions 1 bgpPeerEntry 23 }

    bgpM2CfgPeerCapExts
	OBJECT IDENTIFIER

    bgpPeerInUpdateElapsedTime OBJECT-TYPE
        SYNTAX     Gauge32
        UNITS      "seconds"
        MAX-ACCESS read-only
        STATUS     deprecated
        DESCRIPTION
                "Elapsed time (in seconds) since the last BGP
                 UPDATE message was received from the peer.
                 Each time bgpPeerInUpdates is incremented,
                 the value of this object is set to zero (0)."
        REFERENCE
                "RFC 4271, Section 4.3.
                 RFC 4271, Section 8.2.2, Established state."
        ::= { bgpM2CfgPeerExtensions 2 bgpPeerEntry 24 }

    -- BGP Received Path Attribute Table.  This table contains
    -- Peer route reflection configuration one entry per path to a network, and path attributes
    --

    bgpM2CfgPeerRouteReflectionExts
	OBJECT IDENTIFIER ::= { bgpM2CfgPeerNonCapExts 2796 }

    bgpM2CfgPeerReflectorClientTable received from all peers running BGP version 3 or less.
    -- This table is obsolete, having been replaced in
    -- functionality by the bgp4PathAttrTable.

    bgpRcvdPathAttrTable OBJECT-TYPE
        SYNTAX     SEQUENCE OF BgpM2CfgPeerReflectorClientEntry BgpPathAttrEntry
        MAX-ACCESS not-accessible
        STATUS	   current     obsolete
        DESCRIPTION
	    "Table of route reflection client settings on a per-peer
	     basis."
	REFERENCE
	    "RFC 2796 -
                "The BGP Route Reflection" Received Path Attribute Table
                 contains information about paths to
                 destination networks, received from all
                 peers running BGP version 3 or less."
        ::= { bgpM2CfgPeerRouteReflectionExts 1 bgp 5 }

    bgpM2CfgPeerReflectorClientEntry
    bgpPathAttrEntry OBJECT-TYPE
        SYNTAX	   BgpM2CfgPeerReflectorClientEntry     BgpPathAttrEntry
        MAX-ACCESS not-accessible
        STATUS	   current     obsolete
        DESCRIPTION
	    "Entry containing data on
                "Information about a per-peer basis on whether
	     the peer is configured as path to a route reflector client."
	REFERENCE
	    "RFC 2796 - BGP Route Reflection"
	AUGMENTS network."
        INDEX {
	    bgpM2CfgPeerEntry bgpPathAttrDestNetwork,
                bgpPathAttrPeer        }
        ::= { bgpM2CfgPeerReflectorClientTable bgpRcvdPathAttrTable 1 }

    BgpM2CfgPeerReflectorClientEntry

    BgpPathAttrEntry ::= SEQUENCE {
	bgpM2CfgPeerReflectorClient
	    INTEGER
        bgpPathAttrPeer
             IpAddress,
        bgpPathAttrDestNetwork
             IpAddress,
        bgpPathAttrOrigin
             INTEGER,
        bgpPathAttrASPath
             OCTET STRING,
        bgpPathAttrNextHop
             IpAddress,
        bgpPathAttrInterASMetric
             Integer32
    }

    bgpM2CfgPeerReflectorClient

    bgpPathAttrPeer OBJECT-TYPE
        SYNTAX	  INTEGER {
	    nonClient(0),
	    client(1),
	    meshedClient(2)
	}     IpAddress
        MAX-ACCESS  read-create read-only
        STATUS	    current     obsolete
        DESCRIPTION
	    "This value indicates whether the given peer is a
	     reflector client of this router, or not.  A value of
	     nonClient indicates that this peer is not a reflector
	     client.  A value of client indicates that this peer is a
	     reflector client that is not fully meshed with other
	     reflector clients.	 A value
                "The IP address of meshedClient indicates
	     that the peer is a reflector client and is fully meshed
	     with all other reflector clients.

	     This value must be nonClient (0) for BGP external peers."
	REFERENCE
	    "RFC 2796 - BGP Route Reflection" where the path
                 information was learned."
        ::= { bgpM2CfgPeerReflectorClientEntry bgpPathAttrEntry 1 }

    --
    -- Peer AS Confederations Extensions
    --

    bgpM2CfgPeerASConfederationExts
	OBJECT IDENTIFIER

    bgpPathAttrDestNetwork OBJECT-TYPE
        SYNTAX     IpAddress
        MAX-ACCESS read-only
        STATUS     obsolete
        DESCRIPTION
                "The address of the destination network."
        REFERENCE
                "RFC 1267, Section 4.3."
        ::= { bgpM2CfgPeerNonCapExts 3065 bgpPathAttrEntry 2 }

    bgpM2CfgPeerConfedMemberTable

    bgpPathAttrOrigin OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM2CfgPeerConfedMemberEntry     INTEGER {
                       igp(1),-- networks are interior
                       egp(2),-- networks learned via the
                              -- EGP protocol
                       incomplete(3) -- networks that
                              -- are learned by some other
                              -- means
                   }
        MAX-ACCESS not-accessible read-only
        STATUS	   current     obsolete
        DESCRIPTION
	    "Table
                "The ultimate origin of confederation member settings on a per-peer
	     basis." the path information."
        REFERENCE
                "RFC 3065 - BGP Confederations" 1267, Section 4.3.
                 RFC 1267, Section 5."
        ::= { bgpM2CfgPeerASConfederationExts 1 bgpPathAttrEntry 3 }

    bgpM2CfgPeerConfedMemberEntry

    bgpPathAttrASPath OBJECT-TYPE
        SYNTAX	   BgpM2CfgPeerConfedMemberEntry     OCTET STRING (SIZE (2..255))
        MAX-ACCESS not-accessible read-only
        STATUS	   current     obsolete
        DESCRIPTION
	    "Entry containing data on a per-peer basis on whether
                "The set of ASes that must be traversed to reach
                 the peer network.  This object is configured probably best
                 represented as SEQUENCE OF INTEGER.  For SMI
                 compatibility, though, it is represented as
                 OCTET STRING.  Each AS is represented as a BGP confederation member." pair
                 of octets according to the following algorithm:

                    first-byte-of-pair = ASNumber / 256;
                    second-byte-of-pair = ASNumber & 255;"
        REFERENCE
                "RFC 3065 - BGP Confederations"
	AUGMENTS {
	    bgpM2PeerEntry
	}
	::= { bgpM2CfgPeerConfedMemberTable 1 }

    BgpM2CfgPeerConfedMemberEntry 1267, Section 4.3.
                 RFC 1267, Section 5."
        ::= SEQUENCE {
	bgpM2CfgPeerConfedMember
	    TruthValue bgpPathAttrEntry 4 }

    bgpM2CfgPeerConfedMember

    bgpPathAttrNextHop OBJECT-TYPE
        SYNTAX	    TruthValue     IpAddress
        MAX-ACCESS  read-create read-only
        STATUS	    current     obsolete
        DESCRIPTION
	    "This value indicates whether
                "The address of the given peer is in our
	     confederation or not." border router that should
                 be used for the destination network."
        REFERENCE
                "RFC 3065 - BGP Confederations"
	::= { bgpM2CfgPeerConfedMemberEntry 1 }

    --
    -- BGP NLRI Data
    --

    bgpM2Rib
	OBJECT IDENTIFIER 1267, Section 4.3.
                 RFC 1267, Section 5."
        ::= { bgpM2 3 bgpPathAttrEntry 5 }

    --
    -- NLRI Table
    --

    bgpM2NlriTable

    bgpPathAttrInterASMetric OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM2NlriEntry     Integer32
        MAX-ACCESS not-accessible read-only
        STATUS	   current     obsolete
        DESCRIPTION
                "The optional inter-AS metric.  If this
                 attribute has not been provided for this route,
                 the value for this object is 0."
        REFERENCE
                "RFC 1267, Section 4.3.
                 RFC 1267, Section 5."
        ::= { bgpPathAttrEntry 6 }

    -- BGP-4 Received Path Attribute Table Table.  This table
    -- contains
	     information about paths to destination networks one entry per path to a network, and path
    -- attributes received from all peers running BGP-4.

    bgp4PathAttrTable OBJECT-TYPE
        SYNTAX     SEQUENCE OF Bgp4PathAttrEntry
        MAX-ACCESS not-accessible
        STATUS     deprecated
        DESCRIPTION
                "The BGP-4 Received Path Attribute Table
                 contains information about paths to
                 destination networks, received from all
                 BGP4 peers.  Collectively, this
	     represents the Adj-Ribs-In.  The route where
	     bgpM2NlriBest is TRUE represents, for this NLRI,
	     the route that is installed in

                 This table has been replaced by the LocRib from functionality
                 provided under the
	     Adj-Ribs-In." bgpRib OID."
        ::= { bgpM2Rib 1 bgp 6 }

    bgpM2NlriEntry

    bgp4PathAttrEntry OBJECT-TYPE
        SYNTAX	   BgpM2NlriEntry     Bgp4PathAttrEntry
        MAX-ACCESS not-accessible
        STATUS	   current     deprecated
        DESCRIPTION
                "Information about a path to a network."
        INDEX {
	    bgpM2PeerIndex,
	    bgpM2NlriAfi,
	    bgpM2NlriSafi,
	    bgpM2NlriPrefix,
	    bgpM2NlriPrefixLen,
	    bgpM2NlriIndex bgp4PathAttrIpAddrPrefix,
                bgp4PathAttrIpAddrPrefixLen,
                bgp4PathAttrPeer            }
        ::= { bgpM2NlriTable bgp4PathAttrTable 1 }

    BgpM2NlriEntry

    Bgp4PathAttrEntry ::= SEQUENCE {
	bgpM2NlriIndex
	    Unsigned32,
	bgpM2NlriAfi
	    BgpM2Afi,
	bgpM2NlriSafi
	    BgpM2Safi,
     bgpM2NlriPrefixType
	 InetAddressType,
	bgpM2NlriPrefix
	    InetAddress,
	bgpM2NlriPrefixLen
	    InetAddressPrefixLength,
	bgpM2NlriBest
	    TruthValue,
	bgpM2NlriCalcLocalPref
	    Unsigned32,
	bgpM2PathAttrIndex
	    Unsigned32,
	bgpM2NlriOpaqueType
        bgp4PathAttrPeer
             IpAddress,
        bgp4PathAttrIpAddrPrefixLen
             Integer32,
        bgp4PathAttrIpAddrPrefix
             IpAddress,
        bgp4PathAttrOrigin
             INTEGER,
	bgpM2NlriOpaquePointer
	    RowPointer
        bgp4PathAttrASPathSegment
             OCTET STRING,
        bgp4PathAttrNextHop
             IpAddress,
        bgp4PathAttrMultiExitDisc
             Integer32,
        bgp4PathAttrLocalPref
             Integer32,
        bgp4PathAttrAtomicAggregate
             INTEGER,
        bgp4PathAttrAggregatorAS
             Integer32,
        bgp4PathAttrAggregatorAddr
             IpAddress,
        bgp4PathAttrCalcLocalPref
             Integer32,
        bgp4PathAttrBest
             INTEGER,
        bgp4PathAttrUnknown
             OCTET STRING
    }

    bgpM2NlriIndex

    bgp4PathAttrPeer OBJECT-TYPE
        SYNTAX	   Unsigned32     IpAddress
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "This index allows for multiple instances
                "The IP address of a base
	     prefix for a certain AFI SAFI from a given peer.
	     This is currently useful for two things:
	     1. Allowing for a peer in future implementations to
		send more than a single route instance.
	     2. Allow for extensions which extend the NLRI field
		to send peer where the same prefix while utilizing other
		extension specific information.	 An example of
		this is RFC 3107 - Carrying MPLS labels in BGP."
	REFERENCE
	    "RFC 3107 - Carrying Label Information in BGP-4" path
                 information was learned."
        ::= { bgpM2NlriEntry bgp4PathAttrEntry 1 }
    bgpM2NlriAfi

    bgp4PathAttrIpAddrPrefixLen OBJECT-TYPE
        SYNTAX	   BgpM2Afi     Integer32 (0..32)
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "The address family
                "Length in bits of the prefix for this NLRI."
	::= { bgpM2NlriEntry 2 }

    bgpM2NlriSafi OBJECT-TYPE
	SYNTAX	   BgpM2Safi
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "The subsequent IP address family of the prefix for
	     this NLRI"
	REFERENCE
	    "RFC 2858 - Multiprotocol Extensions for BGP-4" in
                 the Network Layer Reachability
                 Information field."
        ::= { bgpM2NlriEntry 3 bgp4PathAttrEntry 2 }

    bgpM2NlriPrefixType

    bgp4PathAttrIpAddrPrefix OBJECT-TYPE
        SYNTAX	   InetAddressType     IpAddress
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "The type of the
                "An IP address prefix in the Network Layer
                 Reachability Information field.
	  The value of this  This object
                 is derived from the
	  appropriate value from the bgpM2NlriAfi field.
	  Where an appropriate InetAddressType is not
	  available, the value of the object must be
	  unknown(0).

	  XXX TODO - This seems like a hack."
	::= { bgpM2NlriEntry 4 }

    bgpM2NlriPrefix OBJECT-TYPE
	SYNTAX	   InetAddress	(SIZE (4..20))
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "An IP address prefix in the Network Layer
	     Reachability Information field.  This object
	     is an IP address containing IP address containing the prefix with
                 length specified by
	     bgpM2PathAttrAddrPrefixLen.
                 bgp4PathAttrIpAddrPrefixLen.
                 Any bits beyond the length specified by
	     bgpM2PathAttrAddrPrefixLen
                 bgp4PathAttrIpAddrPrefixLen are zeroed."
        REFERENCE
                "RFC 4271, Section 4.3."
        ::= { bgpM2NlriEntry 5 bgp4PathAttrEntry 3 }

    bgpM2NlriPrefixLen

    bgp4PathAttrOrigin OBJECT-TYPE
        SYNTAX	   InetAddressPrefixLength
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "Length in bits of the address prefix in
	     the Network Layer Reachability Information field."
	::=     INTEGER { bgpM2NlriEntry 6
                       igp(1),-- networks are interior
                       egp(2),-- networks learned via the
                              -- EGP protocol
                       incomplete(3) -- networks that
                              -- are learned by some other
                              -- means
                   }

    bgpM2NlriBest OBJECT-TYPE
	SYNTAX	   TruthValue
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "An indication
                "The ultimate origin of whether or not this route
	     was chosen as the best BGP4 route." path
                 information."
        REFERENCE
                "RFC 4271, Section 4.3.
                 RFC 4271, Section 5.1.1."
        ::= { bgpM2NlriEntry 7 bgp4PathAttrEntry 4 }

    bgpM2NlriCalcLocalPref

    bgp4PathAttrASPathSegment OBJECT-TYPE
        SYNTAX	   Unsigned32     OCTET STRING (SIZE (2..255))
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
                "The degree sequence of preference calculated AS path segments.  Each AS
                 path segment is represented by the
	     receiving BGP4 speaker for an advertised
	     route."
	::= { bgpM2NlriEntry 8 }

    bgpM2PathAttrIndex OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This value a triple
                 <type, length, value>.

                 The type is a unique index for 1-octet field that has two
                 possible values:
                     1      AS_SET: unordered set of ASes that a
                                 route in the per-NLRI entry UPDATE message
                                 has traversed

                     2      AS_SEQUENCE: ordered set of ASes that
                                 a route in the bgpM2PathAttrTable.	 It UPDATE message
                                 has traversed.

                 The length is assigned by the
	     agent at a 1-octet field containing the point of creation
                 number of ASes in the bgpM2PathAttrTable
	     row entry.	 While its value is guaranteed to be unique
	     at any time, it is otherwise opaque to the management
	     application with respect to its field.

                 The value field contains one or more AS
                 numbers.  Each AS is represented in the contiguity octet
                 string as a pair of bgpM2PathAttrIndex row instance values across rows
	     of the bgpM2PeerAttrTable.	 It is used octets according to provide an
	     index structure for other tables whose data is logically
	     per-peer, per-NLRI." the
                 following algorithm:

                    first-byte-of-pair = ASNumber / 256;
                    second-byte-of-pair = ASNumber & 255;

                 Known Issues:
                 o BGP Confederations will result in
                   a type of either 3 or 4.
                 o An AS Path may be longer than 255 octets.
                   This may result in this object containing
                   a truncated AS Path."
        REFERENCE
                "RFC 4271, Section 4.3.
                 RFC 4271, Section 5.1.2."
        ::= { bgpM2NlriEntry 9 bgp4PathAttrEntry 5 }

    bgpM2NlriOpaqueType

    bgp4PathAttrNextHop OBJECT-TYPE
        SYNTAX	   INTEGER {
	    none(0),
	    bgpMplsLabelStack(1)
	}     IpAddress
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "This object enumerates the type
                "The address of the row border router that is
	     pointed to in
                 should be used for the table row bgpM2NlriOpaquePointer
	     instance, if bgpM2NlriOpaquePointer is in fact not
	     a zero length.  bgpM2NlriOpaqueType destination
                 network.  This address is necessary since the data referenced by bgpM2NlriOpaquePointer is
	     opaque to BGP.  For example, NEXT_HOP
                 address received in the case of UPDATE packet."
        REFERENCE
                "RFC 4271, Section 4.3.
                 RFC 3107,
	     the label stack that 4271, Section 5.1.3."
        ::= { bgp4PathAttrEntry 6 }

    bgp4PathAttrMultiExitDisc OBJECT-TYPE
        SYNTAX     Integer32 (-1..2147483647)
        MAX-ACCESS read-only
        STATUS     deprecated
        DESCRIPTION
                "This metric is pointed used to may occur in the
	     mplsLabelStackTable from discriminate
                 between multiple exit points to an
                 adjacent autonomous system.  A value of -1
                 indicates the MPLS-LSR-MIB, and absence of this attribute.

                 Known Issues:
                 o The BGP-4 specification uses an
                   unsigned 32 bit number.  Thus, this
                   object cannot represent the
	     instance value full
                   range of bgpM2NlriOpaqueType would be
	     bgpMplsLabelStack(1)." the protocol."
        REFERENCE
                "RFC 3107 - Carrying Label Information in BGP-4
	     draft-ietf-mpls-lsr-mib-08.txt" 4271, Section 4.3.
                 RFC 4271, Section 5.1.4."
        ::= { bgpM2NlriEntry 10 bgp4PathAttrEntry 7 }

    bgpM2NlriOpaquePointer

    bgp4PathAttrLocalPref OBJECT-TYPE
        SYNTAX	   RowPointer     Integer32 (-1..2147483647)
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "Pointer to a row that decomposes
                "The originating BGP4 speaker's degree of
                 preference for an advertised route.  A
                 value of -1 indicates the data that is
	     opaque to absence of this
                 attribute.

                 Known Issues:
                 o The BGP-4 specification uses an
                   unsigned 32 bit number and thus this
                   object cannot represent the BGP MIB but is sent in full
                   range of the NLRI.
	     This RowPointer has zero (0) length data instance
	     if bgpM2NlriOpaqueType is none." protocol."
        REFERENCE
                "RFC 4271, Section 4.3.
                 RFC 4271, Section 5.1.5."
        ::= { bgpM2NlriEntry 11 bgp4PathAttrEntry 8 }

    --
    -- Adj-Ribs-Out Table
    --

    bgpM2AdjRibsOutTable

    bgp4PathAttrAtomicAggregate OBJECT-TYPE
        SYNTAX	   SEQUENCE OF BgpM2AdjRibsOutEntry     INTEGER {
                       lessSpecificRouteNotSelected(1),
                           -- Typo corrected from RFC 1657
                       lessSpecificRouteSelected(2)
                   }
        MAX-ACCESS not-accessible read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "This table contains on a per-peer basis one or more
	     routes from
                "If the bgpM2NlriTable that ATOMIC_AGGREGATE attribute is present
                 in the Path Attributes then this object MUST
                 have been
	     placed a value of 'lessSpecificRouteNotSelected'.

                 If the ATOMIC_AGGREGATE attribute is missing
                 in the Path Attributes then this peer's Adj-Ribs-Out."
	REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Sec. 3.2"
	::= { bgpM2Rib 2 }

    bgpM2AdjRibsOutEntry OBJECT-TYPE
	SYNTAX	   BgpM2AdjRibsOutEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "List object MUST
                 have a value of BGP routes 'lessSpecificRouteSelected'.

                 Note that have been placed into ATOMIC_AGGREGATE is now a
	     peer's Adj-Ribs-Out."
	INDEX {
	    bgpM2PeerIndex,
	    bgpM2NlriAfi,
	    bgpM2NlriSafi,
	    bgpM2NlriPrefix,
	    bgpM2NlriPrefixLen,
	    bgpM2AdjRibsOutIndex
	}
	::= { bgpM2AdjRibsOutTable 1 }

    BgpM2AdjRibsOutEntry primarily
                 informational attribute."
        REFERENCE
                "RFC 4271, Sections 5.1.6 and 9.1.4."
        ::= SEQUENCE {
	bgpM2AdjRibsOutIndex
	    Unsigned32,
	bgpM2AdjRibsOutRoute
	    RowPointer bgp4PathAttrEntry 9 }

    bgpM2AdjRibsOutIndex

    bgp4PathAttrAggregatorAS OBJECT-TYPE
        SYNTAX	   Unsigned32     Integer32 (0..65535)
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "Certain extensions to BGP permit multiple instance
                "The AS number of
	     a per afi, per safi prefix to be advertised to a peer.
	     This object allows the enumeration last BGP4 speaker that
                 performed route aggregation.  A value of them."
                 zero (0) indicates the absence of this
                 attribute.

                 Note that propagation of AS of zero is illegal
                 in the Internet."
        REFERENCE
                "RFC 4271, Section 5.1.7.
                 RFC 4271, Section 9.2.2.2."
        ::= { bgpM2AdjRibsOutEntry 1 bgp4PathAttrEntry 10 }
    bgpM2AdjRibsOutRoute

    bgp4PathAttrAggregatorAddr OBJECT-TYPE
        SYNTAX	   RowPointer     IpAddress
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "This object points to the route in
                "The IP address of the bgpM2NlriTable last BGP4 speaker
                 that corresponds to the entry in the peer's
	     Adj-Rib-Out.  Outgoing performed route maps are not
	     reflected at this point as those are part aggregation.  A
                 value of 0.0.0.0 indicates the
	     Update-Send process." absence
                 of this attribute."
        REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Sec. 9.2"
                "RFC 4271, Section 5.1.7.
                 RFC 4271, Section 9.2.2.2."
        ::= { bgpM2AdjRibsOutEntry 2 bgp4PathAttrEntry 11 }

    --
    -- BGP Rib Path Attributes Table
    --

    --
    -- Path Attribute Counter
    --

    bgpM2PathAttrCount

    bgp4PathAttrCalcLocalPref OBJECT-TYPE
        SYNTAX	   Counter32     Integer32 (-1..2147483647)
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
                "The number degree of entries in preference calculated by the bgpM2PathAttrTable."
	::= { bgpM2Rib 3 }

    --
    -- Path Attributes Table
    --

    bgpM2PathAttrTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2PathAttrEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Provides per advertised network-prefix attribute data,
	     as
                 receiving BGP4 speaker for an advertised over a peering session."
	::= { bgpM2Rib 4 }

    bgpM2PathAttrEntry OBJECT-TYPE
	SYNTAX	   BgpM2PathAttrEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Each entry contains data about a given network
	     prefix, per-prefix
                 route.  A value of -1 indicates the
                 absence of this attribute.

                 Known Issues:
                 o The BGP-4 specification uses an
                   unsigned 32 bit number and per-advertising peer."
	INDEX {
	    bgpM2PathAttrIndex
	}
	::= { bgpM2PathAttrTable 1 }

    BgpM2PathAttrEntry thus this
                   object cannot represent the full
                   range of the protocol."
        REFERENCE
                "RFC 4271, Section 9.1.1."
        ::= SEQUENCE {
	bgpM2PathAttrOrigin
	    INTEGER,
	bgpM2PathAttrNextHopAddrType
	    InetAddressType,
	bgpM2PathAttrNextHop
	    InetAddress,
	bgpM2PathAttrMedPresent
	    TruthValue,
	bgpM2PathAttrMed
	    Unsigned32,
	bgpM2PathAttrLocalPrefPresent
	    TruthValue,
	bgpM2PathAttrLocalPref
	    Unsigned32,
	bgpM2PathAttrAtomicAggregate
	    INTEGER,
	bgpM2PathAttrAggregatorAS
	    InetAutonomousSystemNumber,
	bgpM2PathAttrAggregatorAddr
	    BgpM2Identifier,
	bgpM2AsPathCalcLength
	    Unsigned32,
	bgpM2AsPathString
	    SnmpAdminString,
	bgpM2AsPathIndex
	    Unsigned32 bgp4PathAttrEntry 12 }

    bgpM2PathAttrOrigin

    bgp4PathAttrBest OBJECT-TYPE
        SYNTAX     INTEGER {
	    igp(1),-- networks are interior
	    egp(2),-- networks learned via the EGP protocol
	    incomplete(3)
                       false(1),-- not chosen as best route
                       true(2) -- undetermined chosen as best route
                   }
        MAX-ACCESS read-only
        STATUS	   current     deprecated
        DESCRIPTION
	    "The ultimate origin
                "An indication of whether this route
                 was chosen as the path information." best BGP4 route for this
                 destination."
        REFERENCE
                "RFC 4271, Section 9.1.2."
        ::= { bgpM2PathAttrEntry 1 bgp4PathAttrEntry 13 }

    bgpM2PathAttrNextHopAddrType

    bgp4PathAttrUnknown OBJECT-TYPE
        SYNTAX	    InetAddressType     OCTET STRING (SIZE(0..255))
        MAX-ACCESS read-only
        STATUS	    current     deprecated
        DESCRIPTION
	    "The address family
                "One or more path attributes not understood by
                 this BGP4 speaker.

                 Path attributes are recorded in the Update Path
                 attribute format of type, length, value.

                 Size zero (0) indicates the address for absence of such
                 attributes.

                 Octets beyond the border router that should be used maximum size, if any, are not
                 recorded by this object.

                 Known Issues:
                 o Attributes understood by this speaker, but not
                   represented in this MIB, are unavailable to access
                   the destination network." agent."
        REFERENCE
                "RFC 4271, Section 5."
        ::= { bgpM2PathAttrEntry 2 bgp4PathAttrEntry 14 }

    bgpM2PathAttrNextHop OBJECT-TYPE
	SYNTAX	   InetAddress (SIZE(4..20))
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "The address

    -- Traps.
    -- Note that in RFC 1657, bgpTraps was incorrectly
    -- assigned a value of { bgp 7 } and each of the border router that
	     should be used to access
    -- traps had the destination
	     network.  This address is bgpPeerRemoteAddr object inappropriately
    -- removed from their OBJECTS clause.  The following
    -- definitions restore the nexthop
	     address received in the UPDATE packet.
	     The address family semantics of this object will be the
	     same traps as that of the prefix
    -- they were initially defined in this row.

	     Note that for RFC2545 style double nexthops,
	     this object will always contain the global scope
	     nexthop.  bgpM2LinkLocalNextHopTable will contain RFC 1269.

    bgpEstablishedNotification NOTIFICATION-TYPE
        OBJECTS { bgpPeerRemoteAddr,
                  bgpPeerLastError,
                  bgpPeerState      }
        STATUS  deprecated
        DESCRIPTION
                "The bgpEstablishedNotification event is generated
                 when the linklocal scope nexthop.

	     In BGP FSM enters the case that established state.

                 This Notification replaces the mechanism documented in
	     draft-kato-bgp-ipv6-link-local-00.txt is used bgpEstablished
                 Notification and
	     only a link local nexthop has been sent, ,
	     bgpM2LinkLocalNextHopPresent will be false
	     and bgpM2PathAttrNextHop will contain the link local
	     nexthop." replaced by
                 bgpAfEstablishedNotification."
        ::= { bgpM2PathAttrEntry 3 bgpNotification 1 }

    bgpBackwardTransNotification NOTIFICATION-TYPE
        OBJECTS { bgpPeerRemoteAddr,
                  bgpPeerLastError,
                  bgpPeerState      }

    bgpM2PathAttrMedPresent OBJECT-TYPE
	SYNTAX	   TruthValue
	MAX-ACCESS read-only
        STATUS	   current  deprecated
        DESCRIPTION
	    "Whether or not the MED value is present.
	     If it
                "The bgpBackwardTransNotification event is not present,
                 generated when the bgpM2PathAttrMed
	     object has no useful value and should be set BGP FSM moves from a higher
                 numbered state to 0." a lower numbered state.

                 This Notification replaces the
                 bgpBackwardsTransition Notification and has
                 been replaced by bgpAfBackwardsNotification."
        ::= { bgpM2PathAttrEntry 4 bgpNotification 2 }

    -- { bgp 7 }

    bgpM2PathAttrMed OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This metric is used to discriminate
	     between multiple exit points to an
	     adjacent autonomous system." deprecated.  Do not allocate new objects or
    --           notifications underneath this branch.

    bgpTraps        OBJECT IDENTIFIER ::= { bgpM2PathAttrEntry 5 bgp 7 } -- deprecated

    bgpEstablished NOTIFICATION-TYPE
        OBJECTS { bgpPeerLastError,
                  bgpPeerState      }

    bgpM2PathAttrLocalPrefPresent OBJECT-TYPE
	SYNTAX	   TruthValue
	MAX-ACCESS read-only
        STATUS	   current  deprecated
        DESCRIPTION
	    "Whether or not the LocalPref value is present.
	     If it
                "The bgpEstablished event is not present, generated when
                 the bgpM2PathAttrLocalPref
	     object BGP FSM enters the established state.

                 This Notification has no useful value and should be set to 0." been replaced by the
                 bgpEstablishedNotification Notification."
        ::= { bgpM2PathAttrEntry 6 bgpTraps 1 }

    bgpBackwardTransition NOTIFICATION-TYPE
        OBJECTS { bgpPeerLastError,
                  bgpPeerState      }

    bgpM2PathAttrLocalPref OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
        STATUS	   current  deprecated
        DESCRIPTION
                "The originating BGP4 speakers degree of
	     preference for an advertised route."
	::= { bgpM2PathAttrEntry 7 }

    bgpM2PathAttrAtomicAggregate OBJECT-TYPE
	SYNTAX	   INTEGER {
	    atomicAggregatePresent(1),
	    atomicAggregateMissing(2)
	    }
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "When this object bgpBackwardTransition event is set to atomicAggregatePresent, generated
                 when the ATOMIC_AGGREGATE Path Attribute is present
	  and indicates that BGP FSM moves from a higher numbered
                 state to a lower numbered state.

                 This Notification has been replaced by the NLRI MUST NOT be made
	  more specific."
                 bgpBackwardTransNotification Notification."
        ::= { bgpM2PathAttrEntry 8 bgpTraps 2 }

    bgpM2PathAttrAggregatorAS OBJECT-TYPE
	SYNTAX	   InetAutonomousSystemNumber
	MAX-ACCESS read-only

    -- Obsolete Compliance statements

    bgp4MIBCompliance MODULE-COMPLIANCE
        STATUS	   current  obsolete
        DESCRIPTION
                "The AS number of compliance statement for entities which
                 implement the last BGP4 speaker that
	     performed route aggregation.  A value of
	     zero (0) indicates the absence of mib.

                 This compliance statement is obsoleted by
                 bgpAfMIBCompliance."
        MODULE  -- this
	     attribute.

	     Note propagation of AS module
            MANDATORY-GROUPS { bgp4MIBGlobalsGroup,
                               bgp4MIBPeerGroup,
                               bgp4MIBPathAttrGroup }
            GROUP bgp4MIBNotificationGroup
            DESCRIPTION
                    "Implementation of zero is illegal BGP Notifications are
                     completely optional in
	     the Internet." this MIB."
        ::= { bgpM2PathAttrEntry 9 bgp4MIBCompliances 1 }

    bgpM2PathAttrAggregatorAddr OBJECT-TYPE
	SYNTAX	   BgpM2Identifier
	MAX-ACCESS read-only

    bgp4MIBDeprecatedCompliances MODULE-COMPLIANCE
        STATUS	   current  obsolete
        DESCRIPTION
                "The IP address of compliance statement documenting deprecated
                 objects in the last BGP4 speaker mib.

                 This compliance statement is obsoleted
                 by bgpAfMIBCompliance."
        MODULE  -- this module
            GROUP bgp4MIBTrapGroup
            DESCRIPTION
                "Group containing TRAP objects that performed route aggregation.	A
	     value of 0.0.0.0 indicates were
                 improperly converted from SMIv1 in RFC 1657.
                 The proper semantics have been restored
                 with the absence
	     of this attribute." objects in bgp4MIBNotificationGroup."
        ::= { bgpM2PathAttrEntry 10 bgp4MIBCompliances 2 }

    bgpM2AsPathCalcLength OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only

    bgp4MIBObsoleteCompliances MODULE-COMPLIANCE
        STATUS	   current  obsolete
        DESCRIPTION
	    "This value represents the calculated length of
                "The compliance statement documenting obsolete
                 objects in the
	     AS Path according BGP4 mib."
        MODULE  -- this module
            GROUP bgpRcvdPathAttrGroup
            DESCRIPTION
                "Group containing objects relevant to the rules BGP-3
                 and earlier objects."
        ::= { bgp4MIBCompliances 3 }

    -- Units of the conformance

    bgp4MIBGlobalsGroup OBJECT-GROUP
        OBJECTS { bgpVersion,
                  bgpLocalAs,
                  bgpIdentifier }
        STATUS  obsolete
        DESCRIPTION
                "A collection of objects providing
                 information on global BGP specification. state.

                 This value is used in route selection."
	REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Sec. 9.1.2.2.a" group has been replaced by
                 bgpAfMIBGlobalsGroup and bgpAfMIBOldGlobalsGroup."
        ::= { bgpM2PathAttrEntry 11 bgp4MIBGroups 1 }

    bgp4MIBPeerGroup OBJECT-GROUP
        OBJECTS { bgpPeerIdentifier,
                  bgpPeerState,
                  bgpPeerAdminStatus,
                  bgpPeerNegotiatedVersion,
                  bgpPeerLocalAddr,
                  bgpPeerLocalPort,
                  bgpPeerRemoteAddr,
                  bgpPeerRemotePort,
                  bgpPeerRemoteAs,
                  bgpPeerInUpdates,
                  bgpPeerOutUpdates,
                  bgpPeerInTotalMessages,
                  bgpPeerOutTotalMessages,
                  bgpPeerLastError,
                  bgpPeerFsmEstablishedTransitions,
                  bgpPeerFsmEstablishedTime,
                  bgpPeerConnectRetryInterval,
                  bgpPeerHoldTime,
                  bgpPeerKeepAlive,
                  bgpPeerHoldTimeConfigured,
                  bgpPeerKeepAliveConfigured,
                  bgpPeerMinASOriginationInterval,
                  bgpPeerMinRouteAdvertisementInterval,
                  bgpPeerInUpdateElapsedTime }

    bgpM2AsPathString OBJECT-TYPE
	SYNTAX	   SnmpAdminString
	MAX-ACCESS read-only
        STATUS	   current  deprecated
        DESCRIPTION
	    "This is a string depicting the autonomous system
	     path to this network which was received
                "A collection of objects for managing BGP peers
                 from the
	     peer which advertised it.	The format previous version of the string
	     is implementation-dependent, this MIB.  The
                 individual objects are deprecated and should be designed
	     for operator readability." their support
                 is OPTIONAL."
        ::= { bgpM2PathAttrEntry 12 bgp4MIBGroups 2 }

    bgpRcvdPathAttrGroup OBJECT-GROUP
        OBJECTS { bgpPathAttrPeer,
                  bgpPathAttrDestNetwork,
                  bgpPathAttrOrigin,
                  bgpPathAttrASPath,
                  bgpPathAttrNextHop,
                  bgpPathAttrInterASMetric }

    bgpM2AsPathIndex OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
        STATUS	   current  obsolete
        DESCRIPTION
	    "This value is a unique index for the decomposed AS Path
	     in the bgpM2AsPathTable.  It is assigned by the
	     agent at the point of creation
                "A collection of the bgpM2AsPathTable
	     row entry.	 While its value is guaranteed to be unique
	     at any time, it objects for managing BGP-3 and
                earlier path entries.

                This conformance group, like BGP-3, is otherwise opaque to the management
	     application with respect to its value or the contiguity
	     of bgpM2AsPathIndex row instance values across rows
	     of the bgpM2AsPathTable." obsolete."
        ::= { bgpM2PathAttrEntry 13 bgp4MIBGroups 3 }

    bgp4MIBPathAttrGroup OBJECT-GROUP
        OBJECTS { bgp4PathAttrPeer,
                  bgp4PathAttrIpAddrPrefixLen,
                  bgp4PathAttrIpAddrPrefix,
                  bgp4PathAttrOrigin,
                  bgp4PathAttrASPathSegment,
                  bgp4PathAttrNextHop,
                  bgp4PathAttrMultiExitDisc,
                  bgp4PathAttrLocalPref,
                  bgp4PathAttrAtomicAggregate,
                  bgp4PathAttrAggregatorAS,
                  bgp4PathAttrAggregatorAddr,
                  bgp4PathAttrCalcLocalPref,
                  bgp4PathAttrBest,
                  bgp4PathAttrUnknown }

    --
    -- As-4 byte AS_PATH
    --

    bgpM2AsPath4byteTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2AsPath4byteEntry
	MAX-ACCESS not-accessible
        STATUS	   current  deprecated
        DESCRIPTION
	    "This table is present
                "A collection of objects for managing BGP speakers that support path
                 entries from the AS 4byte specification and previous version of this MIB.  This
                 individual objects are functioning as
	     a router between 2-byte deprecated and 4-byte AS space."
	REFERENCE
	    "draft-ietf-idr-as4bytes-04.txt - BGP their support for
	     four-octet AS number space"
                 is OPTIONAL."
        ::= { bgpM2Rib 5 bgp4MIBGroups 4 }

    bgp4MIBTrapGroup NOTIFICATION-GROUP
        NOTIFICATIONS { bgpEstablished,
                        bgpBackwardTransition }

    bgpM2AsPath4byteEntry OBJECT-TYPE
	SYNTAX	   BgpM2AsPath4byteEntry
	MAX-ACCESS not-accessible
        STATUS	   current  deprecated
        DESCRIPTION
	    "Each row contains the information
                "A collection of notifications for signaling
                 changes in BGP peer relationships.

                 Obsoleted by bgp4MIBNotificationGroup.  Support of
                 the AS 4-byte
	     extension's NEW_AS_PATH and NEW_AGGREGATOR attributes."
	AUGMENTS {
	    bgpM2PathAttrEntry
	} objects in this group is OPTIONAL."
        ::= { bgpM2AsPath4byteTable 1 bgp4MIBGroups 5 }

    BgpM2AsPath4byteEntry ::= SEQUENCE

    bgp4MIBNotificationGroup NOTIFICATION-GROUP
        NOTIFICATIONS {
	bgpM2AsPath4bytePathPresent
	    TruthValue,
	bgpM2AsPath4byteAggregatorAS
	    InetAutonomousSystemNumber,
	bgpM2AsPath4byteCalcLength
	    Unsigned32,
	bgpM2AsPath4byteString
	    SnmpAdminString,
	bgpM2AsPath4byteIndex
	    Unsigned32 bgpEstablishedNotification,
                        bgpBackwardTransNotification }

    bgpM2AsPath4bytePathPresent OBJECT-TYPE
	SYNTAX	   TruthValue
	MAX-ACCESS read-only
        STATUS	   current deprecated
        DESCRIPTION
	    "This value may only be true if this
                "A collection of notifications for signaling
                 changes in BGP Speaker
	     is functioning as a router between ASs that
	     are in 2-byte and 4-byte AS space.	 If this
	     value is true, then the NEW_AS_PATH attributes
	     are present and the 4-byte versions of the
	     appropriate path attributes are peer relationships.

                 Obsoletes bgp4MIBTrapGroup.  Obsoleted by
                 bgpAfMIBNotificationGroup.  Support for objects in
                 this row.

	     If this value group is false, then the following values
	     will be present in the row:

	     bgpM2PathAttrAggregatorAS - zero (0).
	     bgpM2AsPathCalcLength - zero (0).
	     bgpM2AsPathString - zero (0) length string.
	     bgpM2AsPathIndex - zero (0)." OPTIONAL."
        ::= { bgpM2AsPath4byteEntry 1 bgp4MIBGroups 6 }

    bgpAfMIBNotificationGroup NOTIFICATION-GROUP
        NOTIFICATIONS { bgpAfEstablishedNotification,
                        bgpAfBackwardTransNotification }

    bgpM2AsPath4byteAggregatorAS OBJECT-TYPE
	SYNTAX	   InetAutonomousSystemNumber
	MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
	    "The NEW_AGGREGATOR AS number
                "A collection of the last BGP4 speaker
	     that performed route aggregation.	A value notifications for signaling
                 changes in BGP peer relationships.

                 Obsoletes bgp4MIBNotificationGroup."
        ::= { bgp4MIBGroups 7 }

END

8.  Security Considerations

   This MIB relates to a system providing inter-domain routing.  As
   such, improper manipulation of
	     zero (0) indicates the absence of objects represented by this
	     attribute.

	     Note propagation MIB
   may result in denial of AS service to a large number of zero is illegal end-users.

   There are a number of management objects defined in
	     the Internet."
	::= { bgpM2AsPath4byteEntry 2 }

    bgpM2AsPath4byteCalcLength OBJECT-TYPE
	SYNTAX	   Unsigned32 this MIB module
   with a MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This value represents the calculated length clause of read-write and/or read-create.  Such
   objects may be considered sensitive or vulnerable in some network
   environments.  The support for SET operations in a non-secure
   environment without proper protection can have a negative effect on
   network operations.  These are the
	     NEW_AS_PATH according tables and objects and their
   sensitivity/vulnerability:

      bgpPeerAdminStatus - Improper change of bgpPeerAdminStatus, from
      start to stop, can cause significant disruption of the rules
      connectivity to those portions of the Internet reached via the
      applicable remote BGP specification.
	     This value is used peer.

      bgpPeerConnectRetryInterval - Improper change of this object can
      cause connections to be disrupted for extremely long time periods
      when otherwise they would be restored in route selection."
	REFERENCE
	    "draft-ietf-idr-bgp4-17.txt, Sec. 9.1.2.2.a"
	::= { bgpM2AsPath4byteEntry 3 }

    bgpM2AsPath4byteString OBJECT-TYPE
	SYNTAX	   SnmpAdminString
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This is a string depicting the autonomous system
	     path relatively short period
      of time.

      bgpPeerHoldTimeConfigured, bgpPeerKeepAliveConfigured -
      Misconfiguration of these objects can make BGP sessions more
      fragile and less resilient to this network which was received from denial of service attacks on the
	     peer which advertised it.	The format
      inter-domain routing system.

      bgpPeerMinASOriginationInterval,
      bgpPeerMinRouteAdvertisementInterval - Misconfiguration of these
      objects may adversely affect global Internet convergence of the string
	     is implementation-dependent,
      routes advertised by this BGP speaker.  This may result in long-
      lived routing loops and should be designed
	     for operator readability."
	::= { bgpM2AsPath4byteEntry 4 }

    bgpM2AsPath4byteIndex OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This value is a unique index blackholes for the decomposed AS Path
	     in the bgpM2AsPathTable.  It is assigned by the
	     agent at the point portions of creation the
      Internet that utilize these routes.

   Some of the bgpM2AsPathTable
	     row entry.	 While its value is guaranteed to readable objects in this MIB module (i.e., objects with a
   MAX-ACCESS other than not-accessible) may be unique
	     at any time, it considered sensitive or
   vulnerable in some network environments.  It is otherwise opaque thus important to the management
	     application with respect
   control even GET and/or NOTIFY access to its value or these objects and possibly
   to even encrypt the contiguity
	     of bgpM2AsPathIndex row instance values across rows of these objects when sending them over
   the bgpM2AsPathTable. "
	::= { bgpM2AsPath4byteEntry 5 }

    -- network via SNMP.  These are the tables and objects and their
   sensitivity/vulnerability:

   o  bgpPeerAfLocalAddrType, bgpPeerAfLocalAddr,bgpPeerAfLocalPort
      bgpPeerAfRemoteAddrType, bgpPeerAfRemoteAddr, bgpPeerAfRemotePort,
      bgpPeerLocalAddr, bgpPeerLocalPort, bgpPeerRemoteAddr,
      bgpPeerRemotePort - A BGP 4 Path attribute AS Path Table.  There is one row in
    --	  this table peer's local and remote addresses might
      be sensitive for each AS which is advertised ISPs who want to keep interface addresses on
      routers confidential in order to prevent router addresses used for
      a given
    --	  route as provided from a peer.

-- JMH
-- We need one denial of service attack or spoofing.  Note that other tables
      which share elements of these objects as indexes may similarly
      expose sensitive information.

   o  bgpNlriTable, bgpAdjRibsOutTable, bgpAfPathAttrTable,
      bgpAsPathTable, bgpRcvdPathAttrTable, bgp4PathAttrTable - A BGP
      peer's routing information may be sensitive for ISPs as the NewAsPath for the 4byte draft

    bgpM2AsPathTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2AsPathEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "The BGP-4 Path Attribute AS Path Table
	     contains
      contents of their routing tables may expose details related to
      business relationships as implemented in Internet routing.

   SNMP versions prior to SNMPv3 did not include adequate security.
   Even if the per network path (NLRI)
	     AS PATH data received from itself is secure (for example by using IPSec),
   even then, there is no control as to who on the
	     advertising BGP peer."
	::= { bgpM2Rib 6 }

    bgpM2AsPathTableEntry OBJECT-TYPE
	SYNTAX	   BgpM2AsPathEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Information about an AS path provided with a path secure network is
   allowed to
	     a network."
	INDEX {
	    bgpM2PathAttrIndex,
	    bgpM2AsPathSegmentIndex,
	    bgpM2AsPathElementIndex
	}
	::= { bgpM2AsPathTable 1 }

    BgpM2AsPathEntry ::= SEQUENCE {
	bgpM2AsPathSegmentIndex
	    Unsigned32,
	bgpM2AsPathElementIndex
	    Unsigned32,
	bgpM2AsPathType
	    INTEGER,
	bgpM2AsPathElementValue
	    InetAutonomousSystemNumber
    }

    bgpM2AsPathSegmentIndex OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "A per-AS path segment index.  This will index a set of
	     autonomous systems access and GET/SET (read/change/create/delete) the objects
   in an AS path which are part
	     of this MIB module.

   It is RECOMMENDED that implementers consider the same sequence or set (as determined security features as
   provided by the row value of bgpM2AsPathType, which
	     should be the same value SNMPv3 framework (see [RFC3410], section 8),
   including full support for each bgpM2AsPathTable
	     entry indexed by the same (bgpM2PathAttrIndex,
	     bgpM2AsPathIndex) pair)."
	::= { bgpM2AsPathTableEntry 1 }

    bgpM2AsPathElementIndex OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "A per-AS element index.  This will index a particular
	     AS within a sequence or set SNMPv3 cryptographic mechanisms (for
   authentication and privacy).

   Further, deployment of autonomous systems in
	     an AS path."
	::= { bgpM2AsPathTableEntry 2 }

    bgpM2AsPathType OBJECT-TYPE
	SYNTAX	INTEGER {
	    asSet(1),
	    asSequence(2),
	    confedSequence(3),
	    confedSet(4)
	 }
	 MAX-ACCESS  read-only
	 STATUS	     current
	 DESCRIPTION
	     "The type SNMP versions prior to SNMPv3 is NOT
   RECOMMENDED.  Instead, it is RECOMMENDED to deploy SNMPv3 and to
   enable cryptographic security.  It is then a customer/operator
   responsibility to ensure that the SNMP entity giving access to an
   instance of sequence in which this asPath
	      was advertised as an attribute.  Note MIB module is properly configured to give access to
   the objects only to those principals (users) that
	      all asPath row instances have legitimate
   rights to indeed GET or SET (change/create/delete) them.

9.  IANA Considerations

   This document includes an OID, bgpExtensions, which defines a name
   space for future BGP extensions.  IANA is requested to create a given (bgpM2PathAttrIndex,
	      bgpM2AsPathIndex) index pair new
   registry for new OIDs under bgpExtensions that will have their
	      bgpM2AsPathType set to define the same value.
	      The values root
   OID of future MIB modules for bgpM2AsPathType are
	      interpreted as defined in bgp extensions.  The assignment OIDs
   should be done based upon IDR working group consensus.

10.  Contributors

   This document owes significant thanks over the base BGP years to Wayne
   Tackabury, Susan Hares and the members of the idr and ops-nm mailing
   lists.  This document represents several years of negotiating
   operational needs, Internet operational security considerations and
   the BGP AS Confederations document."
	REFERENCE
	    "draft-ietf-idr-bgp4-16
	     RFC 3065 - BGP AS Confederations"
	::= { bgpM2AsPathTableEntry 3 }

    bgpM2AsPathElementValue OBJECT-TYPE
	SYNTAX	   InetAutonomousSystemNumber
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "An AS value for an AS sheer messiness of representing the related NLRI traversed BGP protocol in SMIv2.

   I owe particular thanks to Susan Hares as a mentor who let me dive
   head-first into the propagation world of its advertisement.  This
	     value is Internet standards work by saying, "We
   have this MIB that just needs a little cleanup to be interpreted advance in the context of
   standards process."

11.  Acknowledgements

   We would like to acknowledge the
	     sequence implied by bgpM2AsPathIndex and
	     bgpM2AsPathType (and, in sequence assistance of all the
	     other table rows with the same value members of
	     bgpM2PathAttrIndex the
   Inter-Domain Routing Working Group, and bgpM2AsPathIndex)."
	::= { bgpM2AsPathTableEntry 4 }

    --	  BGP 4 Path unknown attribute.	 There is one row in
    --	  this table for each attribute not known by this BGP
    --	  implementation (or agent instrumentation), but provided
    --	  from a peer.

    bgpM2PathAttrUnknownTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2PathAttrUnknownEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "The BGP-4 Path Attribute Unknown Table
	     contains the per network path (NLRI)
	     data on the path attributes advertised
	     with a route but not known to particularly the local BGP implementation
	     or not otherwise capable of being returned from this agent. following
   individuals:

      Yakov Rekhter, Juniper Networks

      Rob Coltun, Redback

      Guy Almes, Internet2

      Jeff Honig, BSDi

      Marshall T. Rose, Dover Beach Consulting, Inc.

      Dennis Ferguson, Juniper Networks

      Matt Mathis, PSC

      John Krawczyk, Bay Networks

      Curtis Villamizar, Avici

      Dave LeRoy, Pencom Systems

      Paul Traina, Juniper Networks

      Andrew Partan, MFN

      Robert Snyder, Cisco Systems

      Dimitry Haskin, Nortel

      Peder Chr Norgaard, Telebit Communications A/S

      Joel Halpern, CTO Longitude Systems, Inc.

      Nick Thille, RedBack Networks

      Bert Wijnen, Lucent

      Shane Wright, NextHop Technologies
      Mike McFadden, Riverstone Networks, Inc.

      Jon Saperia, JDS Consulting, Inc.

      Wayne Tackabury, Gold Wire Technology, Inc.

      Bill Fenner, AT&T Research

      RJ Atkinson, Extreme Networks

      Dan Romascanu, Avaya

      Mathew Richardson, NextHop Technologies

      The absence origin of row data for a given index value for
	     bgpM2PathAttrIndex indicates a lack this document is from RFC 1269 "Definitions of such unknown
	     attribute information
      Managed Objects for the indicated network path
	     (as indexed Border Gateway Protocol (Version 3)"
      written by that bgpM2PathAttrIndex value in the
	     bgpM2PathAttrTable)."
	::= { bgpM2Rib 7 }

    bgpM2PathAttrUnknownEntry OBJECT-TYPE
	SYNTAX	   BgpM2PathAttrUnknownEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Information about an unknown attribute
	     provided with a path Steve Willis and John Burruss, which was updated by
      John Chu to a network."
	INDEX {
	    bgpM2PathAttrIndex,
	    bgpM2PathAttrUnknownIndex
	}
	::= { bgpM2PathAttrUnknownTable 1 }

    BgpM2PathAttrUnknownEntry ::= SEQUENCE {
	bgpM2PathAttrUnknownIndex
	    Unsigned32,
	bgpM2PathAttrUnknownType
	    Unsigned32,
	bgpM2PathAttrUnknownValue
	    OCTET STRING
    }

    bgpM2PathAttrUnknownIndex OBJECT-TYPE
	SYNTAX Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "An integer index for a row support BGP-4 in this table."
	::= { bgpM2PathAttrUnknownEntry 1 }

    bgpM2PathAttrUnknownType OBJECT-TYPE
	SYNTAX Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "The attribute type advertised with this unknown
	     attribute by RFC 1657.  The editors wish to
      acknowledge the peer."
	::= { bgpM2PathAttrUnknownEntry 2 }

    -- Maximum size fine work of the following is derived as
    --	   4096	  max message size
    --	 -  16	  BGP message marker bytes
    --	 -   2	  BGP message size
    --	 -   1	  BGP message type (UPDATE with unknown attr)
    --	 -   2	  UPDATE routes length (even assuming no routes)
    --	 -   2	  UPDATE path attributes length
    --	 -   1	  path attribute flag octet
    --	 - these original authors.

12.  References

12.1.  Normative References

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119, March 1997.

   [RFC2578]  McCloghrie, K., Ed., Perkins, D., Ed., and J.
              Schoenwaelder, Ed., "Structure of Management Information
              Version 2	  unknown path attr type (in bgpM2PathAttrUnknownType)
    --	---------
    --	  4070 bytes maximum per-message attribute value data

    bgpM2PathAttrUnknownValue OBJECT-TYPE
	SYNTAX	   OCTET STRING (SIZE(0..4070))
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "Value (SMIv2)", STD 58, RFC 2578, April 1999.

   [RFC2579]  McCloghrie, K., Ed., Perkins, D., Ed., and J.
              Schoenwaelder, Ed., "Textual Conventions for SMIv2",
              STD 58, RFC 2579, April 1999.

   [RFC2580]  McCloghrie, K., Perkins, D., and J. Schoenwaelder,
              "Conformance Statements for SMIv2", STD 58, RFC 2580,
              April 1999.

   [RFC3411]  Harrington, D., Presuhn, R., and B. Wijnen, "An
              Architecture for Describing Simple Network Management
              Protocol (SNMP) Management Frameworks", STD 62, RFC 3411,
              December 2002.

   [RFC4271]  Rekhter, Y., Li, T., and S. Hares, "A Border Gateway
              Protocol 4 (BGP-4)", RFC 4271, January 2006.

   [RFC4273]  Haas, J. and S. Hares, "Definitions of Managed Objects for
              BGP-4", RFC 4273, January 2006.

   [RFC2545]  Marques, P. and F. Dupont, "Use of path attribute not understood
	     by the base BGP-4 document.

	     Octets beyond the maximum size, if any,
	     are not recorded by this row object. "
	::= { bgpM2PathAttrUnknownEntry 3 }

    --
    -- Path Attribute Extensions
    --

    bgpM2PathAttrExtensions
	OBJECT IDENTIFIER ::= { bgpM2Rib 8 }

    bgpM2PathAttrNonCapExts
	OBJECT IDENTIFIER ::= { bgpM2PathAttrExtensions 1 }

    bgpM2PathAttrCapExts
	OBJECT IDENTIFIER ::= { bgpM2PathAttrExtensions 2 }

    --
    -- Path Attribute Route Reflection Multiprotocol
              Extensions
    --

    --
    -- Originator ID Table
    --

    bgpM2PathAttrRouteReflectionExts
	OBJECT IDENTIFIER ::= { bgpM2PathAttrNonCapExts 2796 }

    bgpM2PathAttrOriginatorIdTable OBJECT-TYPE
	SYNTAX	    SEQUENCE OF BgpM2PathAttrOriginatorIdEntry
	MAX-ACCESS  not-accessible
	STATUS	    current
	DESCRIPTION
	    "Per prefix data pertinent to advertisement for IPv6 Inter-Domain Routing", RFC 2545,
              March 1999.

   [RFC4001]  Daniele, M., Haberman, B., Routhier, S., and J.
              Schoenwaelder, "Textual Conventions for Internet Network
              Addresses", RFC 4001, February 2005.

   [RFC4760]  Bates, T., Chandra, R., Katz, D., and Y. Rekhter,
              "Multiprotocol Extensions for BGP-4", RFC 4760,
              January 2007.

   [RFC5065]  Traina, P., McPherson, D., and J. Scudder, "Autonomous
              System Confederations for BGP", RFC 5065, August 2007.

12.2.  Informative References

   [RFC3410]  Case, J., Mundy, R., Partain, D., and B. Stewart,
              "Introduction and Applicability Statements for Internet-
              Standard Management Framework", RFC 3410, December 2002.

   [RFC1657]  Willis, S., Burruss, J., and J. Chu, "Definitions of a
	     network prefix through an originator."
	REFERENCE
	    "RFC 2796 - BGP
              Managed Objects for the Fourth Version of the Border
              Gateway Protocol (BGP-4) using SMIv2", RFC 1657,
              July 1994.

   [RFC3107]  Rekhter, Y. and E. Rosen, "Carrying Label Information in
              BGP-4", RFC 3107, May 2001.

   [RFC4022]  Raghunarayan, R., "Management Information Base for the
              Transmission Control Protocol (TCP)", RFC 4022,
              March 2005.

   [RFC4456]  Bates, T., Chen, E., and R. Chandra, "BGP Route Reflection"
	::= { bgpM2PathAttrRouteReflectionExts 1 }

    bgpM2PathAttrOriginatorIdEntry OBJECT-TYPE
	SYNTAX	    BgpM2PathAttrOriginatorIdEntry
	MAX-ACCESS  not-accessible
	STATUS	    current
	DESCRIPTION
	    "Each entry contains data pertinent
              Reflection: An Alternative to a network
	     prefix as received through its originating BGP
	     route reflector."
	REFERENCE
	    "RFC 2796 - Full Mesh Internal BGP Route Reflection"
	INDEX {
	    bgpM2PathAttrIndex
	}
	::= { bgpM2PathAttrOriginatorIdTable 1 }

    BgpM2PathAttrOriginatorIdEntry ::= SEQUENCE {
	bgpM2PathAttrOriginatorId
	    BgpM2Identifier
    }

    bgpM2PathAttrOriginatorId OBJECT-TYPE
	SYNTAX	    BgpM2Identifier
	MAX-ACCESS  read-only
	STATUS	    current
	DESCRIPTION
	    "The Originator-ID identifying the router that initially
	     advertised this destination
              (IBGP)", RFC 4456, April 2006.

Author's Address

   Jeffrey Haas

   Phone:
   EMail: jhaas@pfrc.org

Full Copyright Statement

   Copyright (C) The IETF Trust (2007).

   This document is subject to a Route Reflector.	A
	     value of 0.0.0.0 indicates the absence of this attribute."
	REFERENCE
	     "This attribute is defined rights, licenses and restrictions
   contained in [RFC2796]."
	::= { bgpM2PathAttrOriginatorIdEntry 1 }

    --
    -- Cluster table
    --
    bgpM2PathAttrClusterTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2PathAttrClusterEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "The BGP-4 Path Attribute Cluster Table
	     contains BCP 78, and except as set forth therein, the per network path (NLRI)
	     data on authors
   retain all their rights.

   This document and the reflection path which a
	     route has traversed. information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
   THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
   THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Intellectual Property

   The absence IETF takes no position regarding the validity or scope of row
	     data for a given index value for bgpM2PathAttrIndex
	     indicates a lack any
   Intellectual Property Rights or other rights that might be claimed to
   pertain to the implementation or use of the technology described in
   this attribute information
	     for document or the indicated network path (as indexed by extent to which any license under such rights
   might or might not be available; nor does it represent that bgpM2PathAttrIndex value in it has
   made any independent effort to identify any such rights.  Information
   on the bgpM2PathAttrTable)."
	::= { bgpM2PathAttrRouteReflectionExts 2 }

    bgpM2PathAttrClusterEntry OBJECT-TYPE
	SYNTAX	   BgpM2PathAttrClusterEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Information about a cluster traversal
	     provided procedures with a path respect to a network."
	INDEX {
	    bgpM2PathAttrIndex,
	    bgpM2PathAttrClusterIndex
	}
	::= { bgpM2PathAttrClusterTable 1 }

    BgpM2PathAttrClusterEntry ::= SEQUENCE {
	bgpM2PathAttrClusterIndex
	    Unsigned32,
	bgpM2PathAttrClusterValue
	    BgpM2Identifier
    }

    bgpM2PathAttrClusterIndex OBJECT-TYPE
	SYNTAX	   Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "An integral index for a row rights in this table."
	::= { bgpM2PathAttrClusterEntry 1 }

    bgpM2PathAttrClusterValue OBJECT-TYPE
	SYNTAX	    BgpM2Identifier
	MAX-ACCESS  read-only
	STATUS	    current
	DESCRIPTION
	    "A four octet long value representing a part of the
	    reflection path that the route has passed.	Each such four
	    octet long value represents the ID of a cluster that
	    the route has traversed.  The sequence of this path as
	    received in the route advertisement will RFC documents can be preserved
   found in
	    the sequence BCP 78 and BCP 79.

   Copies of bgpM2PathAttrClusterTable rows (and IPR disclosures made to the
	    bgpM2PathAttrClusterValues in each row) as returned for
	    a given bgpM2PathAttrIndex value, IETF Secretariat and the monotonically
	    increasing sequence any
   assurances of bgpM2PathAttrClusterIndex values
	    for that bgpM2PathAttrIndex."
	REFERENCE
	    "This attribute is defined in [RFC2796]."
	::= { bgpM2PathAttrClusterEntry 2 }

    --
    -- BGP Communities
    --

    bgpM2PathAttrCommunityExts
	OBJECT IDENTIFIER ::= { bgpM2PathAttrNonCapExts 1997 }

    bgpM2PathAttrCommTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2PathAttrCommEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "The BGP-4 Path Attribute Community Table
	     contains the per network path (NLRI)
	     data on licenses to be made available, or the community membership advertised
	     with a route.  The absence result of row
	     data for an
   attempt made to obtain a given index value general license or permission for bgpM2PathAttrIndex
	     indicates a lack the use of
   such proprietary rights by implementers or users of this attribute
   specification can be obtained from the IETF on-line IPR repository at
   http://www.ietf.org/ipr.

   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights that may cover technology that may be required to implement
   this standard.  Please address the information to the IETF at
   ietf-ipr@ietf.org.

Acknowledgement

   Funding for the indicated network path (as indexed RFC Editor function is provided by
	     that bgpM2PathAttrIndex value in the bgpM2PathAttrTable)."
	::= { bgpM2PathAttrCommunityExts 1 }

    bgpM2PathAttrCommEntry OBJECT-TYPE
	SYNTAX	   BgpM2PathAttrCommEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Information about a community association
	     provided with a path to a network."
	INDEX {
	    bgpM2PathAttrIndex,
	    bgpM2PathAttrCommIndex
	}
	::= { bgpM2PathAttrCommTable 1 }

    BgpM2PathAttrCommEntry ::= SEQUENCE {
	bgpM2PathAttrCommIndex
	    Unsigned32,
	bgpM2PathAttrCommValue
	    BgpM2Community
    }

    bgpM2PathAttrCommIndex OBJECT-TYPE
	SYNTAX Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "An integer index for a row in this table."
	::= { bgpM2PathAttrCommEntry 1 }

    bgpM2PathAttrCommValue  OBJECT-TYPE
	SYNTAX	    BgpM2Community
	MAX-ACCESS  read-only
	STATUS	    current
	DESCRIPTION
	    "A value representing a community.	 There are certain
	     4-octet long values which could be returned in this
	     columnar row data that carry additional semantics."
	REFERENCE
	    "RFC 1997 - BGP Communities Attribute"
	::= { bgpM2PathAttrCommEntry 2 }

    --
    -- BGP Extended Communities
    --

    bgpM2PathAttrExtCommTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2PathAttrExtCommEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "The BGP-4 Path Attribute Community Table
	    contains the per network path (NLRI)
	    data on the extended community membership advertised
	    with a route.  The absence of row
	    data for a given index value for bgpM2PathAttrIndex
	    indicates a lack of this attribute information
	    for the indicated network path (as indexed by
	    that bgpM2PathAttrIndex value in the bgpM2PathAttrTable).

	    XXX JMH - can not assign the OID until an RFC is published."
	::= { bgpM2PathAttrNonCapExts XXX }

    bgpM2PathAttrExtCommEntry OBJECT-TYPE
	SYNTAX	   BgpM2PathAttrExtCommEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Information about an extended community association
	     provided with a path to a network."
	INDEX {
	    bgpM2PathAttrIndex,
	    bgpM2PathAttrExtCommIndex
	}
	::= { bgpM2PathAttrExtCommTable 1 }

    BgpM2PathAttrExtCommEntry ::= SEQUENCE {
	bgpM2PathAttrExtCommIndex
	    Unsigned32,
	bgpM2PathAttrExtCommValue
	    BgpM2ExtendedCommunity
    }

    bgpM2PathAttrExtCommIndex OBJECT-TYPE
	SYNTAX Unsigned32
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "An integral index for a row in this table."
	::= { bgpM2PathAttrExtCommEntry 1 }

    bgpM2PathAttrExtCommValue  OBJECT-TYPE
	SYNTAX	    BgpM2ExtendedCommunity
	MAX-ACCESS  read-only
	STATUS	    current
	DESCRIPTION
	    "A value representing an extended community which was
	    received with the route implied by the bgpM2PathAttr
	    Index value of this row data.   There are certain
	    8-octet long values which could be returned in this
	    columnar row data that carry additional semantics."
	REFERENCE
	    "BGP-EXTCOMM - BGP Extended Communities Attribute"
	::= { bgpM2PathAttrExtCommEntry 2 }

    --
    -- RFC 2545 link local nexthop
    --

    bgpM2LinkLocalNextHopTable OBJECT-TYPE
	SYNTAX	   SEQUENCE OF BgpM2LinkLocalNextHopEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Table of link local nexthops as sent by RFC 2545
	     for IPv6 BGP Speakers."
	REFERENCE
	    "RFC 2545 - Use of BGP-4 Multiprotocol Extensions
	     for IPv6 Inter-Domain Routing"
	::= { bgpM2PathAttrNonCapExts 2545 }

    bgpM2LinkLocalNextHopEntry OBJECT-TYPE
	SYNTAX	   BgpM2LinkLocalNextHopEntry
	MAX-ACCESS not-accessible
	STATUS	   current
	DESCRIPTION
	    "Entry containing the link-local nexthops as sent
	     by a BGP speaker running RFC 2545 extensions for
	     double-nexthops."
	INDEX {
	    bgpM2PathAttrIndex
	}
	::= { bgpM2LinkLocalNextHopTable 1 }

    BgpM2LinkLocalNextHopEntry ::= SEQUENCE {
	bgpM2LinkLocalNextHopPresent
	    TruthValue,
	bgpM2LinkLocalNextHop
	    InetAddress
    }
    bgpM2LinkLocalNextHopPresent OBJECT-TYPE
	SYNTAX	   TruthValue
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This value is TRUE if and only if the BGP
	     speaker is receiving IPv6 NLRI using the
	     RFC 2545 double nexthop convention and it
	     has received a link local scope nexthop in
	     addition to the global scope nexthop."
	::= { bgpM2LinkLocalNextHopEntry 1 }

    bgpM2LinkLocalNextHop OBJECT-TYPE
	SYNTAX	   InetAddress (SIZE(20))
	MAX-ACCESS read-only
	STATUS	   current
	DESCRIPTION
	    "This value contains an IPv6 link local address of
	    InetAddressType of type ipv6z.  This value is only
	    present if bgpM2LinkLocalNextHopPresent is true."
	::= { bgpM2LinkLocalNextHopEntry 2 }

    --
    -- Conformance Information
    --

    bgpM2Conformance
	OBJECT IDENTIFIER ::= { bgpM2 4 }

    bgpM2MIBCompliances OBJECT IDENTIFIER ::=
	{ bgpM2Conformance 1 }

    bgpM2MIBGroups	OBJECT IDENTIFIER ::=
	{ bgpM2Conformance 2 }

    bgpM2MIBCompliance MODULE-COMPLIANCE
	STATUS	current
	DESCRIPTION
	    "The compliance statement for entities which
	    implement the BGP4 mib."
	 MODULE	 -- this module
	 MANDATORY-GROUPS {
	    bgpM2TimersGroup,
	    bgpM2CountersGroup,
	    bgpM2AsPathGroup,
	    bgpM2As4byteGroup,
	    bgpM2BaseGroup,
	    bgpM2ErrorsGroup,
	    bgpM2PeerGroup,
	    bgpM2PathAttributesGroup
	    }
	GROUP bgpM2MIBNotificationsGroup
	DESCRIPTION
	    "The notifications group is completely optional,
	     but highly recommended."
	GROUP bgpM2CommunitiesGroup
	DESCRIPTION
	    "The communities group is mandatory only for those
	     which support the BGP community attribute."
	GROUP bgpM2ExtCommunitiesGroup
	DESCRIPTION
	    "The communities group is mandatory only for those
	     which support the BGP extended community attribute."
	GROUP bgpM2RouteReflectionGroup
	DESCRIPTION
	    "The communities group is mandatory only for those
	     which support the BGP route reflection relationships."
	GROUP bgpM2AsConfederationGroup
	DESCRIPTION
	    "The communities group is mandatory only for those
	     which support the BGP confederation membership."
	GROUP bgpM2TimersGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2CountersGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2CapabilitiesGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2AsPathGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2As4byteGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2BaseGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2ErrorsGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2PeerGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2PathAttributesGroup
	DESCRIPTION
	    "This group is mandatory for all agent implementations."
	GROUP bgpM2PeerConfigurationGroup
	DESCRIPTION
	    "This group is optional for implementations that wish to
	     support configuration via SNMP."
	GROUP bgpM2PeerRouteReflectorCfgGroup
	DESCRIPTION
	    "This group is optional for implementations that wish to
	     support configuration of route reflection via SNMP.
	     Implementation of this feature requires support of the
	     bgpM2PeerConfigurationGroup."
	GROUP bgpM2PeerAsConfederationCfgGroup
	DESCRIPTION
	    "This group is optional for implementations that wish to
	     support configuration of BGP AS Confederations via SNMP.
	     Implementation of this feature requires support of the
	     bgpM2PeerConfigurationGroup."
	GROUP bgpM2Rfc2545Group
	DESCRIPTION
	    "This group is required for peers that support exchanging
	     of IPv6 NLRI per RFC 2545."
	::= { bgpM2MIBCompliances 1 }

    bgpM2CommunitiesGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2PathAttrCommIndex,
	    bgpM2PathAttrCommValue
	}
	STATUS current
	DESCRIPTION
	    "Objects associated with BGP communities."
	::= { bgpM2MIBGroups 1 }

    bgpM2ExtCommunitiesGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2PathAttrExtCommIndex,
	    bgpM2PathAttrExtCommValue
	}
	STATUS current
	DESCRIPTION
	    "Objects associated with BGP extended communities."
	::= { bgpM2MIBGroups 2 }

    bgpM2RouteReflectionGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2RouteReflector,
	    bgpM2ClusterId,
	    bgpM2PeerReflectorClient,
	    bgpM2PathAttrOriginatorId,
	    bgpM2PathAttrClusterIndex,
	    bgpM2PathAttrClusterValue
	}
	STATUS current
	DESCRIPTION
	    "Objects associated with BGP route reflection."
	::= { bgpM2MIBGroups 3 }

    bgpM2AsConfederationGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2ConfederationRouter,
	    bgpM2ConfederationId,
	    bgpM2PeerConfedMember
	}
	STATUS current
	DESCRIPTION
	    "Objects associated with BGP confederation membership."
	::= { bgpM2MIBGroups 4 }

    bgpM2TimersGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2PeerFsmEstablishedTime,
	    bgpM2PeerInUpdatesElapsedTime,
	    bgpM2PeerConnectRetryInterval,
	    bgpM2PeerHoldTimeConfigured,
	    bgpM2PeerKeepAliveConfigured,
	    bgpM2PeerMinASOrigInterval,
	    bgpM2PeerMinRouteAdverInterval,
	    bgpM2PeerHoldTime,
	    bgpM2PeerKeepAlive
	}
	STATUS current
	DESCRIPTION
	    "Objects associated with BGP peering timers."
	::= { bgpM2MIBGroups 5 }
    bgpM2CountersGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2PeerInUpdates,
	    bgpM2PeerOutUpdates,
	    bgpM2PeerInTotalMessages,
	    bgpM2PeerOutTotalMessages,
	    bgpM2PeerFsmEstablishedTrans,
	    bgpM2PrefixCountersAfi,
	    bgpM2PrefixCountersSafi,
	    bgpM2PrefixInPrefixes,
	    bgpM2PrefixInPrefixesAccepted,
	    bgpM2PrefixInPrefixesRejected,
	    bgpM2PrefixOutPrefixes
	}
	STATUS current
	DESCRIPTION
	    "Objects to count discrete events and exchanges on BGP
	     sessions."
	 ::= { bgpM2MIBGroups 6 }

    bgpM2CapabilitiesGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2CapabilitySupportAvailable,
	    bgpM2SupportedCapabilityCode,
	    bgpM2SupportedCapability,
	    bgpM2PeerCapAnnouncedCode,
	    bgpM2PeerCapAnnouncedIndex,
	    bgpM2PeerCapAnnouncedValue,
	    bgpM2PeerCapReceivedCode,
	    bgpM2PeerCapReceivedIndex,
	    bgpM2PeerCapReceivedValue
	}
	STATUS current
	DESCRIPTION
	    "Objects to report capabilities as received on BGP
	     sessions."
	::= { bgpM2MIBGroups 7 }

    bgpM2AsPathGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2AsPathSegmentIndex,
	    bgpM2AsPathElementIndex,
	    bgpM2AsPathType,
	    bgpM2AsPathElementValue
	}
	STATUS current
	DESCRIPTION
	    "Objects to report AS paths received on BGP NLRIs."
	::= { bgpM2MIBGroups 8 }

    bgpM2As4byteGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2AsSize,
	    bgpM2AsPath4bytePathPresent,
	    bgpM2AsPath4byteAggregatorAS,
	    bgpM2AsPath4byteCalcLength,
	    bgpM2AsPath4byteString,
	    bgpM2AsPath4byteIndex
	}
	STATUS current
	DESCRIPTION
	    "AS Size objects."
	::= { bgpM2MIBGroups 9 }

    bgpM2BaseGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2LocalAs,
	    bgpM2LocalIdentifier,
	    bgpM2VersionIndex,
	    bgpM2VersionSupported
	}
	STATUS current
	DESCRIPTION
	    "Basic objects in local BGP implementation."
	::= { bgpM2MIBGroups 10 }

    bgpM2ErrorsGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2PeerLastErrorReceived,
	    bgpM2PeerLastErrorReceivedData,
	    bgpM2PeerLastErrorReceivedTime,
	    bgpM2PeerLastErrorReceivedText,
	    bgpM2PeerLastErrorSent,
	    bgpM2PeerLastErrorSentData,
	    bgpM2PeerLastErrorSentTime,
	    bgpM2PeerLastErrorSentText
	}
	STATUS current
	DESCRIPTION
	    "Errors received on BGP peering sessions."
	::= { bgpM2MIBGroups 11 }
    bgpM2PeerGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2PeerInstance,
	    bgpM2PeerIdentifier,
	    bgpM2PeerState,
	    bgpM2PeerStatus,
	    bgpM2PeerConfiguredVersion,
	    bgpM2PeerNegotiatedVersion,
	    bgpM2PeerLocalAddrType,
	    bgpM2PeerLocalAddr,
	    bgpM2PeerLocalPort,
	    bgpM2PeerLocalAs,
	    bgpM2PeerRemoteAddrType,
	    bgpM2PeerRemoteAddr,
	    bgpM2PeerRemotePort,
	    bgpM2PeerRemoteAs,
	    bgpM2PeerIndex
	}
	STATUS current
	DESCRIPTION
	    "Core object types on BGP peering sessions."
	::= { bgpM2MIBGroups 12 }

    bgpM2PathAttributesGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2PathAttrCount,
	    bgpM2AsPathCalcLength,
	    bgpM2AsPathElementValue,
	    bgpM2AsPathIndex,
	    bgpM2AsPathString,
	    bgpM2AsPathType,
	    bgpM2NlriAfi,
	    bgpM2NlriBest,
	    bgpM2NlriPrefixType,
	    bgpM2NlriPrefix,
	    bgpM2NlriPrefixLen,
	    bgpM2NlriSafi,
	    bgpM2NlriOpaqueType,
	    bgpM2NlriOpaquePointer,
	    bgpM2NlriIndex,
	    bgpM2NlriCalcLocalPref,
	    bgpM2AdjRibsOutIndex,
	    bgpM2AdjRibsOutRoute,
	    bgpM2PathAttrAggregatorAS,
	    bgpM2PathAttrAggregatorAddr,
	    bgpM2PathAttrAtomicAggregate,
	    bgpM2PathAttrIndex,
	    bgpM2PathAttrLocalPref,
	    bgpM2PathAttrLocalPrefPresent,
	    bgpM2PathAttrMed,
	    bgpM2PathAttrMedPresent,
	    bgpM2PathAttrNextHop,
	    bgpM2PathAttrNextHopAddrType,
	    bgpM2PathAttrOrigin,
	    bgpM2PathAttrUnknownIndex,
	    bgpM2PathAttrUnknownType,
	    bgpM2PathAttrUnknownValue
	}
	STATUS current
	DESCRIPTION
	    "Attributes received on BGP peering sessions."
	::= { bgpM2MIBGroups 13 }

    bgpM2PeerConfigurationGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2CfgBaseScalarStorageType,
	    bgpM2CfgLocalAs,
	    bgpM2CfgLocalIdentifier,
	    bgpM2CfgPeerAdminStatus,
	    bgpM2CfgPeerNextIndex,
	    bgpM2CfgPeerConfiguredVersion,
	    bgpM2CfgAllowVersionNegotiation,
	    bgpM2CfgPeerLocalAddrType,
	    bgpM2CfgPeerLocalAddr,
	    bgpM2CfgPeerLocalAs,
	    bgpM2CfgPeerRemoteAddrType,
	    bgpM2CfgPeerRemoteAddr,
	    bgpM2CfgPeerRemoteAs,
	    bgpM2CfgPeerEntryStorageType,
	    bgpM2CfgPeerError,
	    bgpM2CfgPeerBgpPeerEntry,
	    bgpM2CfgPeerRowEntryStatus,
	    bgpM2CfgPeerIndex,
	    bgpM2CfgPeerStatus,
	    bgpM2CfgPeerConnectRetryInterval,
	    bgpM2CfgPeerHoldTimeConfigured,
	    bgpM2CfgPeerKeepAliveConfigured,
	    bgpM2CfgPeerMinASOrigInterval,
	    bgpM2CfgPeerMinRouteAdverInter
	}
	STATUS current
	DESCRIPTION
	    "Configuration objects for BGP peers."
	::= { bgpM2MIBGroups 14 }
    bgpM2PeerRouteReflectorCfgGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2CfgRouteReflector,
	    bgpM2CfgClusterId,
	    bgpM2CfgPeerReflectorClient
	}
	STATUS current
	DESCRIPTION
	    "Configuration objects for BGP peers that support route
	     reflection."
	::= { bgpM2MIBGroups 15 }

    bgpM2PeerAsConfederationCfgGroup OBJECT-GROUP
	OBJECTS {
	    bgpM2CfgConfederationRouter,
	    bgpM2CfgConfederationId,
	    bgpM2CfgPeerConfedMember
	}
	STATUS current
	DESCRIPTION
	    "Configuration objects for BGP peers that support BGP
	     confederations."
	::= { bgpM2MIBGroups 16 }

    bgpM2MIBNotificationsGroup NOTIFICATION-GROUP
	NOTIFICATIONS {
	    bgpM2Established,
	    bgpM2BackwardTransition
	}
	STATUS	current
	DESCRIPTION
	    "This group contains objects for notifications
	     supported by this mib module."
	::= { bgpM2MIBGroups 17 }

    bgpM2Rfc2545Group OBJECT-GROUP
	OBJECTS {
	    bgpM2LinkLocalNextHopPresent,
	    bgpM2LinkLocalNextHop
	}
	STATUS current
	DESCRIPTION
	    "This group is required for peers that support exchanging
	     of IPv6 NLRI per RFC 2545."
	::= { bgpM2MIBGroups 18 }

END

5.  Intellectual Property Rights

   The IETF takes no position regarding the validity or scope of any
   intellectual property or other rights that might be claimed to per-
   tain to the implementation or use of the technology described in this
   document or the extent to which any license under such rights might
   or might not be available; neither does it represent that it has made
   any effort to identify any such rights.  Information on the IETF's
   procedures with respect to rights in standards-track and standards-
   related documentation can be found in BCP-11.  Copies of claims of
   rights made available for publication and any assurances of licenses
   to be made available, or the result of an attempt made to obtain a
   general license or permission for the use of such proprietary rights
   by implementors or users of this specification can be obtained from
   the IETF Secretariat.

   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights which may cover technology that may be required to practice
   this standard.  Please address the information to the IETF Executive
   Director.

6.  Security Considerations

   This MIB relates to a system providing inter-domain routing.	 As
   such, improper manipulation of the objects represented by this MIB
   may result in denial of service to a large number of end-users.

   There are several management objects defined in this MIB that have a
   MAX-ACCESS clause of read-write and/or read-create.	Such objects
   should be considered sensitive or vulnerable in most network environ-
   ments.  The support for SET operations in a non-secure environment
   without proper protection can have a negative effect on network oper-
   ations.  These objects include:

   XXX TODO

   There  are  a  number  of  managed  objects	in  this MIB that con-
   tain sensitive information regarding the operation of a network.  For
   example, a BGP peer's local and remote addresses might be sensitive
   for ISPs who want to keep interface	addresses on routers confiden-
   tial to prevent router addresses used for a denial of service attack
   or spoofing.

   Therefore, it is important in most environments to control read
   access to these objects and possibly to even encrypt the values of
   these object when sending them over the network via SNMP.

   SNMPv1 by itself is not a secure environment.  Even if the network
   itself is secure (for example by using IPSec), there is still no con-
   trol as to who on the secure network is allowed to access and GET/SET
   (read/change/create/delete) the objects in this MIB.

   It is recommended that the implementers consider the security fea-
   tures as provided by the SNMPv3 framework.[REF]  Specifically, the
   implementation and use of the User-based Security Model [REF] and the
   View-based Access Control Model [REF] is recommended to provide
   appropriate security controls.

   It is then an operator/user responsibility to ensure that the SNMP
   entity giving access to an instance of this MIB, is properly config-
   ured to give access to the objects only to those principals (users)
   that have legitimate rights to indeed GET or SET (change/cre-
   ate/delete) them.

7.  Acknowledgements

   Tom Nadeau, Cisco Systems, Inc.
   Jon Saperia, JDS Consulting, Inc.
   Bill Fenner, AT&T Research
   Mike McFaden, Riverstone Networks, Inc.
   Joel Krauska, Exodus Communications, Inc.
   Carl W. Kalbfleisch, Verio Networks, Inc.
   Joe Dupre, Gold Wire Technology

    others TBD...

8.  Changes From Last Version

   This section is used to track changes from version to version of this
   document.  This section will be removed from the document prior to
   being issued to IDR working group last call.

     *	  Changes from draft-ietf-idr-bgp4-mibv2-03.txt to draft-ietf-
	  idr-bgp4-mibv2-04.txt (12 January 2004)

	  Remove all objects related to BGP authentication as BGP
	  authentication has been officially removed.

	  Removed bgpM2AsPathElementValue from bgpM2AsPathTable

	  Add current OPS group MIB boilerplate and security boiler-
	  plate.  Work still needs to be done in the security section.

	  Split references into Normative References and Informational
	  References.  Add IETF Intellectual Property Rights statement.
	  Update copyright dates.

	  Add new TEXTUAL-CONVENTION, BgpM2Afi to more properly reflect
	  BGP Multi-Protocol Extensions.

	  Add bgpM2NlriPrefixType to bgpM2NlriTable as an interim mecha-
	  nism to support "proper" translation of an AFI to an InetAd-
	  dressType.  Further thought must be put into this.

	  Delete bgpM2CfgPeerRemotePort object.	 Deployed implementa-
	  tions do not seem to allow this to be configured.

	  Add bgpM2PeerInstance to permit multiple BGP routing instances
	  to be supported.

	  Renumber numerous OIDs to account for re-organizing objects.
	  Update conformance statements to match.

     *	  Changes from draft-ietf-idr-bgp4-mibv2-02.txt to draft-ietf-
	  idr-bgp4-mibv2-03.txt (4 November 2002):

	  Changed the order of the bgpM2NlriPrefixLen and
	  bgpM2NlriPrefix objects and renumbered them.	This was to make
	  it consistant with user expectations.

	  Clarify the peer table description text to specify the remote
	  peer.

	  Use SnmpAdminString instead of DisplayString.

	  Correct TEXTUAL CONVENTION for extended communities.

	  Changed enumerations of bgpM2PathATtrAtomicAggregate.

	  Added link local table for RFC 2545 nexthops.

     *	  Changes from draft-ietf-idr-bgp4-mibv2-01.txt to draft-ietf-
	  idr-bgp4-mibv2-02.txt (28 February 2002)

	  Lots of changes in this rewrite, these are the most dramatic:

	  Configuration objects and tables added.

	  All references to 'bgp' in object descriptors changed to
	  'bgpM2' to disambiguate from RFC 1657 and its OBSOLETing MIB.

	  Community Textual conventions added to beginning of MIB.

	  bgpM2CalcLength and PathString columns added to bgpM2PathAttr
	  table.

	  Creation of separate bgpM2AdjRibsOutTable.

	  Appearance of NLRI table notions such as 'opaque type'.

	  Overhaul of specification of AS Path types to accommodate eas-
	  ier management at time of route aggregation.

9.  Normative References

[RFC2574]   Blumenthal, U., and B. Wijnen, "User-based Security Model
	    (USM) for version 3 of the Simple Network Management Proto-
	    col (SNMPv3)", RFC 2574, April 1999.

[RFC2578]   McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J.,
	    Rose, M., and S. Waldbusser, "Structure of Management Infor-
	    mation Version 2 (SMIv2)", STD 58, RFC 2578, April 1999.

[RFC2579]   McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J.,
	    Rose, M., and S. Waldbusser, "Textual Conventions for
	    SMIv2", STD 58, RFC 2579, April 1999.

[RFC2580]   McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J.,
	    Rose, M., and S. Waldbusser, "Conformance Statements for
	    SMIv2", STD 58, RFC 2580, April 1999.

[RFC3411]   D. Harrington, R. Presuhn, B. Wijnen, "An Architecture for
	    Describing Simple Network Management Protocol (SNMP) Manage-
	    ment Frameworks", RFC 3411, December 2002.

[RFC3413]   D. Levi, P. Meyer, B. Stewart, "Simple Network Management
	    Protocol (SNMP) Applications",  RFC 3413, December 2002.

[RFC3415]   B. Wijnen, R. Presuhn, K. McCloghrie, "View-based Access
	    Control Model (VACM) for the Simple Network Management Pro-
	    tocol (SNMP)", RFC 3415, December 2002.

[RFC3416]   Presuhn, R., Editor, "Version 2 of the Protool Operations
	    for the Simple Network Management Protocol (SNMP)", RFC
	    3416, December 2002.

[RFC3417]   Presuhn, R., Editor, "Transport Mappings for the Simple Net-
	    work Management Protocol (SNMP)", RFC 3417, December 2002.

[RFC1213]   McCloghrie, K. and M. Rose, Editors, "Management Information
	    Base for Network Management of TCP/IP-based Internets: MIB-
	    II", STD 17, RFC 1213, Hughes LAN Systems, Performance Sys-
	    tems International, March 1991.

[RFC1657]   Willis, S., Burruss, J., and Chu, J., "Definitions of Man-
	    aged Objects for the Fourth Version of the Border Gateway
	    Protocol (BGP-4) using SMIv2", RFC 1657, July 1994.

[MIB-DRAFT] Hares, S., Haas, J., Willis, S., Burruss, J., and Chu, J.,
	    "Definitions of Managed Objects for the Fourth Version of
	    Border Gateway Protocol (BGP-4)", draft-ietf-idr-
	    bgp4-mib-06.txt, Work-in-progress.

[RFC1771]   Rekhter, Y., Li, T., "A Border Gateway Protocol 4 (BGP-4)",
	    RFC 1771, March 1995.

[RFC1772]   Rekhter, Y., Gross, P., "Application of the Border Gateway
	    Protocol in the Internet", RFC 1772, March 1995.

[RFC3065]   Traina, P., McPherson, D., and Scudder, J., "Autonomous Sys-
	    tem Confederations for BGP", RFC 3065, February, 2001.

[RFC1997]   Chandra, R., Traina, P., and Li, T., "BGP Communities
	    Attribute", RFC 1997, August, 1996.

[RFC2858]   Bates, T., Rekhter, Y., Chandra, R., and Katz, D., "Multi-
	    protocol Extensions for BGP-4", RFC 2858, June, 2000.

[RFC2796]   Bates, T., Chandra, R., and Chen, E., "BGP Route Reflection
	    - An Alternative to Full Mesh IBGP", RFC 2796, April 2000.

[BGP-EXTCOMM] Sangli, S., Tappan, D., and Rekhter, Y., "BGP Extended
	    Communities Attribute", Work-in-progress.

[RFC3107]   Rehkter, Y., and Rosen, E., "Carrying Label Information in
	    BGP-4", RFC 3107, May 2001.

10.  Informative References

[RFC1901]   Case, J., McCloghrie, K., Rose, M., and S. Waldbusser,
	    "Introduction to Community-based SNMPv2", RFC 1901, January
	    1996.

[RFC2576]   Frye, R., Levi, D., Routhier, S. and B. Wijnen, "Coexistence
	    between Version 1, Version 2, and Version 3 of the Internet-
	    Standard Network Management Framework", RFC 2576, March
	    2000.

[RFC3410]   Case, J., Mundy, R., Partain, D. and B. Stewart, "Introduc-
	    tion and Applicability Statements for Internet- Standard
	    Management Framework", RFC 3410, December 2002.

11.  Authors' Addresses

   Jeff Haas
   NextHop Technologies
   825 Victors Way, Suite 100
   Ann Arbor, MI 48108
   Phone: +1 734 222-1600
   Fax:	  +1 734 222-1602
   Email: jhaas@nexthop.com

   Susan Hares
   NextHop Technologies
   825 Victors Way, Suite 100
   Ann Arbor, MI 48108
   Phone: +1 734 222-1600
   Fax:	  +1 734 222-1602
   Email: skh@nexthop.com

   Wayne Tackabury
   Gold Wire Technology
   411 Waverley Oaks Rd.
   Waltham, MA	02452-8401
   Phone: +1 781 398-8819
   Fax:	  +1 781 398-8811
   Email: wayne@goldwiretech.com

12.  Full Copyright Statement

   Copyright (C) The Internet Society (2005).

   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
   ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
   INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES
   OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

			   Table of Contents

1. Introduction	 . . . . . . . . . . . . . . . . . . . . . . . . . .   2
2. Objectives  . . . . . . . . . . . . . . . . . . . . . . . . . . .   2
2.1. Protocol Extensions . . . . . . . . . . . . . . . . . . . . . .   3
2.2. Mechanisms for MIB Extensibility  . . . . . . . . . . . . . . .   3
2.3. BGP Configuration . . . . . . . . . . . . . . . . . . . . . . .   3
3. MIB Organization  . . . . . . . . . . . . . . . . . . . . . . . .   4
3.1. bgpM2BaseScalars  . . . . . . . . . . . . . . . . . . . . . . .   4
3.2. bgpM2PeerData . . . . . . . . . . . . . . . . . . . . . . . . .   5
3.2.1. bgpM2PeerCapabilities . . . . . . . . . . . . . . . . . . . .   6
3.2.2. bgpM2PeerCounters . . . . . . . . . . . . . . . . . . . . . .   6
3.2.3. Peering Data Extensions . . . . . . . . . . . . . . . . . . .   6
3.2.4. Configuring Peering Sessions  . . . . . . . . . . . . . . . .   6
3.3. BGP Routing Information Base Data . . . . . . . . . . . . . . .   7
3.3.1. Routing Information Base Extensions . . . . . . . . . . . . .   8
3.4. Considerations on Table Indexing  . . . . . . . . . . . . . . .   9
4. Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . .  10
5. Intellectual Property Rights	 . . . . . . . . . . . . . . . . . .  92
6. Security Considerations . . . . . . . . . . . . . . . . . . . . .  92
7. Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .  93
8. Changes From Last Version . . . . . . . . . . . . . . . . . . . .  93
9. Normative References	 . . . . . . . . . . . . . . . . . . . . . .  95
10. Informative References . . . . . . . . . . . . . . . . . . . . .  97
11. Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . .  97
12. Full Copyright Statement . . . . . . . . . . . . . . . . . . . .  97 IETF
   Administrative Support Activity (IASA).