peer support registration when old-school BGP-4
is used.
Change-Id: I2137ea2647f01fb87bad04e682fe0bf5541768e8
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
final TablesKey key = new TablesKey(Ipv4AddressFamily.class, UnicastSubsequentAddressFamily.class);
if (this.tables.add(key) && !announceNone) {
createAdjRibOutListener(peerId, key, false);
+ final ExportPolicyPeerTracker exportTracker = this.rib.getExportPolicyPeerTracker(key);
+ if (exportTracker != null) {
+ this.tableRegistration.add(exportTracker.registerPeer(peerId, null, this.peerIId,
+ this.peerRole, this.simpleRoutingPolicy));
+ }
}
}