aboutsummaryrefslogtreecommitdiff
path: root/tests/failover/new-failover
blob: 65d82e013f871c6cf6c0718b1c1c30845e985118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

foo=10
while [ $foo -lt 100 ]; do
  cat >>dhcp-1.leases <<~
lease 10.0.0.$foo {
  starts 4 2001/05/01 02:19:16;
  ends 5 2021/05/03 02:29:16;
  binding state active;
  next binding state free;
  hardware ethernet 08:00:46:06:6c:23;
  uid "test-$foo";
}
~
  foo=`expr $foo + 1`
  cat >>dhcp-2.leases <<~
lease 10.0.0.$foo {
  starts 4 2001/04/19 02:19:16;
  ends 5 2021/04/21 02:29:16;
  binding state active;
  next binding state free;
  hardware ethernet 08:00:46:06:6c:23;
  uid "test-$foo";
}
~
  foo=`expr $foo + 1`
done