[sysrepo-devel] not able to delete an ietf-interface

Joan Landry JoLandry at advaoptical.com
Thu Nov 3 15:34:58 UTC 2016


I am not able to delete an ietf interface - the following netopeer debug shows that the operation is delete
But he msg sent to sysrepo does not contain the delete information - so the interface does not get deleted.
Any ideas if this is a bug or if I am doing something wrong.
Thanks

[2016/11/03 11:25:53.223464, 3] ssh_channel_read_timeout:  Read (1) buffered : 1 bytes. Window: 1257423
netopeer2-server[28284]: Session 1: received message:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="51"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <target>
      <candidate/>
    </target>
    <config><if:interfaces xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" nc:operation="delete">
          <if:interface nc:operation="delete">
            <if:name>ip-2</if:name>
          </if:interface>
        </if:interfaces>
    </config>
  </edit-config>
</rpc>
netopeer2-server[28284]: DICT: inserting "rpc" with collision
netopeer2-server[28284]: DICT: inserting "message-id" with collision
netopeer2-server[28284]: DICT: inserting "51" with collision
netopeer2-server[28284]: DICT: inserting (refcount) "urn:ietf:params:xml:ns:netconf:base:1.0"
netopeer2-server[28284]: DICT: inserting (refcount) "edit-config"
netopeer2-server[28284]: DICT: inserting (refcount) "urn:ietf:params:xml:ns:netconf:base:1.0"
netopeer2-server[28284]: DICT: inserting (refcount) "target"
netopeer2-server[28284]: DICT: inserting (refcount) "candidate"
netopeer2-server[28284]: DICT: inserting (refcount) ""
netopeer2-server[28284]: DICT: inserting (refcount) ""
netopeer2-server[28284]: DICT: inserting (refcount) "config"
netopeer2-server[28284]: DICT: inserting (refcount) "interfaces"
netopeer2-server[28284]: DICT: inserting (refcount) "if"
netopeer2-server[28284]: DICT: inserting (refcount) "urn:ietf:params:xml:ns:yang:ietf-interfaces"
netopeer2-server[28284]: DICT: inserting "operation" with collision
netopeer2-server[28284]: DICT: inserting (refcount) "delete"
netopeer2-server[28284]: DICT: inserting (refcount) "interface"
netopeer2-server[28284]: DICT: inserting (refcount) "operation"
netopeer2-server[28284]: DICT: inserting (refcount) "delete"
netopeer2-server[28284]: DICT: inserting (refcount) "name"
netopeer2-server[28284]: DICT: inserting "ip-2" with collision
netopeer2-server[28284]: DICT: inserting (refcount) ""
netopeer2-server[28284]: DICT: inserting (refcount) ""
netopeer2-server[28284]: DICT: inserting (refcount) ""
netopeer2-server[28284]: DICT: inserting (refcount) ""
netopeer2-server[28284]: DICT: inserting (refcount) ""
netopeer2-server[28284]: DICT: inserting (refcount) "merge"
netopeer2-server[28284]: DICT: inserting (refcount) "test-then-set"
netopeer2-server[28284]: DICT: inserting (refcount) "stop-on-error"
netopeer2-server[28284]: Resolving unresolved data nodes and their constraints...
netopeer2-server[28284]: All data nodes and constraints resolved.
netopeer2-server[28284]: XPATH: expression "/ietf-netconf:edit-config/target/*":
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "ietf-netconf:edit-config"
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "target"
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "*"
netopeer2-server[28284]: XPATH: eval_absolute_location_path parsed Operator(Path)[0]
netopeer2-server[28284]: DICT: inserting (refcount) "edit-config"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[1]
netopeer2-server[28284]: XPATH: eval_relative_location_path parsed Operator(Path)[25]
netopeer2-server[28284]: DICT: inserting (refcount) "target"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[26]
netopeer2-server[28284]: XPATH: eval_relative_location_path parsed Operator(Path)[32]
netopeer2-server[28284]: DICT: inserting (refcount) "*"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[33]
netopeer2-server[28284]: XPATH: expression "/ietf-netconf:edit-config/default-operation":
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "ietf-netconf:edit-config"
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "default-operation"
netopeer2-server[28284]: XPATH: eval_absolute_location_path parsed Operator(Path)[0]
netopeer2-server[28284]: DICT: inserting (refcount) "edit-config"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[1]
netopeer2-server[28284]: XPATH: eval_relative_location_path parsed Operator(Path)[25]
netopeer2-server[28284]: DICT: inserting (refcount) "default-operation"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[26]
netopeer2-server[28284]: XPATH: expression "/ietf-netconf:edit-config/test-option":
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "ietf-netconf:edit-config"
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "test-option"
netopeer2-server[28284]: XPATH: eval_absolute_location_path parsed Operator(Path)[0]
netopeer2-server[28284]: DICT: inserting (refcount) "edit-config"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[1]
netopeer2-server[28284]: XPATH: eval_relative_location_path parsed Operator(Path)[25]
netopeer2-server[28284]: DICT: inserting (refcount) "test-option"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[26]
netopeer2-server[28284]: XPATH: expression "/ietf-netconf:edit-config/error-option":
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "ietf-netconf:edit-config"
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "error-option"
netopeer2-server[28284]: XPATH: eval_absolute_location_path parsed Operator(Path)[0]
netopeer2-server[28284]: DICT: inserting (refcount) "edit-config"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[1]
netopeer2-server[28284]: XPATH: eval_relative_location_path parsed Operator(Path)[25]
netopeer2-server[28284]: DICT: inserting (refcount) "error-option"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[26]
netopeer2-server[28284]: XPATH: expression "/ietf-netconf:edit-config/config":
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "ietf-netconf:edit-config"
netopeer2-server[28284]: XPATH:            Token Operator(Path), in expression "/"
netopeer2-server[28284]: XPATH:            Token NameTest, in expression "config"
netopeer2-server[28284]: XPATH: eval_absolute_location_path parsed Operator(Path)[0]
netopeer2-server[28284]: DICT: inserting (refcount) "edit-config"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[1]
netopeer2-server[28284]: XPATH: eval_relative_location_path parsed Operator(Path)[25]
netopeer2-server[28284]: DICT: inserting (refcount) "config"
netopeer2-server[28284]: XPATH: eval_node_test              parsed NameTest[26]
netopeer2-server[28284]: Ignoring "operation" attribute in "interfaces" element.
netopeer2-server[28284]: Ignoring "operation" attribute in "interface" element.
netopeer2-server[28284]: EDIT_CONFIG: ds 8316224, defop 1, testopt 0, config:
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
  <interface>
    <name>ip-2</name>
  </interface>
