From ngo-bounces@ietf.org Thu May 03 17:06:23 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HjiVL-0006VX-4u; Thu, 03 May 2007 17:06:23 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HjiVJ-0006PY-T7
	for ngo@ietf.org; Thu, 03 May 2007 17:06:21 -0400
Received: from smtp108.sbc.mail.re2.yahoo.com ([68.142.229.97])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1HjiVJ-0001Hy-GU
	for ngo@ietf.org; Thu, 03 May 2007 17:06:21 -0400
Received: (qmail 34589 invoked from network); 3 May 2007 21:06:21 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@75.50.191.242
	with plain)
	by smtp108.sbc.mail.re2.yahoo.com with SMTP; 3 May 2007 21:06:20 -0000
X-YMail-OSG: cxwzXd4VM1nVj4__Mbjt_oIZ03BLOFDtg6k8TdawD68lGFx9etCm0CU4Zy7qTm_ISwuKV8hAVQg1binC6GH8JbRc91GLxUyuSXyHnsj.UfCQoaSytxYp.g--
Message-ID: <463A4EA9.20109@andybierman.com>
Date: Thu, 03 May 2007 14:05:45 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Balazs Lengyel <balazs.lengyel@ericsson.com>
References: <461A540A.30407@andybierman.com> <461B4F9E.3030401@ericsson.com>
	<461BA0DB.6090500@andybierman.com> <461BA7E8.7070201@ericsson.com>
In-Reply-To: <461BA7E8.7070201@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 48472a944c87678fcfe8db15ffecdfff
Cc: NETCONF Goes On <ngo@ietf.org>
Subject: [NGO] Re: multi-session locks
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hi Balazs,

I like your proposal, except for a few details.


---------------------------
To summarize, a partial lock is a lock on one particular subtree
in the conceptual data model. (Or is is an arbitrary Xpath expression?)

For example:

   lock (/interfaces) locks the interfaces node and all interface entries

   lock (/interfaces/interface) locks all interface nodes

   lock (/interfaces/interface[ifIndex=3]) locks the entire ifEntry.3

   lock (/interfaces/interface[ifIndex=3]/ifMtu) locks just the ifMtu.3 leaf


Each session can have zero or more partial locks on the same target config.

A partial unlock only affects the specified sub-tree and no other locks.

A session termination only affects the partial locks held by that session.

If any partial locks are active, then a request for a full lock will fail.

If a full lock is active then any request for a partial lock on the same
target will fail.

If no lock is active on the target, then a request for a full lock or
a partial lock will succeed.

If any partial locks are active on the target, then a request for a partial
lock will only succeed if the Xpath expression does not identify any nodes
with are already partially locked.
-----------------------------------------------

I believe the only difference between this and your proposal is
the requirement to support full locks at all.  The protocol is
quite clear about this conformance requirement, and compliant managers
that do not know about the partial locks will break if the <lock>
command always fails no matter what.


Andy



> Hello Andy,
> 
> Andy Bierman wrote:
>> Balazs Lengyel wrote:
>>> Hello Andy,
>>> For us the question is even more interesting, as parts of our big 
>>> node configuration might be administered by different 
>>> people/organizations using different management tools; so allowing 
>>> operator A to deny configuration operations for operator B sounds 
>>> really bad.
>>>
>>> IMO we have here two separate questions:
>>> - What can be locked: full data-store, a sub-tree, any group of 
>>> managed objects?
>>
>> Related config data can be spread around the entire XML tree.
>> Limiting access to a single subtree will be too restrictive.
>> Locking access by namespace or 'namespace owner' may also
>> be too restrictive, given the various ways namespaces are used.
> [Balazs]: It can be spread out, but often it is not. I believe a subtree 
> based locking could be useful for many users. E.g. our node includes 
> both a gateway and a router. In this case there is a natural division of 
> config data into sub-trees. Also while working with British Telecom I 
> saw that they had separate (human) operators for performance management. 
> In many nodes administering PM data was in a separate sub-tree from the 
> rest of configuration.
>>
>> You end up with an arbitrary Xpath expression for the lock,
>> which can include all kinds of bizarre corner-cases where
>> parts of the config transition in and out of locked state,
>> as different clauses in the Xpath expression change value over time.
>> (Not a fan of this 12 pound hammer for every job!)
> [Balazs]: I agree that the full XPATH is a heavy hammer, but we could 
> leave it to the implementors to decide if they want just sub-trees, or 
> the full heavy hammer or nothing.
>>
>>> - Who can used a locked entity: one session, any session connected to 
>>> one userId or groupId?
>>
>> Clearly the unit of measure is the session.
>> The group of writers is an integral number of NETCONF sessions.
> [Balazs]: Agree.
>>
>>>
>>> IMO the first step in any lock related work is to allow the node to 
>>> reject the global lock, else some old manager application will come 
>>> and lock the whole node.
>>
>> Yes, but this falls out for free if the reason the agent is denying
>> the lock is because some form of lock is already held.  The logic
>> for explicit locking is simple, and fits in with the current scheme:
>>
>>   - If no-locks-held then grant lock request
>>   - If global lock held then deny lock request
>>   - If partial lock held then deny global lock request, but
>>     analyze partial lock request to determine if it can be granted
>>   - Dropped session only releases the lock held by that session,
>>     so if it is partial then other partial locks by other sessions
>>     are not affected.  (This makes lock discovery an issue.)
> [Balazs]: I might want to disallow global locking, because I always want 
> the partial lock to be always available, but maybe this can be left to 
> the specific access control model.
>>
>>
>>>
>>> The next step (as you point out below) is that partial locking has a 
>>> difficulty with candidate configurations. At least commit, 
>>> discard-changes, delete-config and copy-config needs a full lock (or 
>>> rather an absence of any lock on any part of the datastore). 
>>> Theoretically we could have a partitioned candidate data-store with 
>>> partial commit etc. but I think that's too complicated to be usable.
>>
>>
>> I think partial locking on a global candidate is very problematic.
>> I don't want to rewrite any text in RFC 4741 related to commit,
>> discard-changes, and confirmed-commit.  We would need to introduce
>> a candidate-per-session architecture, which is very TBD.
> [Balazs]: Agree, it would be too complicated.
>>
>>>
>>> All in all I see the following possibilities:
>>> - A complete SQL-database-like implicit locking mechanism works well, 
>>> but might be a heavy task for small nodes
>>> - I also see an important use-case in dividing up the configuration 
>>> into disjunct parts and locking those (e.g. a sub-tree). This way 
>>> each operator could configure his own part. It is not feasible to 
>>> define the sub-trees at design time.
>>> - Multi-session locks can also be useful, if it is the same 
>>> person/group using the same lock simultaneously. We could utilize 
>>> something like the groupId or userId for this purpose.
>>>
>>> In our implementation we will have just a writable running config. 
>>> The size of this will be so big, that that alone precludes keeping a 
>>> candidate. The running datastore will work somewhat like a normal SQL 
>>> database. It locks what is needed without explicit lock operations.
>>
>>
>> Even with implicit locking, it is important that the manager
>> give explicit indications to the agent that it is:
>>  - starting a transaction
>>  - canceling a transaction
>>  - committing a transaction
>>
>> We already have the candidate model work this way for a global config,
>> and changing the running config model to also work that way seems
>> complicated and redundant.
> [Balazs]: You don't need explicit transactions for this. You just lock 
> the config and handle each edit-config as a separate transaction.
> IMO we already have 2 transaction models in Netconf. One with the 
> candidate configuration the other without. Without all you have is: one 
> operation is one transaction with roll-back-on-error.
> Also there are nodes out there that already work with explicit 
> start-cancel-commit transaction operations (not yet on Netconf). I know 
> of a company (not mine) who is already implementing explicit 
> start-cancel-commit transaction Netconf operations.
>>
>>
>>>
>>> See also some comments below:
>>>
>>> Andy Bierman wrote:
>>>> Hi Balazs,
>>>>
>>>> I am very interested in the partial database locking problem
>>>> that we discussed at the last interim.  I think that you are
>>>> right wrt/ your concerns about the "1 user global lock" design
>>>> for large devices.
>>>>
> 
> 


_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Thu May 03 17:14:57 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hjidd-0003uv-70; Thu, 03 May 2007 17:14:57 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hjidb-0003uq-Tz
	for ngo@ietf.org; Thu, 03 May 2007 17:14:55 -0400
Received: from smtp107.sbc.mail.re2.yahoo.com ([68.142.229.98])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1Hjidb-0002iB-HJ
	for ngo@ietf.org; Thu, 03 May 2007 17:14:55 -0400
Received: (qmail 66573 invoked from network); 3 May 2007 21:14:55 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@75.50.191.242
	with plain)
	by smtp107.sbc.mail.re2.yahoo.com with SMTP; 3 May 2007 21:14:55 -0000
X-YMail-OSG: RU5l4.oVM1neUPCeKQMIyNdn2lpXoY0.bNnYUbvyPtxwqFub7WmnJfGbn10.m9j05CYeL3nDdb96iD6jPV3wTyrgAg--
Message-ID: <463A50AB.5020000@andybierman.com>
Date: Thu, 03 May 2007 14:14:19 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Andy Bierman <ietf@andybierman.com>
Subject: Re: [NGO] Re: multi-session locks
References: <461A540A.30407@andybierman.com>
	<461B4F9E.3030401@ericsson.com>	<461BA0DB.6090500@andybierman.com>
	<461BA7E8.7070201@ericsson.com> <463A4EA9.20109@andybierman.com>
In-Reply-To: <463A4EA9.20109@andybierman.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 311e798ce51dbeacf5cdfcc8e9fda21b
Cc: NETCONF Goes On <ngo@ietf.org>
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Andy Bierman wrote:
> Hi Balazs,
> 
> I like your proposal, except for a few details.
> 
> 

Forgot one important 'rule' (to make Wes happy ;-)

If a session does not have write access to any node identified in
the Xpath expression for a partial lock request, the lock will
not be granted.

This doesn't fix the DoS attack for a full lock, just a partial lock.

Andy

