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 d4191c8 commit 69ae06b
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
Expand Up @@ -577,6 +577,7 @@ struct ShowBgpInstanceConfig {
4: list<string> export_target;
10: bool has_pnf;
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
Expand Up @@ -39,6 +39,10 @@ static void FillBgpInstanceConfigInfo(ShowBgpInstanceConfig *sbic,
sbic->set_has_pnf(instance->has_pnf());
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 69ae06b

Please sign in to comment.