'Return the correct Open vSwitch version for the current OpenShift version'

def get_required_ovs_version(self):

    openshift_version_tuple = self.get_major_minor_version(self.get_var('openshift_image_tag'))
    if (openshift_version_tuple < (3, 5)):
        return self.openshift_to_ovs_version['3.4']
    openshift_version = '.'.join((str(x) for x in openshift_version_tuple))
    ovs_version = self.openshift_to_ovs_version.get(openshift_version)
    if ovs_version:
        return self.openshift_to_ovs_version[openshift_version]
    msg = 'There    is    no    recommended    version    of    Open    vSwitch    for    the    current    version    of    OpenShift:    {}'
    raise OpenShiftCheckException(msg.format(openshift_version))