> ---------------------------
> To summarize, a partial lock is a lock on one particular subtree
> in the conceptual data model. (Or is is an arbitrary Xpath expression?)
> 
> For example:
> 
>   lock (/interfaces) locks the interfaces node and all interface entries
> 
>   lock (/interfaces/interface) locks all interface nodes
> 
>   lock (/interfaces/interface[ifIndex=3]) locks the entire ifEntry.3
> 
>   lock (/interfaces/interface[ifIndex=3]/ifMtu) locks just the ifMtu.3 leaf
> 
> 
> Each session can have zero or more partial locks on the same target config.
> 
> A partial unlock only affects the specified sub-tree and no other locks.
> 
> A session termination only affects the partial locks held by that session.
> 
> If any partial locks are active, then a request for a full lock will fail.
> 
> If a full lock is active then any request for a partial lock on the same
> target will fail.
> 
> If no lock is active on the target, then a request for a full lock or
> a partial lock will succeed.
> 
> If any partial locks are active on the target, then a request for a partial
> lock will only succeed if the Xpath expression does not identify any nodes
> with are already partially locked.
> -----------------------------------------------
> 
> I believe the only difference between this and your proposal is
> the requirement to support full locks at all.  The protocol is
> quite clear about this conformance requirement, and compliant managers
> that do not know about the partial locks will break if the <lock>
> command always fails no matter what.
> 
> 
> Andy
> 
> 
> 
>> Hello Andy,
>>
>> Andy Bierman wrote:
>>> Balazs Lengyel wrote:
>>>> Hello Andy,
>>>> For us the question is even more interesting, as parts of our big 
>>>> node configuration might be administered by different 
>>>> people/organizations using different management tools; so allowing 
>>>> operator A to deny configuration operations for operator B sounds 
>>>> really bad.
>>>>
>>>> IMO we have here two separate questions:
>>>> - What can be locked: full data-store, a sub-tree, any group of 
>>>> managed objects?
>>>
>>> Related config data can be spread around the entire XML tree.
>>> Limiting access to a single subtree will be too restrictive.
>>> Locking access by namespace or 'namespace owner' may also
>>> be too restrictive, given the various ways namespaces are used.
>> [Balazs]: It can be spread out, but often it is not. I believe a 
>> subtree based locking could be useful for many users. E.g. our node 
>> includes both a gateway and a router. In this case there is a natural 
>> division of config data into sub-trees. Also while working with 
>> British Telecom I saw that they had separate (human) operators for 
>> performance management. In many nodes administering PM data was in a 
>> separate sub-tree from the rest of configuration.
>>>
>>> You end up with an arbitrary Xpath expression for the lock,
>>> which can include all kinds of bizarre corner-cases where
>>> parts of the config transition in and out of locked state,
>>> as different clauses in the Xpath expression change value over time.
>>> (Not a fan of this 12 pound hammer for every job!)
>> [Balazs]: I agree that the full XPATH is a heavy hammer, but we could 
>> leave it to the implementors to decide if they want just sub-trees, or 
>> the full heavy hammer or nothing.
>>>
>>>> - Who can used a locked entity: one session, any session connected 
>>>> to one userId or groupId?
>>>
>>> Clearly the unit of measure is the session.
>>> The group of writers is an integral number of NETCONF sessions.
>> [Balazs]: Agree.
>>>
>>>>
>>>> IMO the first step in any lock related work is to allow the node to 
>>>> reject the global lock, else some old manager application will come 
>>>> and lock the whole node.
>>>
>>> Yes, but this falls out for free if the reason the agent is denying
>>> the lock is because some form of lock is already held.  The logic
>>> for explicit locking is simple, and fits in with the current scheme:
>>>
>>>   - If no-locks-held then grant lock request
>>>   - If global lock held then deny lock request
>>>   - If partial lock held then deny global lock request, but
>>>     analyze partial lock request to determine if it can be granted
>>>   - Dropped session only releases the lock held by that session,
>>>     so if it is partial then other partial locks by other sessions
>>>     are not affected.  (This makes lock discovery an issue.)
>> [Balazs]: I might want to disallow global locking, because I always 
>> want the partial lock to be always available, but maybe this can be 
>> left to the specific access control model.
>>>
>>>
>>>>
>>>> The next step (as you point out below) is that partial locking has a 
>>>> difficulty with candidate configurations. At least commit, 
>>>> discard-changes, delete-config and copy-config needs a full lock (or 
>>>> rather an absence of any lock on any part of the datastore). 
>>>> Theoretically we could have a partitioned candidate data-store with 
>>>> partial commit etc. but I think that's too complicated to be usable.
>>>
>>>
>>> I think partial locking on a global candidate is very problematic.
>>> I don't want to rewrite any text in RFC 4741 related to commit,
>>> discard-changes, and confirmed-commit.  We would need to introduce
>>> a candidate-per-session architecture, which is very TBD.
>> [Balazs]: Agree, it would be too complicated.
>>>
>>>>
>>>> All in all I see the following possibilities:
>>>> - A complete SQL-database-like implicit locking mechanism works 
>>>> well, but might be a heavy task for small nodes
>>>> - I also see an important use-case in dividing up the configuration 
>>>> into disjunct parts and locking those (e.g. a sub-tree). This way 
>>>> each operator could configure his own part. It is not feasible to 
>>>> define the sub-trees at design time.
>>>> - Multi-session locks can also be useful, if it is the same 
>>>> person/group using the same lock simultaneously. We could utilize 
>>>> something like the groupId or userId for this purpose.
>>>>
>>>> In our implementation we will have just a writable running config. 
>>>> The size of this will be so big, that that alone precludes keeping a 
>>>> candidate. The running datastore will work somewhat like a normal 
>>>> SQL database. It locks what is needed without explicit lock operations.
>>>
>>>
>>> Even with implicit locking, it is important that the manager
>>> give explicit indications to the agent that it is:
>>>  - starting a transaction
>>>  - canceling a transaction
>>>  - committing a transaction
>>>
>>> We already have the candidate model work this way for a global config,
>>> and changing the running config model to also work that way seems
>>> complicated and redundant.
>> [Balazs]: You don't need explicit transactions for this. You just lock 
>> the config and handle each edit-config as a separate transaction.
>> IMO we already have 2 transaction models in Netconf. One with the 
>> candidate configuration the other without. Without all you have is: 
>> one operation is one transaction with roll-back-on-error.
>> Also there are nodes out there that already work with explicit 
>> start-cancel-commit transaction operations (not yet on Netconf). I 
>> know of a company (not mine) who is already implementing explicit 
>> start-cancel-commit transaction Netconf operations.
>>>
>>>
>>>>
>>>> See also some comments below:
>>>>
>>>> Andy Bierman wrote:
>>>>> Hi Balazs,
>>>>>
>>>>> I am very interested in the partial database locking problem
>>>>> that we discussed at the last interim.  I think that you are
>>>>> right wrt/ your concerns about the "1 user global lock" design
>>>>> for large devices.
>>>>>
>>
>>
> 
> 
> _______________________________________________
> NGO mailing list
> NGO@ietf.org
> https://www1.ietf.org/mailman/listinfo/ngo
> 
> 


_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 04 08:54:56 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HjxJF-0000T4-4o; Fri, 04 May 2007 08:54:53 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HjxJE-0000S2-4C
	for ngo@ietf.org; Fri, 04 May 2007 08:54:52 -0400
Received: from mailgw3.ericsson.se ([193.180.251.60])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HjxJC-0000KM-VQ
	for ngo@ietf.org; Fri, 04 May 2007 08:54:52 -0400
Received: from mailgw3.ericsson.se (unknown [127.0.0.1])
	by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
	C3A322096E; Fri,  4 May 2007 14:54:45 +0200 (CEST)
X-AuditID: c1b4fb3c-ac51ebb0000073d5-be-463b2d15e036 
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122])
	by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
	A513E205A3; Fri,  4 May 2007 14:54:45 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by
	esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 4 May 2007 14:54:45 +0200
Received: from [159.107.196.23] ([159.107.196.23]) by
	esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 4 May 2007 14:54:45 +0200
Message-ID: <463B2D14.1080805@ericsson.com>
Date: Fri, 04 May 2007 14:54:44 +0200
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 1.5.0.10 (X11/20070221)
MIME-Version: 1.0
To: Andy Bierman <ietf@andybierman.com>
Subject: Re: [NGO] Re: multi-session locks
References: <461A540A.30407@andybierman.com>
	<461B4F9E.3030401@ericsson.com>	<461BA0DB.6090500@andybierman.com>
	<461BA7E8.7070201@ericsson.com> <463A4EA9.20109@andybierman.com>
	<463A50AB.5020000@andybierman.com>
In-Reply-To: <463A50AB.5020000@andybierman.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 04 May 2007 12:54:45.0306 (UTC)
	FILETIME=[63E609A0:01C78E4B]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6907f330301e69261fa73bed91449a20
Cc: NETCONF Goes On <ngo@ietf.org>
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hello Andy,
See answers below!
Would you support the draft in the IETF?
regards Balazs

Andy Bierman wrote:
> Andy Bierman wrote:
>> Hi Balazs,
>>
>> I like your proposal, except for a few details.
>>
>>
> 
> Forgot one important 'rule' (to make Wes happy ;-)
> 
> If a session does not have write access to any node identified in
> the Xpath expression for a partial lock request, the lock will
> not be granted.
{BALAZS]: What if we want to a lock a subtree, then read some data and release the lock. The 
aim is to guarantee we read a consistent set of data. Do we still need write access rights? 
Maybe this issue is just an unneeded complication, but I would like your opinion about it.
> 
> This doesn't fix the DoS attack for a full lock, just a partial lock.
> 
> Andy
> 
>> ---------------------------
>> To summarize, a partial lock is a lock on one particular subtree
>> in the conceptual data model. (Or is is an arbitrary Xpath expression?)
{BALAZS]:Locking, candidate configuration and access control together can become complicated 
enough; so I  propose locking one or more subtrees. If a node is locked, the complete subtree 
below it should also be locked. I feel that's simple enough and powerful enough.
>>
>> For example:
>>
>>   lock (/interfaces) locks the interfaces node and all interface entries
>>
>>   lock (/interfaces/interface) locks all interface nodes
>>
>>   lock (/interfaces/interface[ifIndex=3]) locks the entire ifEntry.3
>>
>>   lock (/interfaces/interface[ifIndex=3]/ifMtu) locks just the ifMtu.3 
>> leaf
{BALAZS]:Yes that's how I see it as well.
>>
>>
>> Each session can have zero or more partial locks on the same target 
>> config.
>>
>> A partial unlock only affects the specified sub-tree and no other locks.
>>
{BALAZS]:Speaking with Martin he convinced me, that it would be better to use a lockId instead 
of a filter based unlocking. The lock operation would return the lockId (unique at least for 
the session, but rather for the node). In the unlock operation the the manager would specify 
this lockId, but no filter. This simpler, less error prone and would avoid some difficult cases:
- what if the lock and unlock filters don't match
- what happens if I lock /interfaces and later I unlock /interfaces/interface[ifIndex=3]
- what if I lock /interfaces/interface[ifIndex=3] and later I unlock /interfaces
>> A session termination only affects the partial locks held by that 
>> session.
>>
>> If any partial locks are active, then a request for a full lock will 
>> fail.
>>
>> If a full lock is active then any request for a partial lock on the same
>> target will fail.
>>
>> If no lock is active on the target, then a request for a full lock or
>> a partial lock will succeed.
>>
>> If any partial locks are active on the target, then a request for a 
>> partial
>> lock will only succeed if the Xpath expression does not identify any 
>> nodes
>> with are already partially locked.
>> -----------------------------------------------
>>
>> I believe the only difference between this and your proposal is
>> the requirement to support full locks at all.  The protocol is
>> quite clear about this conformance requirement, and compliant managers
>> that do not know about the partial locks will break if the <lock>
>> command always fails no matter what.
{BALAZS]: Strictly speaking my draft does not speak about the possibility to reject global 
locking, although you are right about my hidden ideas :-) But as for now it is not in the draft 
I believe.

{BALAZS]:Some other rules:
- If a locked subtree is deleted, the lock is still valid, meaning that another session can not 
re-create the same subtree while the lock is still held. (You could argue the other way as 
well, but at least it must be stated.)
- I would also like to follow Martin with avoiding any special interactions between the partial 
lock and the candidate configuration. Anything like we have in rfc4741:
"When a client fails with outstanding changes to the candidate
    configuration, recovery can be difficult.  To facilitate easy
    recovery, any outstanding changes are discarded when the lock is
    released, whether explicitly with the <unlock> operation or
    implicitly from session failure."
