On 04/28/2010 11:07 AM, Dmitri Pal wrote:
Is there any way to determine is this is a primary interface or not?
I think we should treat interface through which we established
connection th the server (in my terms "primary" interface) differently
from other interfaces.
If we get notification from the NM about the interface that we used to
talk to server (i.e. "primary interface) we should go offline.
If we get notification from a different interface we should ignore it.
I stated much the same in my reply to the ticket.
Basically, I intend to reuse much of the code I'm going to write for
handling dynamic DNS updates in FreeIPA. We will know which interfaces
are relevant for the provider, and if either of them changes, we can
trigger the offline event.
Thoughts?
Thanks
Dmitri
-------- Original Message --------
Subject: Re: [SSSD] #456: Register with NetworkManager for notifications
Date: Wed, 28 Apr 2010 15:02:49 -0000
From: SSSD<trac(a)fedorahosted.org>
Reply-To: nobody(a)fedoraproject.org
To: undisclosed-recipients:;
References: <048.d00731159f061af1a3cdebde3f0f8c95(a)fedorahosted.org>
#456: Register with NetworkManager for notifications
------------------------------+---------------------------------------------
Reporter: sgallagh | Owner: somebody
Type: enhancement | Status: new
Priority: major | Milestone: NEEDS_TRIAGE
Component: Data Provider | Version: 1.1.1
Resolution: | Keywords:
Fixedin: | Doc: 0
Tests: 1 | Docupdated: 0
Testsupdated: 0 |
------------------------------+---------------------------------------------
Comment (by simo):
Note: this maybe harder then it seem at a first sight.
We can really force offline mode only if *all* interfaces have been shut
down.
If only one of many is stopped we can't just blindly go oflline.
Same sort of consideration for trying to go online apply.
--
Stephen Gallagher
RHCE 804006346421761
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/