</interfaces>
netopeer2-server[28284]: EDIT_CONFIG: list /ietf-interfaces:interfaces/interface[name='ip-2'], operation 1
netopeer2-server[28284]: (cl_request_process:416) Sending set-item request.
netopeer2-server[28284]: (cl_request_process:438) set-item request sent, waiting for response.
netopeer2-server[28284]: (cl_request_process:460) set-item response received, processing.
netopeer2-server[28284]: EDIT_CONFIG: success (/ietf-interfaces:interfaces/interface[name='ip-2']).
netopeer2-server[28284]: (cl_request_process:416) Sending validate request.
netopeer2-server[28284]: (cl_request_process:438) validate request sent, waiting for response.
netopeer2-server[28284]: (cl_request_process:460) validate response received, processing.
netopeer2-server[28284]: EDIT_CONFIG: done.
netopeer2-server[28284]: Session 1: sending message:

#92

[2016/11/03 11:25:53.250444, 3] ssh_socket_unbuffered_write:  Enabling POLLOUT for socket
[2016/11/03 11:25:53.250490, 3] packet_send2:  packet: wrote [len=28,padding=13,comp=14,payload=14]
[2016/11/03 11:25:53.250515, 3] channel_write_common:  channel_write wrote 5 bytes
netopeer2-server[28284]: Session 1: sending message:
<rpc-reply message-id="51" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><ok/></rpc-reply>
[2016/11/03 11:25:53.250588, 3] packet_send2:  packet: wrote [len=108,padding=6,comp=101,payload=101]
[2016/11/03 11:25:53.250614, 3] channel_write_common:  channel_write wrote 92 bytes
[2016/11/03 11:25:53.250646, 3] ssh_socket_unbuffered_write:  Enabling POLLOUT for socket
netopeer2-server[28284]: Session 1: sending message:

##

[2016/11/03 11:25:53.250713, 3] packet_send2:  packet: wrote [len=28,padding=14,comp=13,payload=13]
[2016/11/03 11:25:53.250739, 3] channel_write_common:  channel_write wrote 4 bytes
[2016/11/03 11:25:53.250767, 3] ssh_socket_unbuffered_write:  Enabling POLLOUT for socket

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sysrepo.org/archives/sysrepo-devel/attachments/20161103/015c9c57/attachment.html>


More information about the sysrepo-devel mailing list