- others ?
>>
>>
>> Andy
>>
>>
>>
>>> Hello Andy,
>>>
>>> Andy Bierman wrote:
>>>> Balazs Lengyel wrote:
>>>>> Hello Andy,
>>>>> For us the question is even more interesting, as parts of our big 
>>>>> node configuration might be administered by different 
>>>>> people/organizations using different management tools; so allowing 
>>>>> operator A to deny configuration operations for operator B sounds 
>>>>> really bad.
>>>>>
>>>>> IMO we have here two separate questions:
>>>>> - What can be locked: full data-store, a sub-tree, any group of 
>>>>> managed objects?
>>>>
>>>> Related config data can be spread around the entire XML tree.
>>>> Limiting access to a single subtree will be too restrictive.
>>>> Locking access by namespace or 'namespace owner' may also
>>>> be too restrictive, given the various ways namespaces are used.
>>> [Balazs]: It can be spread out, but often it is not. I believe a 
>>> subtree based locking could be useful for many users. E.g. our node 
>>> includes both a gateway and a router. In this case there is a natural 
>>> division of config data into sub-trees. Also while working with 
>>> British Telecom I saw that they had separate (human) operators for 
>>> performance management. In many nodes administering PM data was in a 
>>> separate sub-tree from the rest of configuration.
>>>>
>>>> You end up with an arbitrary Xpath expression for the lock,
>>>> which can include all kinds of bizarre corner-cases where
>>>> parts of the config transition in and out of locked state,
>>>> as different clauses in the Xpath expression change value over time.
>>>> (Not a fan of this 12 pound hammer for every job!)
>>> [Balazs]: I agree that the full XPATH is a heavy hammer, but we could 
>>> leave it to the implementors to decide if they want just sub-trees, 
>>> or the full heavy hammer or nothing.
>>>>
>>>>> - Who can used a locked entity: one session, any session connected 
>>>>> to one userId or groupId?
>>>>
>>>> Clearly the unit of measure is the session.
>>>> The group of writers is an integral number of NETCONF sessions.
>>> [Balazs]: Agree.
>>>>
>>>>>
>>>>> IMO the first step in any lock related work is to allow the node to 
>>>>> reject the global lock, else some old manager application will come 
>>>>> and lock the whole node.
>>>>
>>>> Yes, but this falls out for free if the reason the agent is denying
>>>> the lock is because some form of lock is already held.  The logic
>>>> for explicit locking is simple, and fits in with the current scheme:
>>>>
>>>>   - If no-locks-held then grant lock request
>>>>   - If global lock held then deny lock request
>>>>   - If partial lock held then deny global lock request, but
>>>>     analyze partial lock request to determine if it can be granted
>>>>   - Dropped session only releases the lock held by that session,
>>>>     so if it is partial then other partial locks by other sessions
>>>>     are not affected.  (This makes lock discovery an issue.)
>>> [Balazs]: I might want to disallow global locking, because I always 
>>> want the partial lock to be always available, but maybe this can be 
>>> left to the specific access control model.
>>>>
>>>>
>>>>>
>>>>> The next step (as you point out below) is that partial locking has 
>>>>> a difficulty with candidate configurations. At least commit, 
>>>>> discard-changes, delete-config and copy-config needs a full lock 
>>>>> (or rather an absence of any lock on any part of the datastore). 
>>>>> Theoretically we could have a partitioned candidate data-store with 
>>>>> partial commit etc. but I think that's too complicated to be usable.
>>>>
>>>>
>>>> I think partial locking on a global candidate is very problematic.
>>>> I don't want to rewrite any text in RFC 4741 related to commit,
>>>> discard-changes, and confirmed-commit.  We would need to introduce
>>>> a candidate-per-session architecture, which is very TBD.
>>> [Balazs]: Agree, it would be too complicated.
>>>>
>>>>>
>>>>> All in all I see the following possibilities:
>>>>> - A complete SQL-database-like implicit locking mechanism works 
>>>>> well, but might be a heavy task for small nodes
>>>>> - I also see an important use-case in dividing up the configuration 
>>>>> into disjunct parts and locking those (e.g. a sub-tree). This way 
>>>>> each operator could configure his own part. It is not feasible to 
>>>>> define the sub-trees at design time.
>>>>> - Multi-session locks can also be useful, if it is the same 
>>>>> person/group using the same lock simultaneously. We could utilize 
>>>>> something like the groupId or userId for this purpose.
>>>>>
>>>>> In our implementation we will have just a writable running config. 
>>>>> The size of this will be so big, that that alone precludes keeping 
>>>>> a candidate. The running datastore will work somewhat like a normal 
>>>>> SQL database. It locks what is needed without explicit lock 
>>>>> operations.
>>>>
>>>>
>>>> Even with implicit locking, it is important that the manager
>>>> give explicit indications to the agent that it is:
>>>>  - starting a transaction
>>>>  - canceling a transaction
>>>>  - committing a transaction
>>>>
>>>> We already have the candidate model work this way for a global config,
>>>> and changing the running config model to also work that way seems
>>>> complicated and redundant.
>>> [Balazs]: You don't need explicit transactions for this. You just 
>>> lock the config and handle each edit-config as a separate transaction.
>>> IMO we already have 2 transaction models in Netconf. One with the 
>>> candidate configuration the other without. Without all you have is: 
>>> one operation is one transaction with roll-back-on-error.
>>> Also there are nodes out there that already work with explicit 
>>> start-cancel-commit transaction operations (not yet on Netconf). I 
>>> know of a company (not mine) who is already implementing explicit 
>>> start-cancel-commit transaction Netconf operations.
>>>>
>>>>
>>>>>
>>>>> See also some comments below:
>>>>>
>>>>> Andy Bierman wrote:
>>>>>> Hi Balazs,
>>>>>>
>>>>>> I am very interested in the partial database locking problem
>>>>>> that we discussed at the last interim.  I think that you are
>>>>>> right wrt/ your concerns about the "1 user global lock" design
>>>>>> for large devices.
>>>>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> NGO mailing list
>> NGO@ietf.org
>> https://www1.ietf.org/mailman/listinfo/ngo
>>
>>
> 

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
TSP System Manager
ECN: 831 7320                        Fax: +36 1 4377792
Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 04 10:24:14 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hjyhg-00049Q-Lg; Fri, 04 May 2007 10:24:12 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hjyhg-00049L-24
	for ngo@ietf.org; Fri, 04 May 2007 10:24:12 -0400
Received: from smtp105.sbc.mail.mud.yahoo.com ([68.142.198.204])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1Hjyhe-0000zm-JE
	for ngo@ietf.org; Fri, 04 May 2007 10:24:12 -0400
Received: (qmail 34394 invoked from network); 4 May 2007 14:24:10 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@75.50.191.242
	with plain)
	by smtp105.sbc.mail.mud.yahoo.com with SMTP; 4 May 2007 14:24:09 -0000
X-YMail-OSG: 39xob1MVM1kr7DiJHFR0GG68ueFfWjIP7PiEPnpMG_tFg3jB
Message-ID: <463B41E5.3070405@andybierman.com>
Date: Fri, 04 May 2007 07:23:33 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Balazs Lengyel <balazs.lengyel@ericsson.com>
Subject: Re: [NGO] Re: multi-session locks
References: <461A540A.30407@andybierman.com>
	<461B4F9E.3030401@ericsson.com>	<461BA0DB.6090500@andybierman.com>
	<461BA7E8.7070201@ericsson.com> <463A4EA9.20109@andybierman.com>
	<463A50AB.5020000@andybierman.com> <463B2D14.1080805@ericsson.com>
In-Reply-To: <463B2D14.1080805@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d890c9ddd0b0a61e8c597ad30c1c2176
Cc: NETCONF Goes On <ngo@ietf.org>
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Balazs Lengyel wrote:
> Hello Andy,
> See answers below!
> Would you support the draft in the IETF?

The one you haven't published yet? ;-)
I'm interested in implementing it.


> regards Balazs
> 
> Andy Bierman wrote:
>> Andy Bierman wrote:
>>> Hi Balazs,
>>>
>>> I like your proposal, except for a few details.
>>>
>>>
>>
>> Forgot one important 'rule' (to make Wes happy ;-)
>>
>> If a session does not have write access to any node identified in
>> the Xpath expression for a partial lock request, the lock will
>> not be granted.


> {BALAZS]: What if we want to a lock a subtree, then read some data and 
> release the lock. The aim is to guarantee we read a consistent set of 
> data. Do we still need write access rights? Maybe this issue is just an 
> unneeded complication, but I would like your opinion about it.
>>


The lock is for all operations.
If you want to take a lock out and just read, nothing to stop that.


>> This doesn't fix the DoS attack for a full lock, just a partial lock.
>>
>> Andy
>>
>>> ---------------------------
>>> To summarize, a partial lock is a lock on one particular subtree
>>> in the conceptual data model. (Or is is an arbitrary Xpath expression?)
> {BALAZS]:Locking, candidate configuration and access control together 
> can become complicated enough; so I  propose locking one or more 
> subtrees. If a node is locked, the complete subtree below it should also 
> be locked. I feel that's simple enough and powerful enough.


Okay -- so it is just an Xpath expression, not constrained in any way.
It identifies the nodes to be locked.
When issuing an unlock, the Xpath expression must exactly match
the one used in the lock operation.

This feature requires that the optional Xpath capability be supported
by the agent BTW, unless your draft supports a subtree filter partial lock.



>>>
>>> For example:
>>>
>>>   lock (/interfaces) locks the interfaces node and all interface entries
>>>
>>>   lock (/interfaces/interface) locks all interface nodes
>>>
>>>   lock (/interfaces/interface[ifIndex=3]) locks the entire ifEntry.3
>>>
>>>   lock (/interfaces/interface[ifIndex=3]/ifMtu) locks just the 
>>> ifMtu.3 leaf
> {BALAZS]:Yes that's how I see it as well.
>>>
>>>
>>> Each session can have zero or more partial locks on the same target 
>>> config.
>>>
>>> A partial unlock only affects the specified sub-tree and no other locks.
>>>
> {BALAZS]:Speaking with Martin he convinced me, that it would be better 
> to use a lockId instead of a filter based unlocking. The lock operation 
> would return the lockId (unique at least for the session, but rather for 
> the node). In the unlock operation the the manager would specify this 
> lockId, but no filter. This simpler, less error prone and would avoid 
> some difficult cases:
> - what if the lock and unlock filters don't match

they have to exactly match to be considered the same lock

> - what happens if I lock /interfaces and later I unlock 
> /interfaces/interface[ifIndex=3]
> - what if I lock /interfaces/interface[ifIndex=3] and later I unlock 
> /interfaces

Don't do that. :-)
The agent will keep track of the Xpath expressions and match them.
The lock ID adds complexity and make the agent authoritative wrt/ naming,
when in fact the manager should be in charge of this.

The added feature of incrementally increasing or decreasing the
partial lock scope is too complicated to support.  You have to
pick the right scope and then release that lock, not modify it.


>>> A session termination only affects the partial locks held by that 
>>> session.
>>>
>>> If any partial locks are active, then a request for a full lock will 
>>> fail.
>>>
>>> If a full lock is active then any request for a partial lock on the same
>>> target will fail.
>>>
>>> If no lock is active on the target, then a request for a full lock or
>>> a partial lock will succeed.
>>>
>>> If any partial locks are active on the target, then a request for a 
>>> partial
>>> lock will only succeed if the Xpath expression does not identify any 
>>> nodes
>>> with are already partially locked.
>>> -----------------------------------------------
>>>
>>> I believe the only difference between this and your proposal is
>>> the requirement to support full locks at all.  The protocol is
>>> quite clear about this conformance requirement, and compliant managers
>>> that do not know about the partial locks will break if the <lock>
>>> command always fails no matter what.
> {BALAZS]: Strictly speaking my draft does not speak about the 
> possibility to reject global locking, although you are right about my 
> hidden ideas :-) But as for now it is not in the draft I believe.

I think this is a critical issue.
IMO you cannot silently break compliant managers and still
be a compliant agent.

A NETCONF 1.0 manager is extremely likely to use the global locking.
I don't see a good way around this problem.

> 
> {BALAZS]:Some other rules:
> - If a locked subtree is deleted, the lock is still valid, meaning that 
> another session can not re-create the same subtree while the lock is 
> still held. (You could argue the other way as well, but at least it must 
> be stated.)


Good point -- but makes the implementation a challenge.
The agent will have to grant locks for nodes that are
not even supported by the agent, since it may not be able
to distinguish between these and nodes it does support,
and real nodes for which there is no sub-agent installed at the moment.


> - I would also like to follow Martin with avoiding any special 
> interactions between the partial lock and the candidate configuration. 
> Anything like we have in rfc4741:
> "When a client fails with outstanding changes to the candidate
>    configuration, recovery can be difficult.  To facilitate easy
>    recovery, any outstanding changes are discarded when the lock is
>    released, whether explicitly with the <unlock> operation or
>    implicitly from session failure."


This is also a problem with NETCONF 1.0 compatibility.
What about the <discard-changes> and <confirmed-commit> operations?
These are designed for a global candidate with a global lock.

I think adding partial locking would require a significant re-write
of the protocol, and probably require obsoleting RFC 4741 instead
of extending it.  That would be unacceptable IMO.


Andy


_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 04 13:52:22 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hk1x8-0001M5-9l; Fri, 04 May 2007 13:52:22 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hk1x6-0001LL-Dq
	for ngo@ietf.org; Fri, 04 May 2007 13:52:20 -0400
Received: from [213.180.94.162] (helo=mail.tail-f.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Hk1x5-00057r-UN
	for ngo@ietf.org; Fri, 04 May 2007 13:52:20 -0400
Received: from localhost (c213-100-166-193.swipnet.se [213.100.166.193])
	by mail.tail-f.com (Postfix) with ESMTP id 55C8F1B80C3;
	Fri,  4 May 2007 19:52:18 +0200 (CEST)
Date: Fri, 04 May 2007 19:52:13 +0200 (CEST)
Message-Id: <20070504.195213.122268938.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [NGO] Re: multi-session locks
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <463B41E5.3070405@andybierman.com>
References: <463A50AB.5020000@andybierman.com> <463B2D14.1080805@ericsson.com>
	<463B41E5.3070405@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9a2be21919e71dc6faef12b370c4ecf5
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Andy Bierman <ietf@andybierman.com> wrote:
> >> Forgot one important 'rule' (to make Wes happy ;-)
> >>
> >> If a session does not have write access to any node identified in
> >> the Xpath expression for a partial lock request, the lock will
> >> not be granted.
> 
> 
> > {BALAZS]: What if we want to a lock a subtree, then read some data and 
> > release the lock. The aim is to guarantee we read a consistent set of 
> > data. Do we still need write access rights? Maybe this issue is just an 
> > unneeded complication, but I would like your opinion about it.
> >>
> 
> 
> The lock is for all operations.
> If you want to take a lock out and just read, nothing to stop that.

... except for the rule you suggested above - if a node does not have
*write* access the lock request is rejceted.  We must change that to
just 'access'.


> >>> ---------------------------
> >>> To summarize, a partial lock is a lock on one particular subtree
> >>> in the conceptual data model. (Or is is an arbitrary Xpath expression?)
> > {BALAZS]:Locking, candidate configuration and access control together 
> > can become complicated enough; so I  propose locking one or more 
> > subtrees. If a node is locked, the complete subtree below it should also 
> > be locked. I feel that's simple enough and powerful enough.
> 
> 
> Okay -- so it is just an Xpath expression, not constrained in any way.
> It identifies the nodes to be locked.
> When issuing an unlock, the Xpath expression must exactly match
> the one used in the lock operation.

So essentially the *exact* string is used as an identifier, including
any prefixes, which are local in each instance document?

I think it's cleaner and less error prone to return an identifier
which is used in unlock.


> The agent will keep track of the Xpath expressions and match them.
> The lock ID adds complexity and make the agent authoritative wrt/ naming,
> when in fact the manager should be in charge of this.

Same as session-id.  I disagree that this adds complexity; I think
it's the other way around.  I don't understand your comment about
"authoritative wrt/ naming".   Could you elaborate?  What's the
problem?


> The added feature of incrementally increasing or decreasing the
> partial lock scope is too complicated to support.  You have to
> pick the right scope and then release that lock, not modify it.

I agree.

> >>> I believe the only difference between this and your proposal is
> >>> the requirement to support full locks at all.  The protocol is
> >>> quite clear about this conformance requirement, and compliant managers
> >>> that do not know about the partial locks will break if the <lock>
> >>> command always fails no matter what.
> > {BALAZS]: Strictly speaking my draft does not speak about the 
> > possibility to reject global locking, although you are right about my 
> > hidden ideas :-) But as for now it is not in the draft I believe.
> 
> I think this is a critical issue.
> IMO you cannot silently break compliant managers and still
> be a compliant agent.
> 
> A NETCONF 1.0 manager is extremely likely to use the global locking.
> I don't see a good way around this problem.

