File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9278,12 +9278,15 @@ DEFUN (no_neighbor_addpath_tx_all_paths,
9278
9278
{
9279
9279
int idx_peer = 2;
9280
9280
struct peer *peer;
9281
+ safi_t safi = bgp_node_safi(vty);
9281
9282
9282
9283
peer = peer_and_group_lookup_vty(vty, argv[idx_peer]->arg);
9283
9284
if (!peer)
9284
9285
return CMD_WARNING_CONFIG_FAILED;
9285
9286
9286
- if (peer->addpath_type[bgp_node_afi(vty)][bgp_node_safi(vty)] != BGP_ADDPATH_ALL) {
9287
+ if (safi == SAFI_LABELED_UNICAST)
9288
+ safi = SAFI_UNICAST;
9289
+ if (peer->addpath_type[bgp_node_afi(vty)][safi] != BGP_ADDPATH_ALL) {
9287
9290
vty_out(vty,
9288
9291
"%% Peer not currently configured to transmit all paths.");
9289
9292
return CMD_WARNING_CONFIG_FAILED;
@@ -9375,13 +9378,15 @@ DEFUN (no_neighbor_addpath_tx_bestpath_per_as,
9375
9378
{
9376
9379
int idx_peer = 2;
9377
9380
struct peer *peer;
9381
+ safi_t safi = bgp_node_safi(vty);
9378
9382
9379
9383
peer = peer_and_group_lookup_vty(vty, argv[idx_peer]->arg);
9380
9384
if (!peer)
9381
9385
return CMD_WARNING_CONFIG_FAILED;
9382
9386
9383
- if (peer->addpath_type[bgp_node_afi(vty)][bgp_node_safi(vty)]
9384
- != BGP_ADDPATH_BEST_PER_AS) {
9387
+ if (safi == SAFI_LABELED_UNICAST)
9388
+ safi = SAFI_UNICAST;
9389
+ if (peer->addpath_type[bgp_node_afi(vty)][safi] != BGP_ADDPATH_BEST_PER_AS) {
9385
9390
vty_out(vty,
9386
9391
"%% Peer not currently configured to transmit all best path per as.");
9387
9392
return CMD_WARNING_CONFIG_FAILED;
You can’t perform that action at this time.
0 commit comments