Skip to content

Commit ffb3d89

Browse files
committed
BGP(Router): Add Network Chapiter
with prefix, backdoor ?(!) and network-import-check
1 parent 94227e6 commit ffb3d89

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Src/Private/Get-AbrFgtRoute.ps1

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,37 @@ function Get-AbrFgtRoute {
427427

428428
}
429429

430+
if ($bgp.network) {
431+
432+
$neighbornetwork = $bgp.network
433+
Section -Style Heading3 'Network' {
434+
$OutObj = @()
435+
436+
foreach ($n in $neighbornetwork) {
437+
438+
$OutObj += [pscustomobject]@{
439+
"id" = $n.id
440+
"Prefix " = $(if ($Options.UseCIDRNotation) { Convert-AbrFgtSubnetToCIDR -Input $n.prefix } else { $n.prefix })
441+
"Network-import-check " = $n.'network-import-check'
442+
"Backdoor " = $n.backdoor
443+
"Route-map" = $n.'route-map'
444+
}
445+
}
446+
447+
$TableParams = @{
448+
Name = "BGP Network"
449+
List = $false
450+
ColumnWidths = 10, 35, 24, 11, 20
451+
}
452+
453+
if ($Report.ShowTableCaptions) {
454+
$TableParams['Caption'] = "- $($TableParams.Name)"
455+
}
456+
457+
$OutObj | Table @TableParams
458+
}
459+
460+
}
430461

431462
}
432463
}

0 commit comments

Comments
 (0)