
from __future__ import absolute_import
from __future__ import division

from . import expose

from vdsm.network.api import (setSafeNetworkConfig, setupNetworks,
                              change_numvfs, add_ovs_vhostuser_port,
                              network_caps, network_stats, ovs_bridge,
                              add_sourceroute, remove_sourceroute,
                              remove_ovs_port, get_lldp_info)
from vdsm.network.restore_net_config import restore
from vdsm.network.sysctl import set_rp_filter_loose, set_rp_filter_strict
from vdsm.network.tc import setPortMirroring, unsetPortMirroring


@expose
def restoreNetworks(*args, **kwrags):
    return restore(force=True)


expose(setSafeNetworkConfig)
expose(setupNetworks)
expose(network_caps)
expose(network_stats)
expose(change_numvfs)
expose(add_ovs_vhostuser_port)
expose(ovs_bridge)
expose(setPortMirroring)
expose(unsetPortMirroring)
expose(set_rp_filter_loose)
expose(set_rp_filter_strict)
expose(add_sourceroute)
expose(remove_sourceroute)
expose(remove_ovs_port)
expose(get_lldp_info)
