Skip to content

Commit

Permalink
improved route command
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasLohr committed Apr 17, 2018
1 parent cfb5ca2 commit 20e9888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions f5fpc-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ def os_exec(command):


def route_add(network, gateway):
return os_exec('route add -net {network} gw {gateway}'.format(network=network, gateway=gateway))
return os_exec('ip route add {network} via {gateway}'.format(network=network, gateway=gateway))


def route_del(network, gateway):
return os_exec('route del -net {network} gw {gateway}'.format(network=network, gateway=gateway))
return os_exec('ip route del {network} via {gateway}'.format(network=network, gateway=gateway))


if __name__ == '__main__':
Expand Down

0 comments on commit 20e9888

Please sign in to comment.