Skip to content

Commit

Permalink
BGPaaSv2: Schema change to suppress route advertisement
Browse files Browse the repository at this point in the history
Change-Id: I25c6bac0a3c5c6dc1d94084734a85e53de76904c
Partial-Bug: 1552952
  • Loading branch information
Nischal Sheth committed Mar 17, 2016
1 parent 4daa767 commit d3df539
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bgp/bgp_ribout.cc
Expand Up @@ -241,7 +241,12 @@ RibOut::RibOut(BgpTable *table, SchedulingGroupManager *mgr,
name_ += " Type: IBGP";
} else {
name_ += " Type: EBGP";
name_ += " (AS " + integerToString(policy_.as_number) + ")";
name_ += " (AS " + integerToString(policy_.as_number);
if (!policy_.nexthop.is_unspecified())
name_ += " Nexthop " + policy_.nexthop.to_string();
if (policy_.as_override)
name_ += " ASOverride";
name_ += ")";
}
}

Expand Down
10 changes: 10 additions & 0 deletions src/schema/vnc_cfg.xsd
Expand Up @@ -1424,6 +1424,16 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
</xsd:annotation>
<!--#IFMAP-SEMANTICS-IDL
Property('bgpaas-ipv4-mapped-ipv6-nexthop', 'bgp-as-a-service') -->
<xsd:element name='bgpaas-suppress-route-advertisement' type='xsd:boolean'/>
<xsd:annotation>
<xsd:documentation>
This is used to indicate that the server should not advertise any
routes to the client i.e. the client has static routes (typically
a default) configured.
</xsd:documentation>
</xsd:annotation>
<!--#IFMAP-SEMANTICS-IDL
Property('bgpaas-suppress-route-advertisement', 'bgp-as-a-service') -->

<xsd:element name="virtual-router" type="ifmap:IdentityType"/>
<xsd:element name="global-system-config-virtual-router"/>
Expand Down

0 comments on commit d3df539

Please sign in to comment.