mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Merge pull request #85704 from yliaog/windep
catch the exception raised in Remove-HnsPolicyList
This commit is contained in:
commit
711790af23
@ -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