CESNET / netopeer

NETCONF Protocol Toolset
118 stars 65 forks source link

NETCONF error:operation-failed (application) - Some unspecified error occurred. #170

Closed zhangk90 closed 6 years ago

zhangk90 commented 6 years ago

hi sir, When I execute the edit-config --config to set config on netopeer-cli, return this error image use netopeer-server -v 3 display this

netopeer-server[5726]: Compacting edit-config operations failed. netopeer-server[5726]: Writing message (session 1): <?xml version="1.0" encoding="UTF-8"?>

application operation-failed error Some unspecified error occurred.

xml: <?xml version="1.0" encoding="UTF-8"?>

110 bsu bsu1.db 192.168.11.11 9876 yang: module public { namespace "urn:public:params:xml:ns:yang:public"; prefix "public"; container bussunits_infos { list bussuntis_info { key bussunits_id; leaf bussunits_id{ type uint16{ range "1..65534"; } } leaf bussunits_type{ type string{ length "0..6"; } } leaf bussunits_dbname{ type string{ length "1..32"; } } leaf bussunits_ip{ type string{ length "1..16"; } } leaf bussunits_port{ type uint16{ range "1..65534"; } } } } } Please forgive my English,Any answer would be very much appreciated. Thanks!
rkrejci commented 6 years ago

Hi, edit-config's operation add is not defined, your edit-config request is invalid.

Consider using Netopeer2 which should handle these errors much better. Netopeer is no more supported.

zhangk90 commented 6 years ago

It woks.

Thanks