Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend introspect for config peering/neighbors to all instances
Since BGPaaS configures peerings and neighbors in non-master instances, extend introspect for config peerings and neighbors to show objects in all instances. Highlights: - Fix syntax error in ShowBgpNeighborFamily sandesh definition - Move code for neighbors to bgp_show_config.cc - Move code for peerings to bgp_show_ifmap_peering_config.cc - Add level of indirection to avoid linking issues for peering show command. This is needed because YAML config does not have notion of peering. - Paginate output for peerings and neighbors while we're at it - Tweak tests so that they pass with the new code Change-Id: Ic5dc47a7684e80ac693aea1e2660abff783ce681 Partial-Bug: 1518047
- Loading branch information
Nischal Sheth
committed
Nov 24, 2015
1 parent
87a0293
commit 355b88a
Showing
12 changed files
with
473 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. | ||
*/ | ||
#include "bgp/bgp_ifmap_sandesh.h" | ||
|
||
#include "bgp/bgp_sandesh.h" | ||
|
||
class ShowBgpPeeringConfigReq; | ||
class ShowBgpPeeringConfigReqIterate; | ||
|
||
extern void ShowBgpIfmapPeeringConfigReqHandler( | ||
const BgpSandeshContext *bsc, | ||
const ShowBgpPeeringConfigReq *req); | ||
extern void ShowBgpIfmapPeeringConfigReqIterateHandler( | ||
const BgpSandeshContext *bsc, | ||
const ShowBgpPeeringConfigReqIterate *req_iterate); | ||
|
||
void RegisterSandeshShowIfmapHandlers(BgpSandeshContext *bsc) { | ||
bsc->SetPeeringShowHandlers( | ||
ShowBgpIfmapPeeringConfigReqHandler, | ||
ShowBgpIfmapPeeringConfigReqIterateHandler); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef BGP__BGP_IFMAP_SANDESH_H__ | ||
#define BGP__BGP_IFMAP_SANDESH_H__ | ||
|
||
struct BgpSandeshContext; | ||
|
||
extern void RegisterSandeshShowIfmapHandlers(BgpSandeshContext *); | ||
|
||
#endif // BGP__BGP_IFMAP_SANDESH_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.