2 namespace "urn:opendaylight:params:xml:ns:yang:controller:bgp:peer:config";
5 import bgp-rib { prefix rib; revision-date 2013-09-25; }
6 import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
7 import bgp-multiprotocol { prefix bgp-mp; revision-date 2013-09-19; }
8 import config { prefix config; revision-date 2013-04-05; }
9 import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
10 import opendaylight-md-sal-binding {prefix mdsb; revision-date 2013-10-28; }
11 import rfc2385 { prefix rfc2385; revision-date 2016-03-24; }
13 organization "Brocade Communications Systems, Inc.";
14 contact "Kevin Wang <kwang@brocade.com>";
17 "This module contains the base data model of BGP peer.
19 Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
21 This program and the accompanying materials are made available
22 under the terms of the Eclipse Public License v1.0 which
23 accompanies this distribution, and is available at
24 http://www.eclipse.org/legal/epl-v10.html";
27 description "Initial revision";
30 grouping bgp-peer-config-attributes {
32 description "Host IP address of BGP connection";
38 description "The port for connection between the BGP peers.";
39 type inet:port-number;
44 description "Time interval (in seconds) for HoldTimer proposed by the peer.";
50 grouping bgp-peer-config {
51 uses bgp-peer-config-attributes;
63 leaf simple-routing-policy {
64 type rib:simple-routing-policy;
67 leaf initiate-connection {
68 description "If true, connection will be initiated right away from current device.
69 If not, the peer will only be registered to peer registry and available for incomming bgp connections.";
81 "Expected remote AS number. If not present, it is assumed
82 to be the same as our local AS number.";
87 type rfc2385:rfc2385-key;
88 description "RFC2385 shared secret";
92 grouping bgp-peer-preferences {
94 description "The BGP Identifier.";
98 uses bgp-peer-config-attributes;
101 description "Autonomous system number.";
106 leaf four-octet-as-capability {
107 description "The BGP peer 4 byte AS numbers support capability.";
112 leaf bgp-extended-message-capability {
113 description "The bgp extended message support capability.";
119 description "BGP graceful restart support capability.";
124 leaf add-path-capability {
130 leaf route-refresh-capability {
131 reference "https://tools.ietf.org/html/rfc2918";
136 list advertized-table-types {
137 description "The BGP Table-type capabilities advertized by the BGP peer.";
139 uses bgp-mp:bgp-table-type;
142 list advertised-add-path-table-types {
143 description "The BGP Table-type capabilities advertized by the BGP peer.";
145 uses bgp-mp:bgp-add-path-table-type;