From 86ce168dd2d66c3b9106180facc3a29912e4970f Mon Sep 17 00:00:00 2001 From: Nischal Sheth Date: Wed, 4 Nov 2015 17:16:58 -0800 Subject: [PATCH] Add per address-family configuration for bgp session Highlights: - Add BgpFamilyAttributes type and use it in BgpSessionAttributes - Clean up indentation and remove unnecessary usage of xsd:sequence Change-Id: I21f218c768b3143166a4bc19d76e03acbc44d4b4 Partial-Bug: 1513278 --- src/schema/bgp_schema.xsd | 99 ++++++++++++++++++++++++--------------- 1 file changed, 61 insertions(+), 38 deletions(-) diff --git a/src/schema/bgp_schema.xsd b/src/schema/bgp_schema.xsd index 3d360e861d8..9e9c1ebd19e 100644 --- a/src/schema/bgp_schema.xsd +++ b/src/schema/bgp_schema.xsd @@ -8,7 +8,7 @@ - + @@ -49,18 +49,16 @@ - - - - - - - - - - - - + + + + + + + + + + @@ -78,33 +76,63 @@ sessions between 2 bgp-routers. --> - - - + - - - - + + - - - - - - - + + + When the parameters are uni-directional the bgp-router element + specifies to which node the configuration applies. If missing + the attributes apply to both ends of the session. + + + + + + + + + + + + This type is used to configure per address-family parameters + for a BgpSession. + * loop-count is the number of times the local bgp-router's AS is + allowed in the AS_PATH attribute. + * prefix-limit contains the maximum number of prefixes that are + allowed to be received on the session. + + + + + + + + + + + + + + + + + + This is used to configure the maximum number of received prefixes. + More fields to control the behavior can be added in future e.g. if + the session should be torn down when the maximum is reached. + + + @@ -119,9 +147,7 @@ - - - + @@ -144,10 +170,7 @@ - - - +