How to set fabric using python client


#1

maas 2.3.5

When a new machine is discovered, my primary 10 gbps interface is assigned to the wrong fabric so when I go to assign a vlan to it, it fails, I assume because the VLAN is part of a different fabric. If I fix the fabric using the GUI and then run my script, it works fine.

So how can I set the fabric in my script? I don’t see the fabric listed as an attribute of the physical interface in python, but I can set it via the GUI.