What exactly is the problem?

> > - I would also like to follow Martin with avoiding any special 
> > interactions between the partial lock and the candidate configuration. 
> > Anything like we have in rfc4741:
> > "When a client fails with outstanding changes to the candidate
> >    configuration, recovery can be difficult.  To facilitate easy
> >    recovery, any outstanding changes are discarded when the lock is
> >    released, whether explicitly with the <unlock> operation or
> >    implicitly from session failure."
> 
> 
> This is also a problem with NETCONF 1.0 compatibility.
> What about the <discard-changes> and <confirmed-commit> operations?
> These are designed for a global candidate with a global lock.

Yes.  So the partial locking would not affect this at all.  Ok, I
re'-read Balaxs draft, and he actually modifies the existing
lock/unlock operations.  I think it's better to define new
operations.  Then the old operations will continue to work as
specified in rfc4741.

> I think adding partial locking would require a significant re-write
> of the protocol, and probably require obsoleting RFC 4741 instead
> of extending it.  That would be unacceptable IMO.

I agree.


/martin

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 04 15:12:56 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hk3D4-0003cI-Cl; Fri, 04 May 2007 15:12:54 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hk3D2-0003cD-L6
	for ngo@ietf.org; Fri, 04 May 2007 15:12:52 -0400
Received: from smtp111.sbc.mail.mud.yahoo.com ([68.142.198.210])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1Hk3D2-0007Sh-8W
	for ngo@ietf.org; Fri, 04 May 2007 15:12:52 -0400
Received: (qmail 93644 invoked from network); 4 May 2007 19:12:51 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@75.50.191.242
	with plain)
	by smtp111.sbc.mail.mud.yahoo.com with SMTP; 4 May 2007 19:12:51 -0000
X-YMail-OSG: ul7g5mwVM1nfJWDmHMRLlqO.dl9yBZZ_E5ThG3Ns9DhF7JuP
Message-ID: <463B858F.2040100@andybierman.com>
Date: Fri, 04 May 2007 12:12:15 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [NGO] Re: multi-session locks
References: <463A50AB.5020000@andybierman.com>	<463B2D14.1080805@ericsson.com>	<463B41E5.3070405@andybierman.com>
	<20070504.195213.122268938.mbj@tail-f.com>
In-Reply-To: <20070504.195213.122268938.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 1676547e4f33b5e63227e9c02bd359e3
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Martin Bjorklund wrote:
> Andy Bierman <ietf@andybierman.com> wrote:
>>>> Forgot one important 'rule' (to make Wes happy ;-)
>>>>
>>>> If a session does not have write access to any node identified in
>>>> the Xpath expression for a partial lock request, the lock will
>>>> not be granted.
>>
>>> {BALAZS]: What if we want to a lock a subtree, then read some data and 
>>> release the lock. The aim is to guarantee we read a consistent set of 
>>> data. Do we still need write access rights? Maybe this issue is just an 
>>> unneeded complication, but I would like your opinion about it.
>>
>> The lock is for all operations.
>> If you want to take a lock out and just read, nothing to stop that.
> 
> ... except for the rule you suggested above - if a node does not have
> *write* access the lock request is rejceted.  We must change that to
> just 'access'.
> 
> 
>>>>> ---------------------------
>>>>> To summarize, a partial lock is a lock on one particular subtree
>>>>> in the conceptual data model. (Or is is an arbitrary Xpath expression?)
>>> {BALAZS]:Locking, candidate configuration and access control together 
>>> can become complicated enough; so I  propose locking one or more 
>>> subtrees. If a node is locked, the complete subtree below it should also 
>>> be locked. I feel that's simple enough and powerful enough.
>>
>> Okay -- so it is just an Xpath expression, not constrained in any way.
>> It identifies the nodes to be locked.
>> When issuing an unlock, the Xpath expression must exactly match
>> the one used in the lock operation.
> 
> So essentially the *exact* string is used as an identifier, including
> any prefixes, which are local in each instance document?
> 
> I think it's cleaner and less error prone to return an identifier
> which is used in unlock.

ok

> 
> 
>> The agent will keep track of the Xpath expressions and match them.
>> The lock ID adds complexity and make the agent authoritative wrt/ naming,
>> when in fact the manager should be in charge of this.
> 
> Same as session-id.  I disagree that this adds complexity; I think
> it's the other way around.  I don't understand your comment about
> "authoritative wrt/ naming".   Could you elaborate?  What's the
> problem?
> 

the manager knows the string it passed in for the lock.
Now it has the string and an ID to keep track of.

> 
>> The added feature of incrementally increasing or decreasing the
>> partial lock scope is too complicated to support.  You have to
>> pick the right scope and then release that lock, not modify it.
> 
> I agree.
> 
>>>>> I believe the only difference between this and your proposal is
>>>>> the requirement to support full locks at all.  The protocol is
>>>>> quite clear about this conformance requirement, and compliant managers
>>>>> that do not know about the partial locks will break if the <lock>
>>>>> command always fails no matter what.
>>> {BALAZS]: Strictly speaking my draft does not speak about the 
>>> possibility to reject global locking, although you are right about my 
>>> hidden ideas :-) But as for now it is not in the draft I believe.
>> I think this is a critical issue.
>> IMO you cannot silently break compliant managers and still
>> be a compliant agent.
>>
>> A NETCONF 1.0 manager is extremely likely to use the global locking.
>> I don't see a good way around this problem.
> 
> What exactly is the problem?


If there are no locks held at all by anybody,
and a session requests a global lock, it should be granted.
Refusing to grant the global lock ever, under any circumstances,
does not seem to be compliant to RFC 4741 to me.

> 
>>> - I would also like to follow Martin with avoiding any special 
>>> interactions between the partial lock and the candidate configuration. 
>>> Anything like we have in rfc4741:
>>> "When a client fails with outstanding changes to the candidate
>>>    configuration, recovery can be difficult.  To facilitate easy
>>>    recovery, any outstanding changes are discarded when the lock is
>>>    released, whether explicitly with the <unlock> operation or
>>>    implicitly from session failure."
>>
>> This is also a problem with NETCONF 1.0 compatibility.
>> What about the <discard-changes> and <confirmed-commit> operations?
>> These are designed for a global candidate with a global lock.
> 
> Yes.  So the partial locking would not affect this at all.  Ok, I
> re'-read Balaxs draft, and he actually modifies the existing
> lock/unlock operations.  I think it's better to define new
> operations.  Then the old operations will continue to work as
> specified in rfc4741.
> 
>> I think adding partial locking would require a significant re-write
>> of the protocol, and probably require obsoleting RFC 4741 instead
>> of extending it.  That would be unacceptable IMO.
> 
> I agree.
> 
> 
> /martin
> 
> 


Andy

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 04 15:21:56 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hk3Lo-0001Gm-2S; Fri, 04 May 2007 15:21:56 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hk3Lm-00019V-Ev
	for ngo@ietf.org; Fri, 04 May 2007 15:21:54 -0400
Received: from [213.180.94.162] (helo=mail.tail-f.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Hk3Ll-0008Pw-5g
	for ngo@ietf.org; Fri, 04 May 2007 15:21:54 -0400
Received: from localhost (c213-100-166-193.swipnet.se [213.100.166.193])
	by mail.tail-f.com (Postfix) with ESMTP id 92F451B80C3;
	Fri,  4 May 2007 21:21:52 +0200 (CEST)
Date: Fri, 04 May 2007 21:21:47 +0200 (CEST)
Message-Id: <20070504.212147.37254731.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [NGO] Re: multi-session locks
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <463B858F.2040100@andybierman.com>
References: <463B41E5.3070405@andybierman.com>
	<20070504.195213.122268938.mbj@tail-f.com>
	<463B858F.2040100@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 798b2e660f1819ae38035ac1d8d5e3ab
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Andy Bierman <ietf@andybierman.com> wrote:
> >> A NETCONF 1.0 manager is extremely likely to use the global locking.
> >> I don't see a good way around this problem.
> > 
> > What exactly is the problem?
> 
> 
> If there are no locks held at all by anybody,
> and a session requests a global lock, it should be granted.
> Refusing to grant the global lock ever, under any circumstances,
> does not seem to be compliant to RFC 4741 to me.

This is what the rfc says, in section 7.5

      An attempt to lock the configuration MUST fail if an existing
      session or other entity holds a lock on any portion of the lock
      target.

So I think it covers the partial lock.


/martin

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 04 18:33:05 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hk6Km-0002fB-4T; Fri, 04 May 2007 18:33:04 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hk6Kl-0002bP-5M
	for ngo@ietf.org; Fri, 04 May 2007 18:33:03 -0400
Received: from smtp108.sbc.mail.mud.yahoo.com ([68.142.198.207])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1Hk6Kh-00027l-Pz
	for ngo@ietf.org; Fri, 04 May 2007 18:33:03 -0400
Received: (qmail 84742 invoked from network); 4 May 2007 22:32:59 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@75.50.191.242
	with plain)
	by smtp108.sbc.mail.mud.yahoo.com with SMTP; 4 May 2007 22:32:58 -0000
X-YMail-OSG: KlSE_VMVM1l3hjl0uvRKYWhJ6ckbt3l1Q0c0iUzs8yv9EJ44
Message-ID: <463BB476.9070002@andybierman.com>
Date: Fri, 04 May 2007 15:32:22 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [NGO] Re: multi-session locks
References: <463B41E5.3070405@andybierman.com>	<20070504.195213.122268938.mbj@tail-f.com>	<463B858F.2040100@andybierman.com>
	<20070504.212147.37254731.mbj@tail-f.com>
In-Reply-To: <20070504.212147.37254731.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 39bd8f8cbb76cae18b7e23f7cf6b2b9f
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Martin Bjorklund wrote:
> Andy Bierman <ietf@andybierman.com> wrote:
>>>> A NETCONF 1.0 manager is extremely likely to use the global locking.
>>>> I don't see a good way around this problem.
>>> What exactly is the problem?
>>
>> If there are no locks held at all by anybody,
>> and a session requests a global lock, it should be granted.
>> Refusing to grant the global lock ever, under any circumstances,
>> does not seem to be compliant to RFC 4741 to me.
> 
> This is what the rfc says, in section 7.5
> 
>       An attempt to lock the configuration MUST fail if an existing
>       session or other entity holds a lock on any portion of the lock
>       target.
> 
> So I think it covers the partial lock.
> 

I don't -- if an agent never grants the full lock.
I am concerned about the plan of simply never granting the
full lock and claiming that RFC 4741 is intended to support this,
just because the opposite form of this sentence is not also present:

(An attempt to lock the configuration MUST succeed if no existing
  session or other entity holds a lock on any portion of the lock
  target.)



> 
> /martin
> 
> 

Andy

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 04 18:43:55 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hk6VH-0001g7-7m; Fri, 04 May 2007 18:43:55 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hk6VF-0001cE-HK
	for ngo@ietf.org; Fri, 04 May 2007 18:43:53 -0400
