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 ietf-inet-types { prefix inet; revision-date 2013-07-15; }
9 import opendaylight-md-sal-binding {prefix mdsb; revision-date 2013-10-28; }
10 import rfc2385 { prefix rfc2385; revision-date 2016-03-24; }
12 organization "Brocade Communications Systems, Inc.";
13 contact "Kevin Wang <kwang@brocade.com>";
16 "This module contains the base data model of BGP peer.
18 Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
20 This program and the accompanying materials are made available
21 under the terms of the Eclipse Public License v1.0 which
22 accompanies this distribution, and is available at
23 http://www.eclipse.org/legal/epl-v10.html";
26 description "Initial revision";
29 grouping bgp-peer-config-attributes {
31 description "Host IP address of BGP connection";
37 description "The port for connection between the BGP peers.";
38 type inet:port-number;
43 description "Time interval (in seconds) for HoldTimer proposed by the peer.";
49 grouping bgp-peer-config {
50 uses bgp-peer-config-attributes;
62 leaf simple-routing-policy {
63 type rib:simple-routing-policy;
66 leaf initiate-connection {
67 description "If true, connection will be initiated right away from current device.
68 If not, the peer will only be registered to peer registry and available for incomming bgp connections.";
80 "Expected remote AS number. If not present, it is assumed
81 to be the same as our local AS number.";
86 type rfc2385:rfc2385-key;
87 description "RFC2385 shared secret";
91 grouping bgp-peer-preferences {
93 description "The BGP Identifier.";
97 uses bgp-peer-config-attributes;
100 description "Autonomous system number.";
105 leaf four-octet-as-capability {
106 description "The BGP peer 4 byte AS numbers support capability.";
111 leaf bgp-extended-message-capability {
112 description "The bgp extended message support capability.";
118 description "BGP graceful restart support capability.";
123 leaf route-refresh-capability {
124 reference "https://tools.ietf.org/html/rfc2918";
129 list advertized-table-types {
130 description "The BGP Table-type capabilities advertized by the BGP peer.";
132 uses bgp-mp:bgp-table-type;
135 list advertised-add-path-table-types {
136 description "The BGP Table-type capabilities advertized by the BGP peer.";
138 uses bgp-mp:bgp-add-path-table-type;