Skip to content

Instantly share code, notes, and snippets.

@mpontillo
Created March 15, 2017 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpontillo/1a6faee09fe674c62dbaab27eb9164f4 to your computer and use it in GitHub Desktop.
Save mpontillo/1a6faee09fe674c62dbaab27eb9164f4 to your computer and use it in GitHub Desktop.
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