Brocade FOS REST API 呼び出しは、ユニット名が含まれていると失敗します。
環境
- Brocade FCスイッチ
- ファブリックOS(FOS)v9.2.x
問題
REST API呼び出しによる証明書署名要求の生成brocade-security/security-certificate-generate
エンドポイントに次のものが含まれている場合、unit-name
パラメータ:
$ cat csr.xml
<security-certificate-generate>
<certificate-entity>csr</certificate-entity>
<certificate-type> https</certificate-type>
<algorithm-type>ecdsa</algorithm-type>
<key-size>P384</key-size>
<hash-type>sha512</hash-type>
<years>1</years>
<country-name>DE</country-name>
<state-name>Baz</state-name>
<locality-name>Bar</locality-name>
<organization-name>Foo</organization-name>
<email-address>mail@example.com</email-address>
<domain-name>example.com</domain-name>
<unit-name>Test</unit-name>
</security-certificate-generate>
$ curl --data "@csr.xml" --header "Content-Type: application/yang-data+xml" \
--header "Authorization:Custom_Basic TOKEN" \
--request POST https://example.com/rest/running/bro...icate-generate
<?xml version="1.0" ?>
<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
<error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-app-tag>Error</error-app-tag>
<error-message>Invalid resource attribute in the request</error-message>
<error-info>
<error-code>16717060</error-code>
<error-module>cal</error-module>
</error-info>
</error>
</errors>