Received: from [213.180.94.162] (helo=mail.tail-f.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Hk6VE-0003jo-7E
	for ngo@ietf.org; Fri, 04 May 2007 18:43:53 -0400
Received: from localhost (c213-100-166-193.swipnet.se [213.100.166.193])
	by mail.tail-f.com (Postfix) with ESMTP id 94D7C1B80C3;
	Sat,  5 May 2007 00:43:51 +0200 (CEST)
Date: Sat, 05 May 2007 00:43:46 +0200 (CEST)
Message-Id: <20070505.004346.12946961.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [NGO] Re: multi-session locks
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <463BB476.9070002@andybierman.com>
References: <463B858F.2040100@andybierman.com>
	<20070504.212147.37254731.mbj@tail-f.com>
	<463BB476.9070002@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4adaf050708fb13be3316a9eee889caa
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Andy Bierman <ietf@andybierman.com> wrote:
> Martin Bjorklund wrote:
> > Andy Bierman <ietf@andybierman.com> wrote:
> >>>> A NETCONF 1.0 manager is extremely likely to use the global locking.
> >>>> I don't see a good way around this problem.
> >>> What exactly is the problem?
> >>
> >> If there are no locks held at all by anybody,
> >> and a session requests a global lock, it should be granted.
> >> Refusing to grant the global lock ever, under any circumstances,
> >> does not seem to be compliant to RFC 4741 to me.
> > 
> > This is what the rfc says, in section 7.5
> > 
> >       An attempt to lock the configuration MUST fail if an existing
> >       session or other entity holds a lock on any portion of the lock
> >       target.
> > 
> > So I think it covers the partial lock.
> > 
> 
> I don't -- if an agent never grants the full lock.
> I am concerned about the plan of simply never granting the
> full lock

Ok, I missed that plan, sorry about that.  I never read that in
Balazs' draft.  I guess you refer to this discussion:

>>> I believe the only difference between this and your proposal is
>>> the requirement to support full locks at all.  The protocol is
>>> quite clear about this conformance requirement, and compliant managers
>>> that do not know about the partial locks will break if the <lock>
>>> command always fails no matter what.
> {BALAZS]: Strictly speaking my draft does not speak about the 
> possibility to reject global locking, although you are right about my 
> hidden ideas :-) But as for now it is not in the draft I believe.

...in which Balazs seems to suggest that global locking should always
be rejected.

I agree with you on this.  I don't think the presence of partial
locking support should turn off global locking support.



/martin

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Mon May 07 04:13:22 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HkyLP-0008UQ-KF; Mon, 07 May 2007 04:13:19 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HkyLP-0008UH-0b
	for ngo@ietf.org; Mon, 07 May 2007 04:13:19 -0400
Received: from mailgw3.ericsson.se ([193.180.251.60])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HkyLN-0007Wg-9T
	for ngo@ietf.org; Mon, 07 May 2007 04:13:18 -0400
Received: from mailgw3.ericsson.se (unknown [127.0.0.1])
	by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
	B45E12076A; Mon,  7 May 2007 10:13:16 +0200 (CEST)
X-AuditID: c1b4fb3c-a8cebbb0000073d5-c4-463edf9c3932 
Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.124])
	by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
	9866B20454; Mon,  7 May 2007 10:13:16 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by
	esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 7 May 2007 10:13:16 +0200
Received: from [159.107.196.23] ([159.107.196.23]) by
	esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 7 May 2007 10:13:15 +0200
Message-ID: <463EDF9A.9030009@ericsson.com>
Date: Mon, 07 May 2007 10:13:14 +0200
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 1.5.0.10 (X11/20070221)
MIME-Version: 1.0
To: Andy Bierman <ietf@andybierman.com>
Subject: Re: [NGO] Re: multi-session locks
References: <463B41E5.3070405@andybierman.com>	<20070504.195213.122268938.mbj@tail-f.com>	<463B858F.2040100@andybierman.com>
	<20070504.212147.37254731.mbj@tail-f.com>
	<463BB476.9070002@andybierman.com>
In-Reply-To: <463BB476.9070002@andybierman.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 07 May 2007 08:13:16.0099 (UTC)
	FILETIME=[9062D130:01C7907F]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 93238566e09e6e262849b4f805833007
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hello Andy,

Andy Bierman wrote:
> 
> I don't -- if an agent never grants the full lock.
> I am concerned about the plan of simply never granting the
> full lock and claiming that RFC 4741 is intended to support this,
> just because the opposite form of this sentence is not also present:
> 
> (An attempt to lock the configuration MUST succeed if no existing
>  session or other entity holds a lock on any portion of the lock
>  target.)
[BALAZS]: You can not have the "MUST sentence" as access control must be able to deny full 
locking of the configuration even if no one is holding any kind of lock at the moment.
> 
>>
> 
> Andy

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
TSP System Manager
ECN: 831 7320                        Fax: +36 1 4377792
Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Mon May 07 04:15:12 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HkyNE-0001nS-GC; Mon, 07 May 2007 04:15:12 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HkyNC-0001nC-KB
	for ngo@ietf.org; Mon, 07 May 2007 04:15:10 -0400
Received: from mailgw3.ericsson.se ([193.180.251.60])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HkyNA-0007io-WA
	for ngo@ietf.org; Mon, 07 May 2007 04:15:10 -0400
Received: from mailgw3.ericsson.se (unknown [127.0.0.1])
	by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
	657CB20582; Mon,  7 May 2007 10:15:08 +0200 (CEST)
X-AuditID: c1b4fb3c-aacefbb0000073d5-a9-463ee00ca80a 
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122])
	by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
	4B85F20416; Mon,  7 May 2007 10:15:08 +0200 (CEST)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by
	esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 7 May 2007 10:15:08 +0200
Received: from [159.107.196.23] ([159.107.196.23]) by
	esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 7 May 2007 10:15:07 +0200
Message-ID: <463EE00B.2060906@ericsson.com>
Date: Mon, 07 May 2007 10:15:07 +0200
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 1.5.0.10 (X11/20070221)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [NGO] Re: multi-session locks
References: <463B858F.2040100@andybierman.com>	<20070504.212147.37254731.mbj@tail-f.com>	<463BB476.9070002@andybierman.com>
	<20070505.004346.12946961.mbj@tail-f.com>
In-Reply-To: <20070505.004346.12946961.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 07 May 2007 08:15:07.0902 (UTC)
	FILETIME=[D30699E0:01C7907F]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 52e1467c2184c31006318542db5614d5
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hello,
Actually there is nothing in my draft about denying the full lock, or please point out the 
relevant text and I will remove it.
Balazs

Martin Bjorklund wrote:
> Andy Bierman <ietf@andybierman.com> wrote:
>> Martin Bjorklund wrote:
>>> Andy Bierman <ietf@andybierman.com> wrote:
>>>>>> A NETCONF 1.0 manager is extremely likely to use the global locking.
>>>>>> I don't see a good way around this problem.
>>>>> What exactly is the problem?
>>>> If there are no locks held at all by anybody,
>>>> and a session requests a global lock, it should be granted.
>>>> Refusing to grant the global lock ever, under any circumstances,
>>>> does not seem to be compliant to RFC 4741 to me.
>>> This is what the rfc says, in section 7.5
>>>
>>>       An attempt to lock the configuration MUST fail if an existing
>>>       session or other entity holds a lock on any portion of the lock
>>>       target.
>>>
>>> So I think it covers the partial lock.
>>>
>> I don't -- if an agent never grants the full lock.
>> I am concerned about the plan of simply never granting the
>> full lock
> 
> Ok, I missed that plan, sorry about that.  I never read that in
> Balazs' draft.  I guess you refer to this discussion:

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
TSP System Manager
ECN: 831 7320                        Fax: +36 1 4377792
Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Mon May 07 05:34:41 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hkzc8-0001md-KJ; Mon, 07 May 2007 05:34:40 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hkzc7-0001mP-M5
	for ngo@ietf.org; Mon, 07 May 2007 05:34:39 -0400
Received: from mailgw4.ericsson.se ([193.180.251.62])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Hkzc6-0001cy-32
	for ngo@ietf.org; Mon, 07 May 2007 05:34:39 -0400
Received: from mailgw4.ericsson.se (unknown [127.0.0.1])
	by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id
	786C521130; Mon,  7 May 2007 11:34:37 +0200 (CEST)
X-AuditID: c1b4fb3e-ae1ebbb0000061ca-b9-463ef2ad418f 
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122])
	by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id
	63FD620510; Mon,  7 May 2007 11:34:37 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by
	esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 7 May 2007 11:34:37 +0200
Received: from [159.107.196.23] ([159.107.196.23]) by
	esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 7 May 2007 11:34:36 +0200
Message-ID: <463EF2AC.7020908@ericsson.com>
Date: Mon, 07 May 2007 11:34:36 +0200
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 1.5.0.10 (X11/20070221)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>, Andy Bierman <ietf@andybierman.com>,
	NETCONF Goes On <ngo@ietf.org>
References: <20070505.113810.106041826.mbj@tail-f.com>
In-Reply-To: <20070505.113810.106041826.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 07 May 2007 09:34:36.0958 (UTC)
	FILETIME=[ED9ACBE0:01C7908A]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 2409bba43e9c8d580670fda8b695204a
Cc: 
Subject: [NGO] Re: partial locks
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hello,
I would like to allow the locking only of complete subtrees to simplify partial-locking. I 
would like to avoid situations when in a database like

<interfaces>
   <interface>
     <name>eth0</name>
     <mtu>1500</mtu>
     <adminState>enabled</adminState>
   </interface>
   <interface>
     <name>eth1</name>
     <mtu>1500</mtu>
     <adminState>disabled</adminState>
   </interface>
</interfaces>

only the elements corresponding to the paths /interfaces/interface[eth0]/mtu and 
/interfaces/interface[eth1] are locked, but node /interfaces/interface[eth1]/mtu is not locked.

Balazs

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
TSP System Manager
ECN: 831 7320                        Fax: +36 1 4377792
Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Mon May 07 11:25:10 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hl55J-0003MQ-NF; Mon, 07 May 2007 11:25:09 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hl55J-0003HU-2Z
	for ngo@ietf.org; Mon, 07 May 2007 11:25:09 -0400
Received: from smtp107.sbc.mail.mud.yahoo.com ([68.142.198.206])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1Hl55F-0006cb-04
	for ngo@ietf.org; Mon, 07 May 2007 11:25:09 -0400
Received: (qmail 40075 invoked from network); 7 May 2007 15:25:04 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@75.50.191.242
	with plain)
	by smtp107.sbc.mail.mud.yahoo.com with SMTP; 7 May 2007 15:25:03 -0000
X-YMail-OSG: 4qV8vmAVM1k1ycBxyBKhgdWFu0BHpkiXhWZLJyXQjqY5_4s9
Message-ID: <463F44AA.1090402@andybierman.com>
Date: Mon, 07 May 2007 08:24:26 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Balazs Lengyel <balazs.lengyel@ericsson.com>
Subject: Re: [NGO] Re: multi-session locks
References: <463B858F.2040100@andybierman.com>	<20070504.212147.37254731.mbj@tail-f.com>	<463BB476.9070002@andybierman.com>
	<20070505.004346.12946961.mbj@tail-f.com>
	<463EE00B.2060906@ericsson.com>
In-Reply-To: <463EE00B.2060906@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 68c8cc8a64a9d0402e43b8eee9fc4199
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Balazs Lengyel wrote:
> Hello,
> Actually there is nothing in my draft about denying the full lock, or 
> please point out the relevant text and I will remove it.

Can you send a URL to your draft?
I can only find draft-lengyel-netconf-granular-locking-00.txt from 2005.


> Balazs

Andy

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Tue May 08 11:02:21 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HlRCl-0008HX-SU; Tue, 08 May 2007 11:02:19 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HlRCl-0008HS-DA
	for ngo@ietf.org; Tue, 08 May 2007 11:02:19 -0400
Received: from smtp101.sbc.mail.mud.yahoo.com ([68.142.198.200])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1HlRCh-0000xl-45
	for ngo@ietf.org; Tue, 08 May 2007 11:02:19 -0400
Received: (qmail 28918 invoked from network); 8 May 2007 15:02:13 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@75.50.177.98
	with plain)
	by smtp101.sbc.mail.mud.yahoo.com with SMTP; 8 May 2007 15:02:13 -0000
X-YMail-OSG: X.zkrfkVM1ng9pveeZQowhHU0QDQLu8VYqrVpmSl_GmJP4.R
Message-ID: <464090CE.2010006@andybierman.com>
Date: Tue, 08 May 2007 08:01:34 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Balazs Lengyel <balazs.lengyel@ericsson.com>
References: <20070505.113810.106041826.mbj@tail-f.com>
	<463EF2AC.7020908@ericsson.com>
In-Reply-To: <463EF2AC.7020908@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 3e15cc4fdc61d7bce84032741d11c8e5
Cc: NETCONF Goes On <ngo@ietf.org>
Subject: [NGO] Re: partial locks
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Balazs Lengyel wrote:
> Hello,
> I would like to allow the locking only of complete subtrees to simplify 
> partial-locking. I would like to avoid situations when in a database like
> 

All XML subtrees are complete trees.
Do you mean you want to constrain a lock to identify an integral
number of conceptual rows?

> <interfaces>
>   <interface>
>     <name>eth0</name>
>     <mtu>1500</mtu>
>     <adminState>enabled</adminState>
>   </interface>
>   <interface>
>     <name>eth1</name>
>     <mtu>1500</mtu>
>     <adminState>disabled</adminState>
>   </interface>
> </interfaces>
> 
> only the elements corresponding to the paths 
> /interfaces/interface[eth0]/mtu and /interfaces/interface[eth1] are 
> locked, but node /interfaces/interface[eth1]/mtu is not locked.
> 

