Example #1
0
def step_impl(context, destination, device):
    route = Route(destination, device)
    assert route.exists()
Example #2
0
def step_impl(context, destination, device):
    route = Route(destination, device)
    if route.exists():
        route.delete()
Example #3
0
 def test_contains_route(self, execute_command):
     execute_command.return_value = self.ip_route_list_output
     route = Route('default', 'wlo1')
     route.gateway = '192.168.0.254'
     self.assertTrue(route.exists())
     execute_command.assert_called_once_with('ip route list', namespace=None)