mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
catch the exception raised in Remove-HnsPolicyList
This commit is contained in:
parent
45f6270283
commit
bbc49d6b1f
@ -780,7 +780,9 @@ function Configure-HostNetworkingService {
|
||||
netsh interface ipv4 set interface "${vnic_name}" forwarding=enabled
|
||||
}
|
||||
|
||||
Get-HNSPolicyList | Remove-HnsPolicyList
|
||||
Try {
|
||||
Get-HNSPolicyList | Remove-HnsPolicyList
|
||||
} Catch { }
|
||||
|
||||
# Add a route from the management NIC to the pod CIDR.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user