Skip to content

Commit ab8d310

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

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
@@ -136,6 +136,11 @@ function Get-AbrFgtRoute {
136136
$interface = $static.'sdwan-zone'.name
137137
} else {
138138
$interface = $static.device
139+
#Search interface on system interface (for get alias)
140+
$int = $interfaces | Where-Object { $_.name -eq $interface }
141+
if ($int.alias ) {
142+
$interface += " ($($int.alias))"
143+
}
139144
}
140145

141146
$OutObj += [pscustomobject]@{

0 commit comments

Comments
 (0)