Example #1
0
    def is_local(self, arg):
        if util.get_type(arg) != "ip":
            return False

        return util.is_local(self.local_networks, arg)
Example #2
0
    def is_local(self, arg):
        if util.get_type(arg) not in ["ip", "ip6"]:
            return False

        return util.is_local(self.local_networks, arg)
Example #3
0
def is_local_case(networks, ip, result):
    assert util.is_local(networks, ip) == result
Example #4
0
def is_local_case(networks, ip, result):
    assert util.is_local(networks, ip) == result
Example #5
0
    def is_local(self, arg):
        if util.get_type(arg) not in ["ip", "ip6"]:
            return False

        return util.is_local(self.local_networks, arg)