Closed magicalfox007 closed 3 months ago
This problem appears to be due to a misspecification of xml tag.
The corrected rpc xml:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><edit-config><target><candidate/></target><config><interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"><interface xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="delete"><name>agg1</name></interface></interfaces></config></edit-config></rpc>]]>]]>
nc tag is required.
Possibly one should return a proper error message, but it is problematic with unknown attributes (operation
in namespace urn:ietf:params:xml:ns:yang:ietf-interfaces
. Clixon currently just ignores them.
Thx for reply, operation tag seems to be ignored if nc is not specifified,the request will be treated as a merge operation.
I use clixon-4.2.0 It seems that netconf delete/remove operation doesn't work.
rpc example:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><edit-config><target><candidate/></target><default-operation>none</default-operation><config><interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"><interface operation="delete"><name>agg1</name></interface></interfaces></config></edit-config></rpc>]]>]]>
reply is ok:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><ok/></rpc-reply>]]>]]>
but content in database didn't change: (the target interface still exist)
`