Skip to content

Commit ab348c9

Browse files
committed
Route(Static): Add also alias info if available
1 parent b2b2e90 commit ab348c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Src/Private/Get-AbrFgtRoute.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ function Get-AbrFgtRoute {
131131
$interface = $static.'sdwan-zone'.name
132132
} else {
133133
$interface = $static.device
134+
#Search interface on system interface (for get alias)
135+
$int = $interfaces | Where-Object { $_.name -eq $interface }
136+
if ($int.alias ) {
137+
$interface += " ($($int.alias))"
138+
}
134139
}
135140

136141
$OutObj += [pscustomobject]@{

0 commit comments

Comments
 (0)