I'm trying to edit some attribute (/bgp/peer-groups/peer-group{BGP111}/timers/config/keepalive-interva":1154,) with the netopeer-gui client and fail. Can you please assist?
/var/log/syslog output:
May 9 18:59:19 ubuntu16 netopeerguid[12133]: lib ERROR: Unknown element "state".
May 9 18:59:19 ubuntu16 netopeerguid[12133]: error calback: empty error list
May 9 18:59:19 ubuntu16 netopeerguid[12133]: Failed to parse edit-config content.
May 9 18:59:19 ubuntu16 netopeerguid[12133]: lib VERBOSE: Resolving unresolved data nodes and their constraints...
May 9 18:59:19 ubuntu16 netopeerguid[12133]: lib VERBOSE: All data nodes and constraints resolved.
[2017-05-09 17:59:19] app.INFO: Handle: editconfig with params {"params":{"connIds":["0"],"target":"running","configs":["{\"eci-bgp:bgp\":{\"global\":{\"config\":{}},\"peer-groups\":{\"peer-group\":[{\"peer-group-name\":\"BGP111\",\"config\":{},\"state\":{},\"timers\":{\"config\":{\"keepalive-interval\":1154,\"@keepalive-interval\":{\"ietf-netconf:operation\":\"replace\"}},\"state\":{}}}]}}}"]}} []
[2017-05-09 17:59:19] app.INFO: Handle editConfig: {"configToSend":"array (\n 0 => '{\"eci-bgp:bgp\":{\"global\":{\"config\":{}},\"peer-groups\":{\"peer-group\":[{\"peer-group-name\":\"BGP111\",\"config\":{},\"state\":{},\"timers\":{\"config\":{\"keepalive-interval\":1154,\"@keepalive-interval\":{\"ietf-netconf:operation\":\"replace\"}},\"state\":{}}}]}}}',\n)"} []
[2017-05-09 17:59:19] app.INFO: Params for netconf: array ( 'type' => 8, 'sessions' => array ( 0 => 1, ), 'target' => 'running', 'configs' => array ( 0 => '{"eci-bgp:bgp":{"global":{"config":{}},"peer-groups":{"peer-group":[{"peer-group-name":"BGP111","config":{},"state":{},"timers":{"config":{"keepalive-interval":1154,"@keepalive-interval":{"ietf-netconf:operation":"replace"}},"state":{}}}]}}}', ), 'default-operation' => 'merge', 'error-option' => 'rollback-on-error', ) [] []
[2017-05-09 17:59:19] app.WARNING: Error: {"errors":["Failed to parse edit-config content."]} []
[2017-05-09 17:59:19] app.INFO: Handle result: editconfig {"response":1} []
[2017-05-09 17:59:19] app.INFO: Handle: get with params {"params":{"source":"running","connIds":["0"],"filter":"<bgp xmlns=\"urn:eci:params:xml:ns:yang:eci-bgp\" />"}} []
[2017-05-09 17:59:19] app.INFO: Params for netconf: array ( 'type' => 6, 'sessions' => array ( 0 => 1, ), 'strict' => false, 'filter' => '', ) [] []
[2017-05-09 17:59:19] app.INFO: Handle result: get {"response":"{\"eci-bgp:bgp\":{\"global\":{\"config\":{\"as\":900,\"enabled\":true,\"$@as\":{\"eltype\":\"leaf\",\"description\":\"Local autonomous system number of the router. Uses\n the 32-bit as-number type from the model in RFC 6991.\n 0, 64496..64511, 65535, 65636..65551, 65552..131071, 4294967295 are not allowed\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"ietf-inet-types:as-number\",\"typedef\":{\"description\":\"The as-number type represents autonomous system numbers\nwhich identify an Autonomous System (AS). An AS is a set\nof routers under a single technical administration, using\nan interior gateway protocol and common metrics to route\npackets within the AS, and using an exterior gateway\nprotocol to route packets to other ASes. IANA maintains\nthe AS number space and has delegated large parts to the\nregional registries.\n\nAutonomous system numbers were originally limited to 16\nbits. BGP extensions have enlarged the autonomous system\nnumber space to 32 bits. This type therefore uses an uint32\nbase type without a range restriction in order to support\na larger autonomous system number space.\n\nIn the value set and its semantics, this type is equivalent\nto the InetAutonomousSystemNumber textual convention of\nthe SMIv2.\",\"reference\":\"RFC 1930: Guidelines for creation, selection, and registration\n of an Autonomous System (AS)\nRFC 4271: A Border Gateway Protocol 4 (BGP-4)\nRFC 4001: Textual Conventions for Internet Network Addresses\nRFC 6793: BGP Support for Four-Octet Autonomous System (AS)\n Number Space\",\"status\":\"current\",\"type\":\"uint32\"},\"iskey\":false},\"$@enabled\":{\"eltype\":\"leaf\",\"description\":\"Administration enabling of the protocol.\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"bool\",\"default\":\"false\",\"iskey\":false}},\"$@config\":{\"eltype\":\"container\",\"description\":\"Configuration parameters relating to the global BGP router\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"as\",\"router-id\",\"default-route-flap-damping\",\"enabled\",\"local-preference\"]}},\"peer-groups\":{\"peer-group\":[{\"peer-group-name\":\"BGP111\",\"config\":{\"peer-type\":\"INTERNAL\",\"peer-group-name\":\"BGP111\",\"$@peer-type\":{\"eltype\":\"leaf\",\"description\":\"Explicitly designate the peer or peer group as internal\n(iBGP) or external (eBGP).\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"eci-bgp-types:peer-type\",\"typedef\":{\"description\":\"labels a peer or peer group as explicitly internal or\nexternal\",\"status\":\"current\",\"type\":\"enumeration\",\"enumval\":[\"INTERNAL\",\"EXTERNAL\"]},\"iskey\":false},\"$@peer-group-name\":{\"eltype\":\"leaf\",\"description\":\"Name of the BGP peer-group\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"string\",\"length\":\"1..80\",\"iskey\":false}},\"state\":{\"peer-type\":\"INTERNAL\",\"peer-group-name\":\"BGP111\",\"$@peer-type\":{\"eltype\":\"leaf\",\"description\":\"Explicitly designate the peer or peer group as internal\n(iBGP) or external (eBGP).\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"type\":\"eci-bgp-types:peer-type\",\"typedef\":{\"description\":\"labels a peer or peer group as explicitly internal or\nexternal\",\"status\":\"current\",\"type\":\"enumeration\",\"enumval\":[\"INTERNAL\",\"EXTERNAL\"]},\"iskey\":false},\"$@peer-group-name\":{\"eltype\":\"leaf\",\"description\":\"Name of the BGP peer-group\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"type\":\"string\",\"length\":\"1..80\",\"iskey\":false}},\"timers\":{\"config\":{\"keepalive-interval\":1152,\"$@keepalive-interval\":{\"eltype\":\"leaf\",\"description\":\"Time interval in seconds between transmission of keepalive\nmessages to the neighbor. Typically set to 1\/3 the\nhold-time.\",\"reference\":\"\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"uint16\",\"range\":\"1..1200\",\"default\":\"30\",\"iskey\":false}},\"state\":{\"keepalive-interval\":1152,\"$@keepalive-interval\":{\"eltype\":\"leaf\",\"description\":\"Time interval in seconds between transmission of keepalive\nmessages to the neighbor. Typically set to 1\/3 the\nhold-time.\",\"reference\":\"\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"type\":\"uint16\",\"range\":\"1..1200\",\"default\":\"30\",\"iskey\":false}},\"$@config\":{\"eltype\":\"container\",\"description\":\"Configuration parameters relating to timers used for the\nBGP neighbor or group\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"connect-retry\",\"hold-time\",\"keepalive-interval\",\"minimum-advertisement-interval\",\"delay-open\",\"idle-hold\"]},\"$@state\":{\"eltype\":\"container\",\"description\":\"State information relating to the timers used for the BGP\nneighbor or group\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"children\":[\"connect-retry\",\"hold-time\",\"keepalive-interval\",\"minimum-advertisement-interval\",\"delay-open\",\"idle-hold\"]}},\"$@peer-group-name\":{\"eltype\":\"leaf\",\"description\":\"Reference to the name of the BGP peer-group used as a\nkey in the peer-group list\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"string\",\"length\":\"1..80\",\"iskey\":true},\"$@config\":{\"eltype\":\"container\",\"description\":\"Configuration parameters relating to the BGP neighbor or\ngroup\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"peer-as\",\"local-as\",\"peer-type\",\"auth-password\",\"remove-private-as\",\"route-flap-damping\",\"send-community\",\"description\",\"auth-mode\",\"bfd\",\"enabled\",\"peer-group-name\"]},\"$@state\":{\"eltype\":\"container\",\"description\":\"State information relating to the BGP neighbor or group\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"children\":[\"peer-as\",\"local-as\",\"peer-type\",\"auth-password\",\"remove-private-as\",\"route-flap-damping\",\"send-community\",\"description\",\"auth-mode\",\"bfd\",\"enabled\",\"total-paths\",\"peer-group-name\"]},\"$@timers\":{\"eltype\":\"container\",\"description\":\"Timers related to a BGP neighbor or group\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"config\",\"state\"]}}],\"$@peer-group\":{\"eltype\":\"list\",\"description\":\"List of BGP peer-groups configured on the local system -\nuniquely identified by peer-group name\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"keys\":[\"peer-group-name\"],\"children\":[\"peer-group-name\",\"apply-policy\",\"as-path-options\",\"ebgp-multihop\",\"logging-options\",\"afi-safis\",\"config\",\"state\",\"error-handling\",\"timers\",\"enable-events-notifications\",\"nexthop-options\"]}},\"$@global\":{\"eltype\":\"container\",\"description\":\"Global configuration for the BGP router\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"config\",\"state\",\"default-route-distance\",\"graceful-restart\",\"route-selection-options\",\"afi-safis\",\"apply-policy\",\"enable-events-notifications\"]},\"$@peer-groups\":{\"eltype\":\"container\",\"description\":\"Configuration for BGP peer-groups\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"peer-group\"]}},\"$@eci-bgp:bgp\":{\"eltype\":\"container\",\"description\":\"Top-level configuration and state for the BGP router\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"presence\":\"Container for BGP protocol hierarchy\",\"children\":[\"global\",\"peer-groups\",\"neighbors\"]}}"} []
Hi,
I'm trying to edit some attribute (/bgp/peer-groups/peer-group{BGP111}/timers/config/keepalive-interva":1154,) with the netopeer-gui client and fail. Can you please assist?
/var/log/syslog output:
May 9 18:59:19 ubuntu16 netopeerguid[12133]: lib ERROR: Unknown element "state". May 9 18:59:19 ubuntu16 netopeerguid[12133]: error calback: empty error list May 9 18:59:19 ubuntu16 netopeerguid[12133]: Failed to parse edit-config content. May 9 18:59:19 ubuntu16 netopeerguid[12133]: lib VERBOSE: Resolving unresolved data nodes and their constraints... May 9 18:59:19 ubuntu16 netopeerguid[12133]: lib VERBOSE: All data nodes and constraints resolved.
/var/www/netopeer-gui/app/logs/prod.data.log output:
[2017-05-09 17:59:19] app.INFO: Handle: editconfig with params {"params":{"connIds":["0"],"target":"running","configs":["{\"eci-bgp:bgp\":{\"global\":{\"config\":{}},\"peer-groups\":{\"peer-group\":[{\"peer-group-name\":\"BGP111\",\"config\":{},\"state\":{},\"timers\":{\"config\":{\"keepalive-interval\":1154,\"@keepalive-interval\":{\"ietf-netconf:operation\":\"replace\"}},\"state\":{}}}]}}}"]}} [] [2017-05-09 17:59:19] app.INFO: Handle editConfig: {"configToSend":"array (\n 0 => '{\"eci-bgp:bgp\":{\"global\":{\"config\":{}},\"peer-groups\":{\"peer-group\":[{\"peer-group-name\":\"BGP111\",\"config\":{},\"state\":{},\"timers\":{\"config\":{\"keepalive-interval\":1154,\"@keepalive-interval\":{\"ietf-netconf:operation\":\"replace\"}},\"state\":{}}}]}}}',\n)"} [] [2017-05-09 17:59:19] app.INFO: Params for netconf: array ( 'type' => 8, 'sessions' => array ( 0 => 1, ), 'target' => 'running', 'configs' => array ( 0 => '{"eci-bgp:bgp":{"global":{"config":{}},"peer-groups":{"peer-group":[{"peer-group-name":"BGP111","config":{},"state":{},"timers":{"config":{"keepalive-interval":1154,"@keepalive-interval":{"ietf-netconf:operation":"replace"}},"state":{}}}]}}}', ), 'default-operation' => 'merge', 'error-option' => 'rollback-on-error', ) [] [] [2017-05-09 17:59:19] app.WARNING: Error: {"errors":["Failed to parse edit-config content."]} [] [2017-05-09 17:59:19] app.INFO: Handle result: editconfig {"response":1} [] [2017-05-09 17:59:19] app.INFO: Handle: get with params {"params":{"source":"running","connIds":["0"],"filter":"<bgp xmlns=\"urn:eci:params:xml:ns:yang:eci-bgp\" />"}} [] [2017-05-09 17:59:19] app.INFO: Params for netconf: array ( 'type' => 6, 'sessions' => array ( 0 => 1, ), 'strict' => false, 'filter' => ' ', ) [] []
[2017-05-09 17:59:19] app.INFO: Handle result: get {"response":"{\"eci-bgp:bgp\":{\"global\":{\"config\":{\"as\":900,\"enabled\":true,\"$@as\":{\"eltype\":\"leaf\",\"description\":\"Local autonomous system number of the router. Uses\n the 32-bit as-number type from the model in RFC 6991.\n 0, 64496..64511, 65535, 65636..65551, 65552..131071, 4294967295 are not allowed\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"ietf-inet-types:as-number\",\"typedef\":{\"description\":\"The as-number type represents autonomous system numbers\nwhich identify an Autonomous System (AS). An AS is a set\nof routers under a single technical administration, using\nan interior gateway protocol and common metrics to route\npackets within the AS, and using an exterior gateway\nprotocol to route packets to other ASes. IANA maintains\nthe AS number space and has delegated large parts to the\nregional registries.\n\nAutonomous system numbers were originally limited to 16\nbits. BGP extensions have enlarged the autonomous system\nnumber space to 32 bits. This type therefore uses an uint32\nbase type without a range restriction in order to support\na larger autonomous system number space.\n\nIn the value set and its semantics, this type is equivalent\nto the InetAutonomousSystemNumber textual convention of\nthe SMIv2.\",\"reference\":\"RFC 1930: Guidelines for creation, selection, and registration\n of an Autonomous System (AS)\nRFC 4271: A Border Gateway Protocol 4 (BGP-4)\nRFC 4001: Textual Conventions for Internet Network Addresses\nRFC 6793: BGP Support for Four-Octet Autonomous System (AS)\n Number Space\",\"status\":\"current\",\"type\":\"uint32\"},\"iskey\":false},\"$@enabled\":{\"eltype\":\"leaf\",\"description\":\"Administration enabling of the protocol.\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"bool\",\"default\":\"false\",\"iskey\":false}},\"$@config\":{\"eltype\":\"container\",\"description\":\"Configuration parameters relating to the global BGP router\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"as\",\"router-id\",\"default-route-flap-damping\",\"enabled\",\"local-preference\"]}},\"peer-groups\":{\"peer-group\":[{\"peer-group-name\":\"BGP111\",\"config\":{\"peer-type\":\"INTERNAL\",\"peer-group-name\":\"BGP111\",\"$@peer-type\":{\"eltype\":\"leaf\",\"description\":\"Explicitly designate the peer or peer group as internal\n(iBGP) or external (eBGP).\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"eci-bgp-types:peer-type\",\"typedef\":{\"description\":\"labels a peer or peer group as explicitly internal or\nexternal\",\"status\":\"current\",\"type\":\"enumeration\",\"enumval\":[\"INTERNAL\",\"EXTERNAL\"]},\"iskey\":false},\"$@peer-group-name\":{\"eltype\":\"leaf\",\"description\":\"Name of the BGP peer-group\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"string\",\"length\":\"1..80\",\"iskey\":false}},\"state\":{\"peer-type\":\"INTERNAL\",\"peer-group-name\":\"BGP111\",\"$@peer-type\":{\"eltype\":\"leaf\",\"description\":\"Explicitly designate the peer or peer group as internal\n(iBGP) or external (eBGP).\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"type\":\"eci-bgp-types:peer-type\",\"typedef\":{\"description\":\"labels a peer or peer group as explicitly internal or\nexternal\",\"status\":\"current\",\"type\":\"enumeration\",\"enumval\":[\"INTERNAL\",\"EXTERNAL\"]},\"iskey\":false},\"$@peer-group-name\":{\"eltype\":\"leaf\",\"description\":\"Name of the BGP peer-group\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"type\":\"string\",\"length\":\"1..80\",\"iskey\":false}},\"timers\":{\"config\":{\"keepalive-interval\":1152,\"$@keepalive-interval\":{\"eltype\":\"leaf\",\"description\":\"Time interval in seconds between transmission of keepalive\nmessages to the neighbor. Typically set to 1\/3 the\nhold-time.\",\"reference\":\"\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"uint16\",\"range\":\"1..1200\",\"default\":\"30\",\"iskey\":false}},\"state\":{\"keepalive-interval\":1152,\"$@keepalive-interval\":{\"eltype\":\"leaf\",\"description\":\"Time interval in seconds between transmission of keepalive\nmessages to the neighbor. Typically set to 1\/3 the\nhold-time.\",\"reference\":\"\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"type\":\"uint16\",\"range\":\"1..1200\",\"default\":\"30\",\"iskey\":false}},\"$@config\":{\"eltype\":\"container\",\"description\":\"Configuration parameters relating to timers used for the\nBGP neighbor or group\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"connect-retry\",\"hold-time\",\"keepalive-interval\",\"minimum-advertisement-interval\",\"delay-open\",\"idle-hold\"]},\"$@state\":{\"eltype\":\"container\",\"description\":\"State information relating to the timers used for the BGP\nneighbor or group\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"children\":[\"connect-retry\",\"hold-time\",\"keepalive-interval\",\"minimum-advertisement-interval\",\"delay-open\",\"idle-hold\"]}},\"$@peer-group-name\":{\"eltype\":\"leaf\",\"description\":\"Reference to the name of the BGP peer-group used as a\nkey in the peer-group list\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"type\":\"string\",\"length\":\"1..80\",\"iskey\":true},\"$@config\":{\"eltype\":\"container\",\"description\":\"Configuration parameters relating to the BGP neighbor or\ngroup\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"peer-as\",\"local-as\",\"peer-type\",\"auth-password\",\"remove-private-as\",\"route-flap-damping\",\"send-community\",\"description\",\"auth-mode\",\"bfd\",\"enabled\",\"peer-group-name\"]},\"$@state\":{\"eltype\":\"container\",\"description\":\"State information relating to the BGP neighbor or group\",\"config\":false,\"status\":\"current\",\"mandatory\":false,\"children\":[\"peer-as\",\"local-as\",\"peer-type\",\"auth-password\",\"remove-private-as\",\"route-flap-damping\",\"send-community\",\"description\",\"auth-mode\",\"bfd\",\"enabled\",\"total-paths\",\"peer-group-name\"]},\"$@timers\":{\"eltype\":\"container\",\"description\":\"Timers related to a BGP neighbor or group\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"config\",\"state\"]}}],\"$@peer-group\":{\"eltype\":\"list\",\"description\":\"List of BGP peer-groups configured on the local system -\nuniquely identified by peer-group name\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"keys\":[\"peer-group-name\"],\"children\":[\"peer-group-name\",\"apply-policy\",\"as-path-options\",\"ebgp-multihop\",\"logging-options\",\"afi-safis\",\"config\",\"state\",\"error-handling\",\"timers\",\"enable-events-notifications\",\"nexthop-options\"]}},\"$@global\":{\"eltype\":\"container\",\"description\":\"Global configuration for the BGP router\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"config\",\"state\",\"default-route-distance\",\"graceful-restart\",\"route-selection-options\",\"afi-safis\",\"apply-policy\",\"enable-events-notifications\"]},\"$@peer-groups\":{\"eltype\":\"container\",\"description\":\"Configuration for BGP peer-groups\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"children\":[\"peer-group\"]}},\"$@eci-bgp:bgp\":{\"eltype\":\"container\",\"description\":\"Top-level configuration and state for the BGP router\",\"config\":true,\"status\":\"current\",\"mandatory\":false,\"presence\":\"Container for BGP protocol hierarchy\",\"children\":[\"global\",\"peer-groups\",\"neighbors\"]}}"} []
Thanks, Orly.