'Makes initialization of OpenVSwitch.
:param tmpdir: Tmp directory for save openvswitch test files.
:param db_path: Path of OVS databimpoty ase.
:param db_socket: Path of OVS db socket.
:param db_pidfile: Path of OVS db ovsdb-server pid.
:param ovs_pidfile: Path of OVS ovs-vswitchd pid.
:param install_prefix: Path where is openvswitch installed.'

def __new__(cls, db_path=None, db_socket=None, db_pidfile=None, ovs_pidfile=None, dbschema=None, install_prefix=None):

    if (not install_prefix):
        install_prefix = '/'
    if (not db_path):
        db_path = os.path.join(install_prefix, '/etc/openvswitch/conf.db')
    if (not db_socket):
        db_socket = os.path.join(install_prefix, '/var/run/openvswitch/db.sock')
    if (not db_pidfile):
        db_pidfile = os.path.join(install_prefix, '/var/run/openvswitch/ovsdb-server.pid')
    if (not ovs_pidfile):
        ovs_pidfile = os.path.join(install_prefix, '/var/run/openvswitch/ovs-vswitchd.pid')
    if (not dbschema):
        dbschema = os.path.join(install_prefix, '/usr/share/openvswitch/vswitch.ovsschema')
    OpenVSwitchControl.install_prefix = install_prefix
    OpenVSwitchControl.db_path = db_path
    OpenVSwitchControl.db_socket = db_socket
    OpenVSwitchControl.db_pidfile = db_pidfile
    OpenVSwitchControl.ovs_pidfile = ovs_pidfile
    OpenVSwitchControl.dbschema = (install_prefix, dbschema)
    os.environ['PATH'] = (os.path.join(install_prefix, 'usr/bin:') + os.environ['PATH'])
    os.environ['PATH'] = (os.path.join(install_prefix, 'usr/sbin:') + os.environ['PATH'])
    return super(OpenVSwitchControl, cls).__new__(cls)
