Update hcsshim to include DSR features

This commit is contained in:
Kalya Subramanian
2019-05-20 21:54:44 +00:00
parent 07e3b7cdca
commit c32c26000d
17 changed files with 160 additions and 84 deletions

View File

@@ -143,6 +143,15 @@ func RemoteSubnetSupported() error {
return platformDoesNotSupportError("Remote Subnet")
}
// HostRouteSupported returns an error if the HCN version does not support Host Route policies.
func HostRouteSupported() error {
supported := GetSupportedFeatures()
if supported.HostRoute {
return nil
}
return platformDoesNotSupportError("Host Route")
}
// DSRSupported returns an error if the HCN version does not support Direct Server Return.
func DSRSupported() error {
supported := GetSupportedFeatures()