This could be fixed in src/maasserver/api/pxeconfig.py, but it would require:
(1) trusting the web request that generates it. (which is probably okay)
(2) juggling the current DISCOVERED (observed) IP addresses around, which could be non-trivial. (are they IPv4 or IPv6? are they empty? are we sure they are linked to *just* the interface which claims to have been discovered?)
This could be fixed in src/maasserver/ api/pxeconfig. py, but it would require:
(1) trusting the web request that generates it. (which is probably okay)
(2) juggling the current DISCOVERED (observed) IP addresses around, which could be non-trivial. (are they IPv4 or IPv6? are they empty? are we sure they are linked to *just* the interface which claims to have been discovered?)