Re: Managing a connection using D-Bus API



Can you post a link to your current code? I should be able to help you
out or I can add something to the API if there's nothing workable
right now. It is a little incomplete but should be able to get what
you want.

On Thu, Jul 1, 2010 at 08:56, Ozan Çağlayan <ozan pardus org tr> wrote:
> Hi,
>
> I'm writing a Python script which uses python-networkmanager for communicating
> with NetworkManager's D-Bus facilities.
>
> I want to disconnect an active connection. Using the nm-applet, we are not
> forced to write a MAC address for a connection.
>
> Say that I want to disconnect the device eth0 AA:BB:CC:DD:EE:FF which is
> currently connected to the connection with the ID "WiredConnection1".
>
> Since the connection doesn't have an hwaddress set, I can't match the
> connection with the device. What I want to do is sth like that:
>
> python network.py down WiredConnection1
>
> Is it ever possible (without providing connection UUID)?
>
> Thanks,
>
> ---
> Ozan Çağlayan
> TUBITAK/UEKAE - Pardus Linux
> http://www.pardus.org.tr/eng
> _______________________________________________
> 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]