def add_route(network, netmask, next_hop, interface): if not validate_ip(network): print("Not a valid network IP") return if not validate_ip(netmask): print("Not a valid netmask IP") return if not validate_ip(next_hop): print("Not a valid next_hop IP") return # TODO validate interface GINIC.addRoute(network, netmask, next_hop, interface)
def addRoute(*args): return _GINIC.addRoute(*args)