Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
How to clear out unknown interfaces in MAAS
# sudo maas-region shell
>>> from maasserver.models import Interface
>>> unknown_interfaces = Interface.objects.filter(type='unknown')
>>> unknown_interfaces.delete()
>>> quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment