/home/julia/netconf_n366/venv/bin/python /home/julia/netconf_n366/main.py 10.40.1.100 22 admin admin 2020-12-01 21:44:38,800 [host None session 0x7f25bd8aeb00] created: client_capabilities= 2020-12-01 21:44:38,895 starting thread (client mode): 0xb971ff60 2020-12-01 21:44:38,896 Local version/idstring: SSH-2.0-paramiko_2.7.2 2020-12-01 21:44:38,995 Remote version/idstring: SSH-2.0-OpenSSH_8.0 2020-12-01 21:44:38,995 Connected (version 2.0, client OpenSSH_8.0) 2020-12-01 21:44:39,295 kex algos:['curve25519-sha256', 'curve25519-sha256@libssh.org', 'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group16-sha512', 'diffie-hellman-group18-sha512', 'diffie-hellman-group14-sha256', 'diffie-hellman-group14-sha1'] server key:['rsa-sha2-512', 'rsa-sha2-256', 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ssh-ed25519'] client encrypt:['chacha20-poly1305@openssh.com', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-gcm@openssh.com', 'aes256-gcm@openssh.com'] server encrypt:['chacha20-poly1305@openssh.com', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-gcm@openssh.com', 'aes256-gcm@openssh.com'] client mac:['umac-64-etm@openssh.com', 'umac-128-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha1-etm@openssh.com', 'umac-64@openssh.com', 'umac-128@openssh.com', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] server mac:['umac-64-etm@openssh.com', 'umac-128-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha1-etm@openssh.com', 'umac-64@openssh.com', 'umac-128@openssh.com', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] client compress:['none'] server compress:['none'] client lang:[''] server lang:[''] kex follows?False 2020-12-01 21:44:39,296 Kex agreed: curve25519-sha256@libssh.org 2020-12-01 21:44:39,296 HostKey agreed: ssh-ed25519 2020-12-01 21:44:39,296 Cipher agreed: aes128-ctr 2020-12-01 21:44:39,296 MAC agreed: hmac-sha2-256 2020-12-01 21:44:39,297 Compression agreed: none 2020-12-01 21:44:39,758 kex engine KexCurve25519 specified hash_algo 2020-12-01 21:44:39,759 Switch to new keys ... 2020-12-01 21:44:40,120 userauth is OK 2020-12-01 21:44:40,396 Authentication (password) successful! 2020-12-01 21:44:40,397 [chan 0] Max packet in: 32768 bytes 2020-12-01 21:44:40,620 Received global request "hostkeys-00@openssh.com" 2020-12-01 21:44:40,620 Rejecting "hostkeys-00@openssh.com" global request from server. 2020-12-01 21:44:40,754 [chan 0] Max packet out: 32768 bytes 2020-12-01 21:44:40,754 Secsh channel 0 opened. 2020-12-01 21:44:40,976 [chan netconf-subsystem-0] Sesch channel 0 request ok 2020-12-01 21:44:40,976 [host 10.40.1.100 session 0x7f25bd8aeb00] installing listener 2020-12-01 21:44:40,977 [host 10.40.1.100 session 0x7f25bd8aeb00] installing listener 2020-12-01 21:44:40,978 [host 10.40.1.100 session 0x7f25bd8aeb00] queueing urn:ietf:params:netconf:base:1.0urn:ietf:params:netconf:base:1.1urn:ietf:params:netconf:capability:writable-running:1.0urn:ietf:params:netconf:capability:candidate:1.0urn:ietf:params:netconf:capability:confirmed-commit:1.0urn:ietf:params:netconf:capability:rollback-on-error:1.0urn:ietf:params:netconf:capability:startup:1.0urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file,https,sftpurn:ietf:params:netconf:capability:validate:1.0urn:ietf:params:netconf:capability:xpath:1.0urn:ietf:params:netconf:capability:notification:1.0urn:liberouter:params:netconf:capability:power-control:1.0urn:ietf:params:netconf:capability:interleave:1.0urn:ietf:params:netconf:capability:with-defaults:1.0 2020-12-01 21:44:40,979 [host 10.40.1.100 session 0x7f25bd8aeb00] starting main loop 2020-12-01 21:44:40,980 [host 10.40.1.100 session 0x7f25bd8aeb00] selector type = EpollSelector 2020-12-01 21:44:41,080 [host 10.40.1.100 session 0x7f25bd8aeb00] Sending message 2020-12-01 21:44:41,081 [host 10.40.1.100 session 0x7f25bd8aeb00] Sending: urn:ietf:params:netconf:base:1.0urn:ietf:params:netconf:base:1.1urn:ietf:params:netconf:capability:writable-running:1.0urn:ietf:params:netconf:capability:candidate:1.0urn:ietf:params:netconf:capability:confirmed-commit:1.0urn:ietf:params:netconf:capability:rollback-on-error:1.0urn:ietf:params:netconf:capability:startup:1.0urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file,https,sftpurn:ietf:params:netconf:capability:validate:1.0urn:ietf:params:netconf:capability:xpath:1.0urn:ietf:params:netconf:capability:notification:1.0urn:liberouter:params:netconf:capability:power-control:1.0urn:ietf:params:netconf:capability:interleave:1.0urn:ietf:params:netconf:capability:with-defaults:1.0]]>]]> 2020-12-01 21:44:41,109 [host 10.40.1.100 session 0x7f25bd8aeb00] parsing netconf v1.0 2020-12-01 21:44:41,109 [host 10.40.1.100 session 0x7f25bd8aeb00] Received message from host 2020-12-01 21:44:41,109 [host 10.40.1.100 session 0x7f25bd8aeb00] Received: urn:ietf:params:netconf:base:1.0urn:ietf:params:netconf:capability:candidate:1.0urn:ietf:params:netconf:capability:validate:1.1urn:ietf:params:netconf:capability:startup:1.0urn:ietf:params:netconf:capability:xpath:1.0urn:ietf:params:netconf:capability:notification:1.016 2020-12-01 21:44:41,110 [host 10.40.1.100 session 0x7f25bd8aeb00] dispatching message to different listeners: urn:ietf:params:netconf:base:1.0urn:ietf:params:netconf:capability:candidate:1.0urn:ietf:params:netconf:capability:validate:1.1urn:ietf:params:netconf:capability:startup:1.0urn:ietf:params:netconf:capability:xpath:1.0urn:ietf:params:netconf:capability:notification:1.016 2020-12-01 21:44:41,111 [host 10.40.1.100 session 0x7f25bd8aeb00] dispatching message to listener: 2020-12-01 21:44:41,111 [host 10.40.1.100 session-id 16] dispatching message to listener: 2020-12-01 21:44:41,112 [host 10.40.1.100 session-id 16] discarding listener 2020-12-01 21:44:41,112 [host 10.40.1.100 session-id 16] initialized: session-id=16 | server_capabilities= urn:ietf:params:netconf:base:1.0 urn:ietf:params:netconf:capability:candidate:1.0 urn:ietf:params:netconf:capability:validate:1.1 urn:ietf:params:netconf:capability:startup:1.0 urn:ietf:params:netconf:capability:xpath:1.0 urn:ietf:params:netconf:capability:notification:1.0 2020-12-01 21:44:41,113 [host 10.40.1.100 session-id 16] installing listener 2020-12-01 21:44:41,113 [host 10.40.1.100 session-id 16] Requesting 'GetConfig' 2020-12-01 21:44:41,114 [host 10.40.1.100 session-id 16] queueing 2020-12-01 21:44:41,114 [host 10.40.1.100 session-id 16] Sync request, will wait for timeout=30 2020-12-01 21:44:41,212 [host 10.40.1.100 session-id 16] Sending message 2020-12-01 21:44:41,212 [host 10.40.1.100 session-id 16] Sending: ]]>]]> 2020-12-01 21:44:41,530 [host 10.40.1.100 session-id 16] parsing netconf v1.0 2020-12-01 21:44:41,531 [host 10.40.1.100 session-id 16] Received message from host 2020-12-01 21:44:41,531 [host 10.40.1.100 session-id 16] Received: 2eth1up1514truefalseeth2up1514truetrueeth3up1514truefalse
10.40.1.10022
2.2.2.224
10.40.1.1
default-ssidsk-pass1up2up3up4upeven604801112342345678911eth3transparent2eth2transparent3hosttransparent4eth1transparentadminadmin
2020-12-01 21:44:41,532 [host 10.40.1.100 session-id 16] dispatching message to different listeners: 2eth1up1514truefalseeth2up1514truetrueeth3up1514truefalse
10.40.1.10022
2.2.2.224
10.40.1.1
default-ssidsk-pass1up2up3up4upeven604801112342345678911eth3transparent2eth2transparent3hosttransparent4eth1transparentadminadmin
2020-12-01 21:44:41,533 [host 10.40.1.100 session-id 16] dispatching message to listener: 2020-12-01 21:44:41,533 [host 10.40.1.100 session-id 16] Delivering to 2020-12-01 21:44:41,534 [host 10.40.1.100 session-id 16] dispatching message to listener: 2eth1up1514truefalseeth2up1514truetrueeth3up1514truefalse
10.40.1.10022
2.2.2.224
10.40.1.1
default-ssidsk-pass1up2up3up4upeven604801112342345678911eth3transparent2eth2transparent3hosttransparent4eth1transparentadminadmin
2020-12-01 21:44:41,537 [host 10.40.1.100 session-id 16] Requesting 'EditConfig' 2020-12-01 21:44:41,537 [host 10.40.1.100 session-id 16] queueing
2.2.2.2
2020-12-01 21:44:41,538 [host 10.40.1.100 session-id 16] Sync request, will wait for timeout=30 2020-12-01 21:44:41,635 [host 10.40.1.100 session-id 16] Sending message 2020-12-01 21:44:41,636 [host 10.40.1.100 session-id 16] Sending:
2.2.2.2
]]>]]> 2020-12-01 21:44:41,877 [host 10.40.1.100 session-id 16] parsing netconf v1.0 2020-12-01 21:44:41,877 [host 10.40.1.100 session-id 16] Received message from host 2020-12-01 21:44:41,878 [host 10.40.1.100 session-id 16] Received: protocolmissing-elementconfigerror 2020-12-01 21:44:41,878 [host 10.40.1.100 session-id 16] dispatching message to different listeners: protocolmissing-elementconfigerror 2020-12-01 21:44:41,878 [host 10.40.1.100 session-id 16] dispatching message to listener: 2020-12-01 21:44:41,878 [host 10.40.1.100 session-id 16] Delivering to 2020-12-01 21:44:41,878 [host 10.40.1.100 session-id 16] dispatching message to listener: 2020-12-01 21:44:41,879 [host 10.40.1.100 session-id 16] Requesting 'CloseSession' 2020-12-01 21:44:41,879 [host 10.40.1.100 session-id 16] queueing 2020-12-01 21:44:41,879 [host 10.40.1.100 session-id 16] Sync request, will wait for timeout=30 2020-12-01 21:44:41,979 [host 10.40.1.100 session-id 16] Sending message 2020-12-01 21:44:41,979 [host 10.40.1.100 session-id 16] Sending: ]]>]]> 2020-12-01 21:44:42,230 [chan netconf-subsystem-0] EOF received (netconf-subsystem-0) 2020-12-01 21:44:42,231 [host 10.40.1.100 session-id 16] parsing netconf v1.0 2020-12-01 21:44:42,231 [host 10.40.1.100 session-id 16] Received message from host 2020-12-01 21:44:42,231 [host 10.40.1.100 session-id 16] Received: 2020-12-01 21:44:42,232 [host 10.40.1.100 session-id 16] dispatching message to different listeners: 2020-12-01 21:44:42,232 [host 10.40.1.100 session-id 16] dispatching message to listener: 2020-12-01 21:44:42,233 [host 10.40.1.100 session-id 16] Delivering to 2020-12-01 21:44:42,233 [host 10.40.1.100 session-id 16] dispatching message to listener: 2020-12-01 21:44:42,233 [host 10.40.1.100 session-id 16] Broke out of main loop, error=SessionCloseError('Unexpected session close',) 2020-12-01 21:44:42,234 [host 10.40.1.100 session-id 16] dispatching error to 2020-12-01 21:44:42,234 [host 10.40.1.100 session-id 16] dispatching error to 2020-12-01 21:44:42,235 Ignoring message for dead channel 0 Traceback (most recent call last): File "/home/julia/netconf_n366/main.py", line 67, in test_edit_config_running(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]) File "/home/julia/netconf_n366/main.py", line 61, in test_edit_config_running rpc_obj = m.edit_config(target='candidate', config=ADD_MANAGEMENT_IP) File "/home/julia/netconf_n366/venv/lib/python3.6/site-packages/ncclient/manager.py", line 231, in execute huge_tree=self._huge_tree).request(*args, **kwds) File "/home/julia/netconf_n366/venv/lib/python3.6/site-packages/ncclient/operations/edit.py", line 69, in request return self._request(node) File "/home/julia/netconf_n366/venv/lib/python3.6/site-packages/ncclient/operations/rpc.py", line 360, in _request raise self._reply.error ncclient.operations.rpc.RPCError: {'type': 'protocol', 'tag': 'missing-element', 'app_tag': None, 'severity': 'error', 'info': 'config', 'path': None, 'message': None} Process finished with exit code 1