The choice of Xpath expression in the lock is critical.
The slightest inaccuracy will lock the wrong nodes.
Since the Xpath expression results can change from moment
to moment, there is no way for the manager to know exactly
which nodes are locked -- in advance, during, or after the <lock> RPC.

I am not a fan of full Xpath for locking.

What if the lock was given as:

   /interfaces/interface[ifMtu=1500]

As soon as the ifMtu is changed, the <interface> element that
contains it is no longer locked.

The Xpath expression must be limited to an absolute path expression,
which contains only elements and/or attributes defined as keys to
distinguish multiple instances.  Otherwise the set of locked nodes
will be dynamic and possibly non-deterministic over time, which is
an unacceptable 'feature' for a lock mechanism.


> Balazs
> 

Andy


_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Mon May 14 03:59:48 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HnVTA-0000bS-Cf; Mon, 14 May 2007 03:59:48 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HnVT9-0000bG-Of; Mon, 14 May 2007 03:59:47 -0400
Received: from co300216-co-outbound.net.avaya.com ([198.152.13.100]
	helo=co300216-co-outbound.avaya.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1HnVT8-0007TI-F0; Mon, 14 May 2007 03:59:47 -0400
Received: from unknown (HELO IS0004AVEXU1.global.avaya.com) ([135.64.105.51])
	by co300216-co-outbound.avaya.com with ESMTP;
	14 May 2007 03:59:44 -0400
X-IronPort-AV: i="4.14,529,1170651600"; d="scan'208"; a="16632261:sNHT8296452"
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0
Date: Mon, 14 May 2007 10:59:03 +0300
Message-ID: <AAB4B3D3CF0F454F98272CBE187FDE2F0CD405F5@is0004avexu1.global.avaya.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: REMINDER: Cutoff date for requests to schedule Working Group
	meetings and for preliminary BOF proposals to ADs 
Thread-Index: AceV/bsTZVZMo4yaSqGjesun0VoQRg==
From: "Romascanu, Dan \(Dan\)" <dromasca@avaya.com>
To: <ops-area@ops.ietf.org>, <ops-chairs@ietf.org>, <ngo@ietf.org>,
	<meta-model@ietf.org>, <mib2rdml@ietf.org>
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 7a6398bf8aaeabc7a7bb696b6b0a2aad
Cc: 
Subject: [NGO] REMINDER: Cutoff date for requests to schedule Working Group
	meetings and for preliminary BOF proposals to ADs 
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org


I apologize for the cross-posting. I would like to remind the WG chairs
and folks interested in proposing BOFs for Chicago that the cutoff date
for requests to schedule Working Group meetings and for preliminary BOF
proposals to ADs is 5/21.=20

For the BOF proposals the following are recommended reading:=20
http://www.ietf.org/ietf/1bof-procedures.txt
http://www.ietf.org/internet-drafts/draft-narten-successful-bof-02.txt

Dan

=20

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Thu May 24 04:36:21 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hr8o0-0000EI-49; Thu, 24 May 2007 04:36:20 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hr8ny-0000E4-0U
	for ngo@ietf.org; Thu, 24 May 2007 04:36:18 -0400
Received: from [213.180.94.162] (helo=mail.tail-f.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Hr8nw-0003zk-ME
	for ngo@ietf.org; Thu, 24 May 2007 04:36:17 -0400
Received: from localhost (c213-100-166-193.swipnet.se [213.100.166.193])
	by mail.tail-f.com (Postfix) with ESMTP id AAFF11B80C3
	for <ngo@ietf.org>; Thu, 24 May 2007 10:36:15 +0200 (CEST)
Date: Thu, 24 May 2007 10:35:57 +0200 (CEST)
Message-Id: <20070524.103557.115205308.mbj@tail-f.com>
To: ngo@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
X-Mailer: Mew version 5.1.51 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 798b2e660f1819ae38035ac1d8d5e3ab
Subject: [NGO] new partial lock draft
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

A New Internet-Draft is available from the on-line Internet-Drafts 
directories.


	Title		: Partial Lock RPC for Netconf
	Author(s)	: B. Lengyel, M. Bjorklund
	Filename	: draft-lengyel-ngo-partial-lock-00.txt
	Pages		: 10
	Date		: 2007-5-23
	
   The NETCONF protocol describes the lock and unlock operations that
   (un)lock an entire configuration datastore.  In some situations it is
   needed to lock only a part of a configuration datastore.  This draft
   proposes a capability based extension to the NETCONF protocol to
   allow this.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-lengyel-ngo-partial-lock-00.txt


/martin

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 25 12:04:19 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HrcH1-0006J0-Me; Fri, 25 May 2007 12:04:15 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HrcH0-0006Iv-17
	for ngo@ietf.org; Fri, 25 May 2007 12:04:14 -0400
Received: from smtp114.sbc.mail.mud.yahoo.com ([68.142.198.213])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1HrcGy-0005Y4-Ln
	for ngo@ietf.org; Fri, 25 May 2007 12:04:14 -0400
Received: (qmail 2052 invoked from network); 25 May 2007 16:04:11 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@76.195.156.84
	with plain)
	by smtp114.sbc.mail.mud.yahoo.com with SMTP; 25 May 2007 16:04:10 -0000
X-YMail-OSG: eHAA2HUVM1liAHSnEQWg_M8x2Mbav1uHNCKQpVRaxSkIAU6l
Message-ID: <465708CB.2020002@andybierman.com>
Date: Fri, 25 May 2007 09:03:23 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: NETCONF Goes On <ngo@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4adaf050708fb13be3316a9eee889caa
Subject: [NGO] NETCONF Data Modeling "Rules"
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hi,

I thought I would kick up some dust by asking if
there is any consensus that NETCONF Configuration Databases
should be restricted by some data modeling rules.
Currently, any valid XML (w/ restrictions specified in RFC 4741)
is allowed in the <config> contents.

Some implementers (myself included) have found that certain
practices are "more complicated than worth doing", and since
the DM choice is up to the vendor, there may not be any need
for restrictions.

Here are the Top 5 restrictions I would make if I wanted
to simplify NETCONF Data Modeling:

  - use of writable XML attributes inside config data elements not allowed

  - use of unnamed data (no key defined and "maxOccurs > 1" is true)
    not allowed

  - use of keyed data without a container not allowed
    (e.g., /interface[ifIndex=1] instead of 
/interfaces/interface[ifIndex=1])

  - 1 top-level element (child of <config>) per namespace allowed

  - each top-level element must be a container node
    - a container must have complex content, not simple content
    - zero or one instance of a container is allowed


I am not going to go into the implementation details.
(You saw some of if wrt/ edit-config on the 'any' data type).
I actually support most of these things in my code, but IMO
the complexity isn't worth it.

So are these restrictions a good idea or just more CLRs?
I think we are already following these restrictions in
the Notifications draft data models.


Andy




_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Fri May 25 15:01:04 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hrf28-0005La-3w; Fri, 25 May 2007 15:01:04 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hrf26-0005LF-Cm; Fri, 25 May 2007 15:01:02 -0400
Received: from co300216-co-outbound.net.avaya.com ([198.152.13.100]
	helo=co300216-co-outbound.avaya.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1Hrf24-00009a-RI; Fri, 25 May 2007 15:01:02 -0400
Received: from unknown (HELO 307622ANEX5.global.avaya.com) ([135.64.140.12])
	by co300216-co-outbound.avaya.com with ESMTP; 25 May 2007 15:00:56 -0400
X-IronPort-AV: i="4.14,580,1170651600"; 
	d="scan'208"; a="21761968:sNHT4045788654"
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Fri, 25 May 2007 21:00:16 +0200
Message-ID: <EDC652A26FB23C4EB6384A4584434A0406FF81@307622ANEX5.global.avaya.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: BOF Request: Netconf Extensions and Evolution
Thread-Index: AceV/bsTZVZMo4yaSqGjesun0VoQRgHcTTgwADPF+8AAIA01EAAPvS3g
From: "Romascanu, Dan (Dan)" <dromasca@avaya.com>
To: <ops-area@ietf.org>
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 82c9bddb247d9ba4471160a9a865a5f3
Cc: ngo@ietf.org, "Netconf \(E-mail\)" <netconf@ops.ietf.org>
Subject: [NGO] FW: BOF Request: Netconf Extensions and Evolution
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

 The following proposal for a BOF in Chicago was submitted by Sharon
Chisholm. A decision needs to be made in the next few days. I would
welcome comments in the next few days on ops-area@ietf.org.

Thanks and Regards,

Dan





=20

-----Original Message-----
From: Sharon Chisholm [mailto:schishol@nortel.com]=20
Sent: Friday, May 25, 2007 2:44 PM
To: Romascanu, Dan (Dan)
Cc: agenda@ietf.org
Subject: BOF Request: Netconf Extensions and Evolution

Hi

Netconf Extensions and Evolution (Nee)

Mailing List: https://www1.ietf.org/mailman/listinfo/ngo

Description:=20

The NETCONF working group has successfully defined an effective and
functional protocol, but there still remain some gaps in required
functionality. This BOF will look at necessary extensions to the NETCONF
protocol with the aim to charter a working group to address them.
Extensions will focus on generally agreed to functionality that has just
not yet been defined such as fine grain locking, advertising XML Schema
(content) support, access control, etc. It will also include an XML
Schema (content) definition to enable monitoring of the Netconf
protocol. Note that the charter does not wish to dictate which Netconf
layer problems should be solved at (content, operations, etc).

Agenda:
      - Agenda Bashing and Administrivia
	- Go through proposed NETCONF updates
	    - Partial Locks
(http://www.ietf.org/internet-drafts/draft-lengyel-ngo-partial-lock-00.t
xt)
          - Advertising XML Schema availability (pending)
          - Netconf Monitoring
(http://www.ietf.org/internet-drafts/draft-chisholm-netconf-monitoring-0
0.txt)
          - Other relevant work
	- Agree on a proposed charter
      - See if there is consensus to try to form a working group


Sharon=20

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Sun May 27 15:13:41 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HsOAW-0007gO-Nd; Sun, 27 May 2007 15:12:44 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HsOAV-0007gI-86
	for ngo@ietf.org; Sun, 27 May 2007 15:12:43 -0400
Received: from [213.180.94.162] (helo=mail.tail-f.com)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HsOAU-0003sW-PZ
	for ngo@ietf.org; Sun, 27 May 2007 15:12:43 -0400
Received: from localhost (c213-100-166-193.swipnet.se [213.100.166.193])
	by mail.tail-f.com (Postfix) with ESMTP id 64B6F1B80C3;
	Sun, 27 May 2007 21:12:39 +0200 (CEST)
Date: Sun, 27 May 2007 21:12:37 +0200 (CEST)
Message-Id: <20070527.211237.13677792.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [NGO] NETCONF Data Modeling "Rules"
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <465708CB.2020002@andybierman.com>
References: <465708CB.2020002@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: fb6060cb60c0cea16e3f7219e40a0a81
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hi,


Andy Bierman <ietf@andybierman.com> wrote:
> Hi,
> 
> I thought I would kick up some dust by asking if
> there is any consensus that NETCONF Configuration Databases
> should be restricted by some data modeling rules.
> Currently, any valid XML (w/ restrictions specified in RFC 4741)

What are those restrictions (where are they specified)?

> is allowed in the <config> contents.
> 
> Some implementers (myself included) have found that certain
> practices are "more complicated than worth doing", and since
> the DM choice is up to the vendor, there may not be any need
> for restrictions.
> 
> Here are the Top 5 restrictions I would make if I wanted
> to simplify NETCONF Data Modeling:
> 
>   - use of writable XML attributes inside config data elements not allowed

This one doesn't necessarily make implementations simpler.  I think
this rule follows from the recommendation that attributes should
contain meta-data (like owner, last-updated etc).

>   - use of unnamed data (no key defined and "maxOccurs > 1" is true)
>     not allowed

As you say we have discussed this one before.  IMO this rule is
necessary in order for <edit-config> to work.  You could argue that
it's useful w/o keys if the object is "small", but how do you define
"small"?  This special rule probably just makes things more
complicated.

>   - use of keyed data without a container not allowed
>     (e.g., /interface[ifIndex=1] instead of 
> /interfaces/interface[ifIndex=1])

I don't see how that makes things simpler.

>   - 1 top-level element (child of <config>) per namespace allowed

We (in our agent) started out with that restriction, but it feels like
a CLR and it's difficult to motivate.  So we now support multiple
top-level elements.  XSD and RelaxNG support it.  Why should we make
this restriction?

>   - each top-level element must be a container node
>     - a container must have complex content, not simple content
>     - zero or one instance of a container is allowed

This probably makes sense.  So you wouldn't be allowed to define a
single leaf as top-level node?

> I am not going to go into the implementation details.
> (You saw some of if wrt/ edit-config on the 'any' data type).
> I actually support most of these things in my code, but IMO
> the complexity isn't worth it.
> 
> So are these restrictions a good idea or just more CLRs?
> I think we are already following these restrictions in
> the Notifications draft data models.

I think that the most important rule is _not_ followed in the
Notifications draft - the NamedProfile does not have a key.  (See my
earlier comments for details).


/martin

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Mon May 28 10:17:30 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1Hsg2L-0007fd-72; Mon, 28 May 2007 10:17:29 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1Hsg2J-0007fU-PF
	for ngo@ietf.org; Mon, 28 May 2007 10:17:27 -0400
Received: from smtp102.sbc.mail.mud.yahoo.com ([68.142.198.201])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1Hsg2G-0003UY-9e
	for ngo@ietf.org; Mon, 28 May 2007 10:17:27 -0400
Received: (qmail 55671 invoked from network); 28 May 2007 14:17:23 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@76.195.156.84
	with plain)
	by smtp102.sbc.mail.mud.yahoo.com with SMTP; 28 May 2007 14:17:23 -0000
X-YMail-OSG: h7a6cAMVM1k6PrA68Vs5k7ehO22jsYUqxhb0.iPAkIXj.IkG
Message-ID: <465AE442.4060809@andybierman.com>
Date: Mon, 28 May 2007 07:16:34 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [NGO] NETCONF Data Modeling "Rules"
References: <465708CB.2020002@andybierman.com>
	<20070527.211237.13677792.mbj@tail-f.com>
In-Reply-To: <20070527.211237.13677792.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: b132cb3ed2d4be2017585bf6859e1ede
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Martin Bjorklund wrote:
> Hi,
> 
> 
> Andy Bierman <ietf@andybierman.com> wrote:
>> Hi,
>>
>> I thought I would kick up some dust by asking if
>> there is any consensus that NETCONF Configuration Databases
>> should be restricted by some data modeling rules.
>> Currently, any valid XML (w/ restrictions specified in RFC 4741)
> 
> What are those restrictions (where are they specified)?
> 

no mixed XML, no DTDs; I forget the section #


>> is allowed in the <config> contents.
>>
>> Some implementers (myself included) have found that certain
>> practices are "more complicated than worth doing", and since
>> the DM choice is up to the vendor, there may not be any need
>> for restrictions.
>>
>> Here are the Top 5 restrictions I would make if I wanted
>> to simplify NETCONF Data Modeling:
>>
>>   - use of writable XML attributes inside config data elements not allowed
> 
> This one doesn't necessarily make implementations simpler.  I think
> this rule follows from the recommendation that attributes should
> contain meta-data (like owner, last-updated etc).

Merge and rollback of only attribute merges in interior nodes
is special-case code.  IMO, not worth the trouble, but not impossible.

> 
>>   - use of unnamed data (no key defined and "maxOccurs > 1" is true)
>>     not allowed
> 
> As you say we have discussed this one before.  IMO this rule is
> necessary in order for <edit-config> to work.  You could argue that
> it's useful w/o keys if the object is "small", but how do you define
> "small"?  This special rule probably just makes things more
> complicated.


Unnamed data is technically data named by its relative position
among the set of instances of the element.  As you pointed out,
it is impossible to use edit-config to identify a specific
instance for deletion or editing (e.g., /foo[3] has no analog
in subtree filtering)

If multiple unnamed instances are allowed, then 'merge' never works as intended.
It always adds a new instance instead of changing the old one.

So unnamed data is okay to use if you don't want to use edit-config
on that data.

> 
>>   - use of keyed data without a container not allowed
>>     (e.g., /interface[ifIndex=1] instead of 
>> /interfaces/interface[ifIndex=1])
> 
> I don't see how that makes things simpler.
> 


Just a data organization thing.
Perhaps a SHOULD instead of a MUST.


>>   - 1 top-level element (child of <config>) per namespace allowed
> 
> We (in our agent) started out with that restriction, but it feels like
> a CLR and it's difficult to motivate.  So we now support multiple
> top-level elements.  XSD and RelaxNG support it.  Why should we make
> this restriction?

You are probably right.
It is better not to make any rules about namespace usage.
An ad-hoc, organizational train-wreck has worked so far ;-)

