/home/julia/netconf_n366/venv/bin/python /home/julia/netconf_n366/main.py 10.40.1.100 22 admin admin 2020-12-02 19:45:56,523 [host None session 0x7f642b853b38] created: client_capabilities= 2020-12-02 19:45:56,616 starting thread (client mode): 0x276c4f98 2020-12-02 19:45:56,616 Local version/idstring: SSH-2.0-paramiko_2.7.2 2020-12-02 19:45:56,714 Remote version/idstring: SSH-2.0-OpenSSH_8.0 2020-12-02 19:45:56,714 Connected (version 2.0, client OpenSSH_8.0) 2020-12-02 19:45:56,898 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-02 19:45:56,898 Kex agreed: curve25519-sha256@libssh.org 2020-12-02 19:45:56,898 HostKey agreed: ssh-ed25519 2020-12-02 19:45:56,898 Cipher agreed: aes128-ctr 2020-12-02 19:45:56,898 MAC agreed: hmac-sha2-256 2020-12-02 19:45:56,898 Compression agreed: none 2020-12-02 19:45:57,367 kex engine KexCurve25519 specified hash_algo 2020-12-02 19:45:57,369 Switch to new keys ... 2020-12-02 19:45:57,902 userauth is OK 2020-12-02 19:45:58,268 Authentication (password) successful! 2020-12-02 19:45:58,269 [chan 0] Max packet in: 32768 bytes 2020-12-02 19:45:58,361 Received global request "hostkeys-00@openssh.com" 2020-12-02 19:45:58,362 Rejecting "hostkeys-00@openssh.com" global request from server. 2020-12-02 19:45:58,495 [chan 0] Max packet out: 32768 bytes 2020-12-02 19:45:58,496 Secsh channel 0 opened. 2020-12-02 19:45:58,717 [chan netconf-subsystem-0] Sesch channel 0 request ok 2020-12-02 19:45:58,717 [host 10.40.1.100 session 0x7f642b853b38] installing listener 2020-12-02 19:45:58,718 [host 10.40.1.100 session 0x7f642b853b38] installing listener 2020-12-02 19:45:58,719 [host 10.40.1.100 session 0x7f642b853b38] 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-02 19:45:58,720 [host 10.40.1.100 session 0x7f642b853b38] starting main loop 2020-12-02 19:45:58,721 [host 10.40.1.100 session 0x7f642b853b38] selector type = EpollSelector 2020-12-02 19:45:58,822 [host 10.40.1.100 session 0x7f642b853b38] Sending message 2020-12-02 19:45:58,823 [host 10.40.1.100 session 0x7f642b853b38] 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-02 19:45:58,850 [host 10.40.1.100 session 0x7f642b853b38] parsing netconf v1.0 2020-12-02 19:45:58,850 [host 10.40.1.100 session 0x7f642b853b38] Received message from host 2020-12-02 19:45:58,850 [host 10.40.1.100 session 0x7f642b853b38] 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.022 2020-12-02 19:45:58,851 [host 10.40.1.100 session 0x7f642b853b38] 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.022 2020-12-02 19:45:58,852 [host 10.40.1.100 session 0x7f642b853b38] dispatching message to listener: 2020-12-02 19:45:58,852 [host 10.40.1.100 session-id 22] dispatching message to listener: 2020-12-02 19:45:58,853 [host 10.40.1.100 session-id 22] discarding listener 2020-12-02 19:45:58,853 [host 10.40.1.100 session-id 22] initialized: session-id=22 | 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-02 19:45:58,854 [host 10.40.1.100 session-id 22] installing listener 2020-12-02 19:45:58,855 [host 10.40.1.100 session-id 22] Requesting 'GetConfig' 2020-12-02 19:45:58,855 [host 10.40.1.100 session-id 22] queueing 2020-12-02 19:45:58,855 [host 10.40.1.100 session-id 22] Sync request, will wait for timeout=30 2020-12-02 19:45:58,953 [host 10.40.1.100 session-id 22] Sending message 2020-12-02 19:45:58,954 [host 10.40.1.100 session-id 22] Sending: ]]>]]> 2020-12-02 19:45:59,238 [host 10.40.1.100 session-id 22] parsing netconf v1.0 2020-12-02 19:45:59,238 [host 10.40.1.100 session-id 22] Received message from host 2020-12-02 19:45:59,239 [host 10.40.1.100 session-id 22] Received: 2eth1up1514truefalseeth2up1514truetrueeth3up1514truefalse
10.40.1.10022
2.2.2.224
10.40.1.1
default-ssidsk-pass1up2up3up4upeven604801112342345678911eth3transparent2eth2transparent3hosttransparent4eth1transparentadminadmin
2020-12-02 19:45:59,240 [host 10.40.1.100 session-id 22] dispatching message to different listeners: 2eth1up1514truefalseeth2up1514truetrueeth3up1514truefalse
10.40.1.10022
2.2.2.224
10.40.1.1
default-ssidsk-pass1up2up3up4upeven604801112342345678911eth3transparent2eth2transparent3hosttransparent4eth1transparentadminadmin
2020-12-02 19:45:59,240 [host 10.40.1.100 session-id 22] dispatching message to listener: 2020-12-02 19:45:59,240 [host 10.40.1.100 session-id 22] Delivering to 2020-12-02 19:45:59,241 [host 10.40.1.100 session-id 22] dispatching message to listener: 2eth1up1514truefalseeth2up1514truetrueeth3up1514truefalse
10.40.1.10022
2.2.2.224
10.40.1.1
default-ssidsk-pass1up2up3up4upeven604801112342345678911eth3transparent2eth2transparent3hosttransparent4eth1transparentadminadmin
2020-12-02 19:45:59,243 [host 10.40.1.100 session-id 22] Requesting 'CloseSession' 2020-12-02 19:45:59,244 [host 10.40.1.100 session-id 22] queueing 2020-12-02 19:45:59,244 [host 10.40.1.100 session-id 22] Sync request, will wait for timeout=30 2020-12-02 19:45:59,341 [host 10.40.1.100 session-id 22] Sending message 2020-12-02 19:45:59,342 [host 10.40.1.100 session-id 22] Sending: ]]>]]> 2020-12-02 19:45:59,550 [host 10.40.1.100 session-id 22] parsing netconf v1.0 2020-12-02 19:45:59,550 [host 10.40.1.100 session-id 22] Received message from host 2020-12-02 19:45:59,551 [host 10.40.1.100 session-id 22] Received: 2020-12-02 19:45:59,551 [chan netconf-subsystem-0] EOF received (netconf-subsystem-0) 2020-12-02 19:45:59,552 [host 10.40.1.100 session-id 22] dispatching message to different listeners: 2020-12-02 19:45:59,553 [host 10.40.1.100 session-id 22] dispatching message to listener: 2020-12-02 19:45:59,553 [host 10.40.1.100 session-id 22] Delivering to 2020-12-02 19:45:59,554 [host 10.40.1.100 session-id 22] dispatching message to listener: 2020-12-02 19:45:59,554 [host 10.40.1.100 session-id 22] Broke out of main loop, error=SessionCloseError('Unexpected session close',) 2020-12-02 19:45:59,555 [host 10.40.1.100 session-id 22] dispatching error to 2020-12-02 19:45:59,555 [host 10.40.1.100 session-id 22] dispatching error to 2020-12-02 19:45:59,557 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 65, in request node.append(validated_element(config, ("config", qualify("config")))) File "/home/julia/netconf_n366/venv/lib/python3.6/site-packages/ncclient/xml_.py", line 150, in validated_element raise XMLError("Element [%s] does not meet requirement" % ele.tag) ncclient.xml_.XMLError: Element [{urn:ietf:params:xml:ns:netconf:base:1.1}config] does not meet requirement Process finished with exit code 1