[CONTROLLER-1306] PUT to create config-subsytem service does not recognize odl-tcpmd5-cfg:key-access-factory Created: 12/May/15 Updated: 19/Oct/17 Resolved: 13/May/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | netconf |
| Affects Version/s: | Post-Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vratko Polak | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 3188 |
| Description |
|
The Tcpmd5 guide for Bgpcep here I tried the following curl command. It is in bash, so data is in single quotes, and single quote inside is written as '"'"'. curl -v -X PUT -H "Content-Type:application/xml" -d '<service xmlns="urn:opendaylight:params:xml:ns:yang:controller:config"> Reply is code 400 with this text: ]}} Is it a bug or am I doing something wrong? The underlying exceptions are only visible on DEBUG level in karaf.log: Note that the same log contains segment suggesting that ODL knows the Yang model I was referring to: <data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">// vi: set smarttab et sw=4 tabstop=4: module odl-tcpmd5-cfg { yang-version 1; namespace "urn:opendaylight:params:xml:ns:yang:controller:tcpmd5:cfg"; prefix "tcpmd5"; import config { prefix config; revision-date 2013-04-05; } organization "Cisco Systems, Inc."; contact "Robert Varga <rovarga@cisco.com>"; description "This module contains the base YANG definitions for TCP MD5 Signature option. Copyright (c)2014 Cisco Systems, Inc. All rights reserved.; This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html"; revision "2014-04-27" { description "Initial revision"; } identity key-access-factory { description "Service representing a way for accessing key informtion."; base "config:service-type"; config:java-class "org.opendaylight.tcpmd5.api.KeyAccessFactory"; } typedef rfc2385-key { type string { length 1..80; } } } </data> </rpc-reply> 2015-05-12 16:20:27,775 | DEBUG | oupCloseable-6-1 | AbstractObjectCache | 41 - org.opendaylight.yangtools.object-cache-api - 0.7.0.SNAPSHOT | Looking up reference for QNameModule{ns=urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring, rev=2010-10-04} 2015-05-12 16:20:27,775 | DEBUG | oupCloseable-6-1 | AbstractObjectCache | 41 - org.opendaylight.yangtools.object-cache-api - 0.7.0.SNAPSHOT | Looking up reference for (urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)data 2015-05-12 16:20:27,775 | DEBUG | oupCloseable-6-1 | nfRemoteSchemaYangSourceProvider | 197 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice{controller-config} : YANG Schema successfully retrieved for odl-tcpmd5-cfg:Optional.of(2014-04-27) |
| Comments |
| Comment by Tony Tkacik [ 13/May/15 ] |
|
YOu want to PUT only <instance xmlns="urn:opendaylight:params:xml:ns:yang:controller:config"> |
| Comment by Vratko Polak [ 13/May/15 ] |
|
Thanks Tony, that works. |