From 885b5e5b3ad94c4b7ad35ea5c684c11135916bd2 Mon Sep 17 00:00:00 2001 From: Nischal Sheth Date: Tue, 12 Jan 2016 09:49:31 -0800 Subject: [PATCH] Add instance name to bgp neighbor introspect output Change-Id: I71127171e7d7920bc8d36f90037d0da52bf7590d Closes-Bug: 1518047 --- src/bgp/bgp_peer.cc | 1 + src/bgp/bgp_peer.sandesh | 1 + 2 files changed, 2 insertions(+) diff --git a/src/bgp/bgp_peer.cc b/src/bgp/bgp_peer.cc index d54922674ff..f6334dd317c 100644 --- a/src/bgp/bgp_peer.cc +++ b/src/bgp/bgp_peer.cc @@ -1698,6 +1698,7 @@ void BgpPeer::FillBgpNeighborFamilyAttributes(BgpNeighborResp *nbr) const { void BgpPeer::FillNeighborInfo(const BgpSandeshContext *bsc, BgpNeighborResp *bnr, bool summary) const { + bnr->set_instance_name(rtinstance_->name()); bnr->set_peer(peer_basename_); bnr->set_deleted(IsDeleted()); bnr->set_deleted_at(UTCUsecToString(deleter_->delete_time_stamp_usecs())); diff --git a/src/bgp/bgp_peer.sandesh b/src/bgp/bgp_peer.sandesh index 6c8405a1e4d..f752f74c2d2 100644 --- a/src/bgp/bgp_peer.sandesh +++ b/src/bgp/bgp_peer.sandesh @@ -42,6 +42,7 @@ struct ShowBgpNeighborFamily { } struct BgpNeighborResp { + 53: string instance_name; 1: string peer (link="BgpNeighborReq"); // Peer name 36: bool deleted; // Deletion in progress 43: string deleted_at;