我尝试使用knife vault refresh
命令刷新保管库,但是发生了无效的搜索查询错误。
我该如何解决?
$ knife vault create devvault vaultitem --file private.key -M client
$ knife vault show devvault vaultitem -M client
file-content: secret
file-name: private.key
id: vaultitem
$ knife vault rotate all keys -M client
Rotating keys for: devvault vaultitem
$ knife vault refresh devvault vaultitem -M client
ERROR: The data in your request was invalid
Response: invalid search query: '[]'
答案 0 :(得分:0)
我已经解决了。 这是必需的。
<model-templates version="v3" selectList="system,system-info,interfaces,services,config,state,dummy-types,dummy-interfaces-ip,dummy-interfaces-tunnel,dummy-interfaces-aggr,dummy-interfaces-common,dummy-interfaces-vport,dummy-interfaces-attachment-circuit,dummy-Unmarshalled" schemaList="org/example/my/tree/v3-api/{{version}}/v3-api-{{version}}.jar,org/example/my/tree/v3-dummy-model/{{version}}/v3-dummy-model-{{version}}.jar,org/example/my/tree/baseservice-api/{{version}}/baseservice-api-{{version}}.jar,org/example/my/tree/common-models/{{version}}/common-models-{{version}}.jar,org/opendaylight/mdsal/model/ext/2013.09.07.9.3-Boron-SR3/ext-2013.09.07.9.3-Boron-SR3.jar,org/opendaylight/mdsal/model/ietf-topology/2013.10.21.9.3-Boron-SR3/ietf-topology-2013.10.21.9.3-Boron-SR3.jar,org/opendaylight/mdsal/model/ietf-interfaces/2014.05.08.9.3-Boron-SR3/ietf-interfaces-2014.05.08.9.3-Boron-SR3.jar,org/opendaylight/mdsal/model/ietf-inet-types-2013-07-15/1.1.3-Boron-SR3/ietf-inet-types-2013-07-15-1.1.3-Boron-SR3.jar,org/opendaylight/mdsal/model/ietf-types-20130715/2013.07.15.9.3-Boron-SR3/ietf-types-20130715-2013.07.15.9.3-Boron-SR3.jar,org/opendaylight/mdsal/model/ietf-types/2010.09.24.9.3-Boron-SR3/ietf-types-2010.09.24.9.3-Boron-SR3.jar,org/opendaylight/netconf/ietf-netconf/1.1.3-Boron-SR3/ietf-netconf-1.1.3-Boron-SR3.jar,org/opendaylight/mdsal/model/iana-if-type-2014-05-08/2014.05.08.9.3-Boron-SR3/iana-if-type-2014-05-08-2014.05.08.9.3-Boron-SR3.jar">
<template id="dummy-system" namespace="http://www.example.com/ns/dummy-system" revision="2018-11-07"/>
</model-templates>