How to use the ifcfg.default_interface function in ifcfg

To help you get started, we’ve selected a few ifcfg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ftao / python-ifcfg / tests / ifconfig_tests.py View on Github external
def test_default_interface(self):
        ifcfg.distro = 'Linux'
        ifcfg.Parser = LinuxParser
        route_output = ifconfig_out.ROUTE_OUTPUT
        res = ifcfg.default_interface(
            ifconfig=ifconfig_out.LINUX3, route_output=route_output
        )
        ok_(res)
github ftao / python-ifcfg / tests / ip_tests.py View on Github external
def test_default_interface(self):
        ifcfg.distro = 'Linux'
        ifcfg.Parser = UnixIPParser
        res = ifcfg.default_interface(
            ifconfig=ip_out.LINUX,
            route_output=ip_out.ROUTE_OUTPUT_IPROUTE
        )
        ok_(res)