> 
>>   - each top-level element must be a container node
>>     - a container must have complex content, not simple content
>>     - zero or one instance of a container is allowed
> 
> This probably makes sense.  So you wouldn't be allowed to define a
> single leaf as top-level node?


Just a data organization thing and avoiding a subtree-filtering corner case.
Data organization never looks like a problem when the data pool size is '3'.

> 
>> I am not going to go into the implementation details.
>> (You saw some of if wrt/ edit-config on the 'any' data type).
>> I actually support most of these things in my code, but IMO
>> the complexity isn't worth it.
>>
>> So are these restrictions a good idea or just more CLRs?
>> I think we are already following these restrictions in
>> the Notifications draft data models.
> 
> I think that the most important rule is _not_ followed in the
> Notifications draft - the NamedProfile does not have a key.  (See my
> earlier comments for details).
> 

This is just one of the bugs that needs to get fixed in that draft.

> 
> /martin
> 
> 


Andy


_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Wed May 30 19:23:17 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HtXVc-0005Kn-Qw; Wed, 30 May 2007 19:23:16 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HtXVa-0005Kb-BL
	for ngo@ietf.org; Wed, 30 May 2007 19:23:14 -0400
Received: from ind-iport-1.cisco.com ([64.104.129.195])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HtXVY-0003T4-CV
	for ngo@ietf.org; Wed, 30 May 2007 19:23:14 -0400
Received: from hkg-dkim-2.cisco.com ([10.75.231.163])
	by ind-iport-1.cisco.com with ESMTP; 31 May 2007 17:47:49 +0530
X-IronPort-AV: i="4.14,595,1170613800"; 
	d="scan'208"; a="81140603:sNHT53455122"
Received: from hkg-core-1.cisco.com (hkg-core-1.cisco.com [64.104.123.94])
	by hkg-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id l4UNN8Z3031919
	for <ngo@ietf.org>; Thu, 31 May 2007 07:23:08 +0800
Received: from xbh-hkg-412.apac.cisco.com (xbh-hkg-412.cisco.com
	[64.104.123.69])
	by hkg-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l4UNN7q4012292
	for <ngo@ietf.org>; Wed, 30 May 2007 23:23:08 GMT
Received: from xmb-hkg-411.apac.cisco.com ([64.104.123.77]) by
	xbh-hkg-412.apac.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 31 May 2007 07:23:06 +0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [NGO] NETCONF protocol extensions
Date: Thu, 31 May 2007 07:23:06 +0800
Message-ID: <EB8B17D2EB82D7438B42703BA3E033F30128868E@xmb-hkg-411.apac.cisco.com>
In-Reply-To: <4615F544.6080602@ericsson.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [NGO] NETCONF protocol extensions
Thread-Index: Acd4HIhWnlxFIA1EQva35hmJBoXnJAq8u0Tw
References: <45F6D924.805@andybierman.com> <4615F544.6080602@ericsson.com>
From: "James Balestriere \(jbalestr\)" <jbalestr@cisco.com>
Cc: "NETCONF Goes On" <ngo@ietf.org>
X-OriginalArrivalTime: 30 May 2007 23:23:06.0418 (UTC)
	FILETIME=[7A40B120:01C7A311]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=3902; t=1180567388;
	x=1181431388; c=relaxed/simple; s=hkgdkim2001;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=jbalestr@cisco.com;
	z=From:=20=22James=20Balestriere=20\(jbalestr\)=22=20<jbalestr@cisco.com>
	|Subject:=20RE=3A=20[NGO]=20NETCONF=20protocol=20extensions
	|Sender:=20; bh=YN2g9Y3kqiR63jqShhdK46Ms8sLn20facPGBAPlruC4=;
	b=ssHbjTjtlJ/YIhI/3Jw4uW77holv5/7XNf7I+rtxfrNFzqdYxY6wyYx/0wgCtwiwa6clV2w5
	ig3E4SeTLcSG3tXX5rSOez1WrDht5x5tW0beMoOQjrVf7BG9RqRc8y3A57MtiEckQgdjvf7M7U
	gkgJW7FCCQYKMJVA569vrEe4g=;
Authentication-Results: hkg-dkim-2; header.From=jbalestr@cisco.com; dkim=pass (
	sig from cisco.com/hkgdkim2001 verified; ); 
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9a2be21919e71dc6faef12b370c4ecf5
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

With item 2) name=3D"with-defaults" there are potentially more options.
On my boxes we have at least 3 options,=20
1) no defaults shown
2) all config shown
3) brief, where things things like crypto certificate is suppressed.

so rather than a boolean we could make an enum ?

James.

> -----Original Message-----
> From: Balazs Lengyel [mailto:balazs.lengyel@ericsson.com]=20
> Sent: Friday, 6 April 2007 5:23 PM
> Cc: NETCONF Goes On
> Subject: Re: [NGO] NETCONF protocol extensions
>=20
> Hello,
> 1) We support this. Ericsson actually has implemented=20
> something like "test-only". It would also=20
> clarify an important point in the original RFC: whether to=20
> use inline-configuration data in the=20
> <validate> operation which is explicitly supported by the XSD=20
> but not according to the text part.
> 2) A useful idea. If we do it, I strongly support the=20
> explicit indication whether defaults are=20
> requested to be returned or not.
> 3) Would be good.
> Balazs
>=20
> Andy Bierman wrote:
> > Hi Martin,
> >=20
> > Since we're both working on different NC extensions, as are many
> > others I suspect, I wonder if it would be too early to discuss
> > some basic extensions that make the protocol work as intended,
> > rather than as specified.
> >=20
> > I'm not going to list everything here, but 3 obvious extensions
> > that have been discussed already:
> >=20
> > 1) test-only
> >=20
> >    Extension to <test-option> parameter in <edit-config> operation,
> >    which causes the agent to validate the <source>=20
> configuration fragment
> >    against the <target> configuration. Processing is done=20
> in the normal=20
> > manner,
> >    except the agent will exit the operation without=20
> actually performing the
> >    requested edit.
> >=20
> > 2) with-defaults attribute
> >=20
> >    <xs:attribute name=3D"with-defaults" type=3D"boolean"=20
> default=3D"true" />
> >=20
> >    The standard NETCONF operations are defined such that all values,
> >    including default values must be returned in <get>, <get-config>,
> >    and <copy-config> operations.  However, it is standard=20
> NM practice
> >    to omit generation of configuration parameters which are present
> >    in the agent but contain a default value selected by the agent.
> >=20
> >    If the 'with-defaults' attribute is present in the <rpc> element,
> >    with a value of 'false', and the RPC method is <get>,=20
> <get-config>,
> >    or <copy-config>, then the agent will suppress output of any=20
> > configuration
> >    parameters which contain an agent-selected default value.
> >=20
> >    In this mode, only configuration parameters which have been
> >    explicitly set to a value other than the default value will
> >    be included in the <rpc-reply> output.  This special filter
> >    is applied in addition to any filter that might have been
> >    supplied in the request.
> >=20
> > 3) Conventions for data model module <capability> format:
> >    - need to convey the fact that the capability represents a module
> >    - need to convey module meta-data (owner, name, version,=20
> namespace URI)
> >=20
> > I wonder if we could have a bar-BOF to see if there is some=20
> consensus
> > on a small number of these inter-operability details.
> >=20
> > thanks,
> > Andy
> >=20
> >=20
> > _______________________________________________
> > NGO mailing list
> > NGO@ietf.org
> > https://www1.ietf.org/mailman/listinfo/ngo
>=20
> --=20
> Balazs Lengyel                       Ericsson Hungary Ltd.
> TSP System Manager
> ECN: 831 7320                        Fax: +36 1 4377792
> Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com
>=20
> _______________________________________________
> NGO mailing list
> NGO@ietf.org
> https://www1.ietf.org/mailman/listinfo/ngo
>=20

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Wed May 30 19:32:20 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HtXeN-0000PK-U3; Wed, 30 May 2007 19:32:19 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HtXeM-0000PC-HI
	for ngo@ietf.org; Wed, 30 May 2007 19:32:18 -0400
Received: from smtp108.sbc.mail.mud.yahoo.com ([68.142.198.207])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1HtXeM-0005UP-1l
	for ngo@ietf.org; Wed, 30 May 2007 19:32:18 -0400
Received: (qmail 40412 invoked from network); 30 May 2007 23:32:17 -0000
Received: from unknown (HELO ?127.0.0.1?) (andybierman@att.net@76.195.156.84
	with plain)
	by smtp108.sbc.mail.mud.yahoo.com with SMTP; 30 May 2007 23:32:17 -0000
