BUG-5876 Enhance BGP Speaker and Peer Stats I
[bgpcep.git] / bgp / rib-impl / src / main / yang / bgp-rib-impl.yang
diff --git a/bgp/rib-impl/src/main/yang/bgp-rib-impl.yang b/bgp/rib-impl/src/main/yang/bgp-rib-impl.yang
new file mode 100644 (file)
index 0000000..079725c
--- /dev/null
@@ -0,0 +1,56 @@
+module bgp-rib-impl {
+    namespace "urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl:config";
+    prefix "bgp-rib-impl";
+
+    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-rib { prefix rib; revision-date 2013-09-25; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2013-09-19; }
+    import config { prefix config; revision-date 2013-04-05; }
+    import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
+    import ietf-yang-types { prefix yang; revision-date 2013-07-15; }
+    import opendaylight-md-sal-binding {prefix mdsb; revision-date 2013-10-28; }
+    import rpc-context { prefix rpcx; revision-date 2013-06-17; }
+
+    organization "Brocade Communications Systems, Inc.";
+    contact "Kevin Wang <kwang@brocade.com>";
+
+    description
+        "This module contains the base data model of BGP RIB implementation.
+
+        Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
+
+        This program and the accompanying materials are made available
+        under the terms of the Eclipse Public License v1.0 which
+        accompanies this distribution, and is available at
+        http://www.eclipse.org/legal/epl-v10.html";
+
+    revision 2016-06-06 {
+        description "Initial revision";
+    }
+
+    grouping bgp-rib-impl-identifiers {
+        leaf local-as {
+            description "Our local AS number. Needed by best selection path attribute.";
+            type uint32;
+            mandatory true;
+        }
+
+        leaf bgp-rib-id {
+            description "Our local BGP identifier. Needed by best selection path attribute.";
+            mandatory true;
+            type bgp-t:bgp-id;
+        }
+
+        leaf rib-id {
+            description "Identifier of this RIB in local data store.";
+            type rib:rib-id;
+            mandatory true;
+        }
+
+        leaf cluster-id {
+            description "IBGP identifier. Needed by route reflection.";
+            reference "https://tools.ietf.org/html/rfc4456#section-7";
+            type bgp-t:cluster-identifier;
+        }
+    }
+}
\ No newline at end of file