Merge pull request #85704 from yliaog/windep

catch the exception raised in Remove-HnsPolicyList
This commit is contained in:
Kubernetes Prow Robot 2019-11-27 21:03:10 -08:00 committed by GitHub
commit 711790af23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
#