Re: Change the state of iface from disconnected to connected using nmcli



On Sun, 2012-03-18 at 23:43 +0530, Abhijeet Rastogi wrote:
> Hi,
> 
> 
> This is my first post here. I have tried googling and looking at the
> manpage but no help. 
> 
> 
> We can use 
> 
> 
> $nmcli dev disconnect iface eth0
> 
> 
> to change the state of eth0 to disconnect. Is there a command to
> change it's state back to connected? I tried looking at the manpage &
> I can't seem to find  any option for that.

At the moment, you need to tell NM to reconnect to something, eg 'nmcli
con up uuid <uuid>'.  Disconnect places the device into manual mode
which requires user action to return to automatic mode.  I suppose we
can add an 'autoconnect' property to each device, which Disconnect()
would set to false, but which could be changed via the D-Bus properties
interface (authenticated of course) back to TRUE.  This property would
follow the internal 'autoconnect_inhibit' device member variable and the
NMPolicy would listen for changes to this variable and retrigger an auto
connection check if it changes back to TRUE.  Patches accepted for that.

Dan

> 
> I did a comprehensive as to why I want this
> here. https://bbs.archlinux.org/viewtopic.php?pid=1073943
> Please have a look. 
> 
> 
> Thanks
> 
> 
> -- 
> Regards,
> Abhijeet Rastogi (shadyabhi)
> https://plus.google.com/107316377741966576356/
> 
> 
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]