summaryrefslogtreecommitdiffstats
path: root/tests/03_rules/21_mac_ranges
blob: 0aaed36ad3cf72c3512f4e3c26d706e8ddf021c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Testing MAC address range parsing.

-- Testcase --
{%
	fw4.load(false);
	print(fw4.parse_mac("aa:bb:cc:dd:ee:ff-11:22:33:44:55:66").mac, "\n");
	let m = fw4.parse_mac("aa:bb:cc:dd:ee:ff11:22:33:44:55:66");
	print(m ? m.mac : "null", "\n");
%}
-- End --

-- File uci/helpers.json --
{}
-- End --

-- File uci/firewall.json --
{}
-- End --

-- Expect stdout --
aa:bb:cc:dd:ee:ff-11:22:33:44:55:66
null
-- End --