Skip to content

Commit

Permalink
Add neighbor info to instance config introspect
Browse files Browse the repository at this point in the history
Change-Id: I3d32a76c94090cce678730e7f53e14e011d2952a
Closes-Bug: 1668728
  • Loading branch information
Nischal Sheth committed Feb 28, 2017
1 parent 01dbd33 commit 21723f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bgp/bgp_peer.sandesh
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ struct ShowBgpInstanceConfig {
13: bool allow_transit;
14: bool pbb_evpn_enable;
9: string last_change_at;
15: list<string> neighbors;
5: list<ShowBgpServiceChainConfig> service_chain_infos;
6: list<ShowBgpStaticRouteConfig> static_routes;
11: list<ShowBgpRouteAggregateConfig> aggregate_routes;
Expand Down
4 changes: 4 additions & 0 deletions src/bgp/bgp_show_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ static void FillBgpInstanceConfigInfo(ShowBgpInstanceConfig *sbic,
sbic->set_pbb_evpn_enable(instance->virtual_network_pbb_evpn_enable());
sbic->set_last_change_at(UTCUsecToString(instance->last_change_at()));

vector<string> neighbors(
instance->neighbor_list().begin(), instance->neighbor_list().end());
sbic->set_neighbors(neighbors);

vector<ShowBgpServiceChainConfig> sbscc_list;
BOOST_FOREACH(const ServiceChainConfig &sc_config,
instance->service_chain_list()) {
Expand Down

0 comments on commit 21723f5

Please sign in to comment.