Skip to content

Commit

Permalink
Merge pull request #85704 from yliaog/windep
Browse files Browse the repository at this point in the history
catch the exception raised in Remove-HnsPolicyList
  • Loading branch information
k8s-ci-robot authored Nov 28, 2019
2 parents 2eda472 + bbc49d6 commit 711790a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/gce/windows/k8s-node-setup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit 711790a

Please sign in to comment.