How to update the ip mode in an interface using MAAS CLI

Hello,
I am trying to update the “mode” under the “links” for an interface for a machine using the MAAS CLI.
I tried something like this:
maas admin interface update mek83x 7 links=[{mode=auto}]
OR
maas admin interface update mek83x 7 links=[0]{mode=auto}

but does not work as I think I have the syntax incorrect.
Can anyone please point me in the right direction?

Thanks,
-Farhan.

@fpatwa, did you mean:’ maas admin interface link-subnet mode='AUTO" ?

Thanks @billwear, Just found that command yesterday!
I was looking at the wrong places and did not realize the subcommands under “interface”

Thanks,

-Farhan.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.