X-YMail-OSG: qZY7VJQVM1keBavTkCF4rE1Ykqz9KRQS_5TAAe1Q9LUXR0AUWhJGLlOqXWFlCNchGZfNHjed66u6c9SXVURPC0PkZQ--
Message-ID: <465E094F.7080406@andybierman.com>
Date: Wed, 30 May 2007 16:31:27 -0700
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: "James Balestriere (jbalestr)" <jbalestr@cisco.com>
Subject: Re: [NGO] NETCONF protocol extensions
References: <45F6D924.805@andybierman.com> <4615F544.6080602@ericsson.com>
	<EB8B17D2EB82D7438B42703BA3E033F30128868E@xmb-hkg-411.apac.cisco.com>
In-Reply-To: <EB8B17D2EB82D7438B42703BA3E033F30128868E@xmb-hkg-411.apac.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6ffdee8af20de249c24731d8414917d3
Cc: NETCONF Goes On <ngo@ietf.org>
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

James Balestriere (jbalestr) wrote:
> With item 2) name="with-defaults" there are potentially more options.
> On my boxes we have at least 3 options, 
> 1) no defaults shown
> 2) all config shown
> 3) brief, where things things like crypto certificate is suppressed.
> 
> so rather than a boolean we could make an enum ?
> 

If the enum is well-defined and interoperable.
I have no idea how to specify (3) in a way that would meet this criteria.
This is an important option to work in an deterministic manner
across all agents.

Either a leaf node is set to the agent-supplied default value or not.
This is very easy to specify and determine.  What does "brief mode" mean
wrt/ to this option?


> James.

Andy

> 
>> -----Original Message-----
>> From: Balazs Lengyel [mailto:balazs.lengyel@ericsson.com] 
>> Sent: Friday, 6 April 2007 5:23 PM
>> Cc: NETCONF Goes On
>> Subject: Re: [NGO] NETCONF protocol extensions
>>
>> Hello,
>> 1) We support this. Ericsson actually has implemented 
>> something like "test-only". It would also 
>> clarify an important point in the original RFC: whether to 
>> use inline-configuration data in the 
>> <validate> operation which is explicitly supported by the XSD 
>> but not according to the text part.
>> 2) A useful idea. If we do it, I strongly support the 
>> explicit indication whether defaults are 
>> requested to be returned or not.
>> 3) Would be good.
>> Balazs
>>
>> Andy Bierman wrote:
>>> Hi Martin,
>>>
>>> Since we're both working on different NC extensions, as are many
>>> others I suspect, I wonder if it would be too early to discuss
>>> some basic extensions that make the protocol work as intended,
>>> rather than as specified.
>>>
>>> I'm not going to list everything here, but 3 obvious extensions
>>> that have been discussed already:
>>>
>>> 1) test-only
>>>
>>>    Extension to <test-option> parameter in <edit-config> operation,
>>>    which causes the agent to validate the <source> 
>> configuration fragment
>>>    against the <target> configuration. Processing is done 
>> in the normal 
>>> manner,
>>>    except the agent will exit the operation without 
>> actually performing the
>>>    requested edit.
>>>
>>> 2) with-defaults attribute
>>>
>>>    <xs:attribute name="with-defaults" type="boolean" 
>> default="true" />
>>>    The standard NETCONF operations are defined such that all values,
>>>    including default values must be returned in <get>, <get-config>,
>>>    and <copy-config> operations.  However, it is standard 
>> NM practice
>>>    to omit generation of configuration parameters which are present
>>>    in the agent but contain a default value selected by the agent.
>>>
>>>    If the 'with-defaults' attribute is present in the <rpc> element,
>>>    with a value of 'false', and the RPC method is <get>, 
>> <get-config>,
>>>    or <copy-config>, then the agent will suppress output of any 
>>> configuration
>>>    parameters which contain an agent-selected default value.
>>>
>>>    In this mode, only configuration parameters which have been
>>>    explicitly set to a value other than the default value will
>>>    be included in the <rpc-reply> output.  This special filter
>>>    is applied in addition to any filter that might have been
>>>    supplied in the request.
>>>
>>> 3) Conventions for data model module <capability> format:
>>>    - need to convey the fact that the capability represents a module
>>>    - need to convey module meta-data (owner, name, version, 
>> namespace URI)
>>> I wonder if we could have a bar-BOF to see if there is some 
>> consensus
>>> on a small number of these inter-operability details.
>>>
>>> thanks,
>>> Andy
>>>
>>>
>>> _______________________________________________
>>> NGO mailing list
>>> NGO@ietf.org
>>> https://www1.ietf.org/mailman/listinfo/ngo
>> -- 
>> Balazs Lengyel                       Ericsson Hungary Ltd.
>> TSP System Manager
>> ECN: 831 7320                        Fax: +36 1 4377792
>> Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com
>>
>> _______________________________________________
>> NGO mailing list
>> NGO@ietf.org
>> https://www1.ietf.org/mailman/listinfo/ngo
>>
> 
> _______________________________________________
> NGO mailing list
> NGO@ietf.org
> https://www1.ietf.org/mailman/listinfo/ngo
> 
> 


_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



From ngo-bounces@ietf.org Wed May 30 19:41:00 2007
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HtXmm-0004SM-IY; Wed, 30 May 2007 19:41:00 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HtXmk-0004S2-Ua
	for ngo@ietf.org; Wed, 30 May 2007 19:40:58 -0400
Received: from ind-iport-1.cisco.com ([64.104.129.195])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HtXmi-0006ds-Jq
	for ngo@ietf.org; Wed, 30 May 2007 19:40:58 -0400
Received: from hkg-dkim-1.cisco.com ([10.75.231.161])
	by ind-iport-1.cisco.com with ESMTP; 31 May 2007 18:05:34 +0530
X-IronPort-AV: i="4.14,595,1170613800"; 
	d="scan'208"; a="81141466:sNHT58756042"
Received: from hkg-core-1.cisco.com (hkg-core-1.cisco.com [64.104.123.94])
	by hkg-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id l4UNerOa030190; 
	Thu, 31 May 2007 07:40:53 +0800
Received: from xbh-hkg-411.apac.cisco.com (xbh-hkg-411.cisco.com
	[64.104.123.72])
	by hkg-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l4UNemq2013792; 
	Wed, 30 May 2007 23:40:48 GMT
Received: from xmb-hkg-411.apac.cisco.com ([64.104.123.77]) by
	xbh-hkg-411.apac.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 31 May 2007 07:40:48 +0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [NGO] NETCONF protocol extensions
Date: Thu, 31 May 2007 07:40:47 +0800
Message-ID: <EB8B17D2EB82D7438B42703BA3E033F301288692@xmb-hkg-411.apac.cisco.com>
In-Reply-To: <465E094F.7080406@andybierman.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [NGO] NETCONF protocol extensions
Thread-Index: AcejEss9zaRdSjd+S2qt6LDYZy7FWQAANynA
References: <45F6D924.805@andybierman.com> <4615F544.6080602@ericsson.com>
	<EB8B17D2EB82D7438B42703BA3E033F30128868E@xmb-hkg-411.apac.cisco.com>
	<465E094F.7080406@andybierman.com>
From: "James Balestriere \(jbalestr\)" <jbalestr@cisco.com>
To: "Andy Bierman" <ietf@andybierman.com>
X-OriginalArrivalTime: 30 May 2007 23:40:48.0204 (UTC)
	FILETIME=[F32060C0:01C7A313]
Authentication-Results: hkg-dkim-1; header.From=jbalestr@cisco.com;
	dkim=neutral ( ssp=~; );
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 3d7f2f6612d734db849efa86ea692407
Cc: NETCONF Goes On <ngo@ietf.org>
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to
	NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>,
	<mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

The certificate appears as binary looking stuff
e.g.
   69666963 6174652D 32353936 35333631 3936301E 170D3037 30353133
31333530=20
  35395A17 0D323030 31303130 30303030 305A3031 312F302D 06035504
03132649=20
  4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D32
35393635=20
  33363139 3630819F 300D0609 2A864886 F70D0101 01050003 818D0030
81890281=20
=20
So if we had something like suppress binaries ?

James.

> -----Original Message-----
> From: Andy Bierman [mailto:ietf@andybierman.com]=20
> Sent: Thursday, 31 May 2007 9:31 AM
> To: James Balestriere (jbalestr)
> Cc: NETCONF Goes On
> Subject: Re: [NGO] NETCONF protocol extensions
>=20
> James Balestriere (jbalestr) wrote:
> > With item 2) name=3D"with-defaults" there are potentially=20
> more options.
> > On my boxes we have at least 3 options,=20
> > 1) no defaults shown
> > 2) all config shown
> > 3) brief, where things things like crypto certificate is suppressed.
> >=20
> > so rather than a boolean we could make an enum ?
> >=20
>=20
> If the enum is well-defined and interoperable.
> I have no idea how to specify (3) in a way that would meet=20
> this criteria.
> This is an important option to work in an deterministic manner
> across all agents.
>=20
> Either a leaf node is set to the agent-supplied default value or not.
> This is very easy to specify and determine.  What does "brief=20
> mode" mean
> wrt/ to this option?
>=20
>=20
> > James.
>=20
> Andy
>=20
> >=20
> >> -----Original Message-----
> >> From: Balazs Lengyel [mailto:balazs.lengyel@ericsson.com]=20
> >> Sent: Friday, 6 April 2007 5:23 PM
> >> Cc: NETCONF Goes On
> >> Subject: Re: [NGO] NETCONF protocol extensions
> >>
> >> Hello,
> >> 1) We support this. Ericsson actually has implemented=20
> >> something like "test-only". It would also=20
> >> clarify an important point in the original RFC: whether to=20
> >> use inline-configuration data in the=20
> >> <validate> operation which is explicitly supported by the XSD=20
> >> but not according to the text part.
> >> 2) A useful idea. If we do it, I strongly support the=20
> >> explicit indication whether defaults are=20
> >> requested to be returned or not.
> >> 3) Would be good.
> >> Balazs
> >>
> >> Andy Bierman wrote:
> >>> Hi Martin,
> >>>
> >>> Since we're both working on different NC extensions, as are many
> >>> others I suspect, I wonder if it would be too early to discuss
> >>> some basic extensions that make the protocol work as intended,
> >>> rather than as specified.
> >>>
> >>> I'm not going to list everything here, but 3 obvious extensions
> >>> that have been discussed already:
> >>>
> >>> 1) test-only
> >>>
> >>>    Extension to <test-option> parameter in <edit-config>=20
> operation,
> >>>    which causes the agent to validate the <source>=20
> >> configuration fragment
> >>>    against the <target> configuration. Processing is done=20
> >> in the normal=20
> >>> manner,
> >>>    except the agent will exit the operation without=20
> >> actually performing the
> >>>    requested edit.
> >>>
> >>> 2) with-defaults attribute
> >>>
> >>>    <xs:attribute name=3D"with-defaults" type=3D"boolean"=20
> >> default=3D"true" />
> >>>    The standard NETCONF operations are defined such that=20
> all values,
> >>>    including default values must be returned in <get>,=20
> <get-config>,
> >>>    and <copy-config> operations.  However, it is standard=20
> >> NM practice
> >>>    to omit generation of configuration parameters which=20
> are present
> >>>    in the agent but contain a default value selected by the agent.
> >>>
> >>>    If the 'with-defaults' attribute is present in the=20
> <rpc> element,
> >>>    with a value of 'false', and the RPC method is <get>,=20
> >> <get-config>,
> >>>    or <copy-config>, then the agent will suppress output of any=20
> >>> configuration
> >>>    parameters which contain an agent-selected default value.
> >>>
> >>>    In this mode, only configuration parameters which have been
> >>>    explicitly set to a value other than the default value will
> >>>    be included in the <rpc-reply> output.  This special filter
> >>>    is applied in addition to any filter that might have been
> >>>    supplied in the request.
> >>>
> >>> 3) Conventions for data model module <capability> format:
> >>>    - need to convey the fact that the capability=20
> represents a module
> >>>    - need to convey module meta-data (owner, name, version,=20
> >> namespace URI)
> >>> I wonder if we could have a bar-BOF to see if there is some=20
> >> consensus
> >>> on a small number of these inter-operability details.
> >>>
> >>> thanks,
> >>> Andy
> >>>
> >>>
> >>> _______________________________________________
> >>> NGO mailing list
> >>> NGO@ietf.org
> >>> https://www1.ietf.org/mailman/listinfo/ngo
> >> --=20
> >> Balazs Lengyel                       Ericsson Hungary Ltd.
> >> TSP System Manager
> >> ECN: 831 7320                        Fax: +36 1 4377792
> >> Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com
> >>
> >> _______________________________________________
> >> NGO mailing list
> >> NGO@ietf.org
> >> https://www1.ietf.org/mailman/listinfo/ngo
> >>
> >=20
> > _______________________________________________
> > NGO mailing list
> > NGO@ietf.org
> > https://www1.ietf.org/mailman/listinfo/ngo
> >=20
> >=20
>=20

_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo



