<p>Thanks Andy!</p>

<p><a href="https://github.com/openwrt/luci/blob/7a3493b1f7d75a3945279115324cf2ff4da26b7b/modules/luci-base/luasrc/model/network.lua#L1068-L1070">Here is the code you are looking for:</a></p>

<pre><code>function interface.mac(self)
    return (self:_ubus("macaddr") or "00:00:00:00:00:00"):upper()
end
</code></pre>

<p><a href="https://github.com/openwrt/luci/blob/7a3493b1f7d75a3945279115324cf2ff4da26b7b/modules/luci-base/luasrc/model/network.lua#L1053-L1062">And, here is that Ubus code that is returning None, causing the "00:00:00:00:00:00" to be returned</a></p>

<pre><code>function interface._ubus(self, field)
    if not _ubusdevcache[self.ifname] then
        _ubusdevcache[self.ifname] = utl.ubus("network.device", "status",
                                                                     { name = self.ifname })
    end
    if _ubusdevcache[self.ifname] and field then
        return _ubusdevcache[self.ifname][field]
    end
    return _ubusdevcache[self.ifname]
end
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/luci-commotion/issues/467#issuecomment-103942002">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AC7qBJ3PCIGHOpw7PSuhfNvkp5vTK1mqks5oLKjDgaJpZM4EfGfo.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/opentechinstitute/luci-commotion/issues/467#issuecomment-103942002"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>