@@ -436,11 +436,11 @@ function Get-AbrFgtRoute {
436436 foreach ($n in $neighbornetwork ) {
437437
438438 $OutObj += [pscustomobject ]@ {
439- " id" = $n.id
440- " Prefix " = $ (if ($Options.UseCIDRNotation ) { Convert-AbrFgtSubnetToCIDR - Input $n.prefix } else { $n.prefix })
439+ " id" = $n.id
440+ " Prefix " = $ (if ($Options.UseCIDRNotation ) { Convert-AbrFgtSubnetToCIDR - Input $n.prefix } else { $n.prefix })
441441 " Network-import-check " = $n .' network-import-check'
442- " Backdoor " = $n.backdoor
443- " Route-map" = $n .' route-map'
442+ " Backdoor " = $n.backdoor
443+ " Route-map" = $n .' route-map'
444444 }
445445 }
446446
@@ -459,6 +459,37 @@ function Get-AbrFgtRoute {
459459
460460 }
461461
462+ if ($bgp.redistribute ) {
463+
464+ $neighborredistribute = $bgp.redistribute
465+ Section - Style Heading3 ' Redistribute' {
466+ $OutObj = @ ()
467+
468+ foreach ($n in $neighborredistribute ) {
469+
470+ $OutObj += [pscustomobject ]@ {
471+ " Name" = $n.name
472+ " Status" = $n.status
473+ " Route-map" = $n .' route-map'
474+ }
475+ }
476+
477+ $TableParams = @ {
478+ Name = " BGP Redistribute"
479+ List = $false
480+ ColumnWidths = 40 , 30 , 30
481+ }
482+
483+ if ($Report.ShowTableCaptions ) {
484+ $TableParams [' Caption' ] = " - $ ( $TableParams.Name ) "
485+ }
486+
487+ $OutObj | Where-Object { $_.status -eq " enable" } | Set-Style - Style OK
488+ $OutObj | Table @TableParams
489+ }
490+
491+ }
492+
462493 }
463494 }
464495
0 commit comments