Created
March 15, 2017 17:21
-
-
Save mpontillo/1a6faee09fe674c62dbaab27eb9164f4 to your computer and use it in GitHub Desktop.
How to clear out unknown interfaces in MAAS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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