Bridge Hosts to Interface Comments Script

Does anyone have a script that goes through the Bridge → Hosts table, looks up each MAC as a hostname and comments it in the Interfaces page. This would effectively show what is plugged into each interface. I think it would be really useful.

Some like this:

It looks up all data in “ip arp
For each entry it gets IP and MAC
The we lookup the mac in “ip bridge host” to get physical interface

:foreach i in=[/ip arp find] do={
	:local if
	:local localmac [get $i mac-address]
	:local address [get $i address]
	:do {
		:set if [/interface bridge host get [find where mac-address=$localmac] interface]
	} on-error={}
	:put "Mac=$localmac Address=$address Interface=$if"
}

I guess ut could be created the other way around as well.