modules/HomeLab.UI/Public/Menu/5-NatGatewayMenu.ps1
<#
.SYNOPSIS Displays the NAT Gateway Menu for HomeLab Setup. .DESCRIPTION Presents options for managing the NAT gateway: 1. Enable NAT Gateway 2. Disable NAT Gateway 3. Check NAT Gateway Status 0. Return to Main Menu .PARAMETER ShowProgress If specified, shows a progress bar while loading the menu. .EXAMPLE Show-NatGatewayMenu .EXAMPLE Show-NatGatewayMenu -ShowProgress .NOTES Author: Jurie Smit Date: March 9, 2025 #> function Show-NatGatewayMenu { [CmdletBinding()] param( [Parameter(Mandatory = $false)] [switch]$ShowProgress ) $menuItems = @{ "1" = "Enable NAT Gateway" "2" = "Disable NAT Gateway" "3" = "Check NAT Gateway Status" } $result = Show-Menu -Title "NAT GATEWAY MENU" -MenuItems $menuItems ` -ExitOption "0" -ExitText "Return to Main Menu" ` -ShowProgress:$ShowProgress -ValidateInput return $result } |