This adds a new util package with some useful functionality which could be implemented as pure mcl, but instead we add it here as a good place to help with code reuse.
13 lines
226 B
Plaintext
13 lines
226 B
Plaintext
import "util"
|
|
|
|
$m = {
|
|
"00:11:22:33:44:55" => "hostname1",
|
|
"00:11:22:33:44:56" => "hostname1",
|
|
"aa:bb:cc:dd:ee:fe" => "hostname2",
|
|
"aa:bb:cc:dd:ee:ff" => "hostname2",
|
|
}
|
|
|
|
print "mapper" {
|
|
msg => util.hostname_mapper($m),
|
|
}
|