“CABUORCH-1669”的版本间的差异
来自qingwei personal wiki
(→NSO) |
|||
第49行: | 第49行: | ||
=== NSO === | === NSO === | ||
− | ==== | + | ==== push ==== |
<source lang="xml"> | <source lang="xml"> | ||
<!-- 注意! 当前我们只需要提取docsic-group ID 即可--> | <!-- 注意! 当前我们只需要提取docsic-group ID 即可--> | ||
第77行: | 第77行: | ||
</docsis-group> | </docsis-group> | ||
+ | </source> | ||
+ | |||
+ | ==== delete ==== | ||
+ | <source lang="shell"> | ||
+ | curl -i -u admin:admin -X "DELETE" http://127.0.0.1:8080/api/config/devices/device/f0bf1cdf-bee1-3525-817c-b593fcb8c8bb/config/ios:cable/load-balance/docsis-group/docsis-group-list/1 | ||
</source> | </source> |
2018年7月5日 (四) 09:24的版本
scope
UI
https://mockflow.com/app/#Wireframe
时序图
https://www.websequencediagrams.com/
Push
title Push LB configuration note left of UI: Push RPD configuration UI->+Rest Service: LB xml Rest Service->+DB: persist DB-->-Rest Service: Rest Service-->-UI: note left of RPD Automation: Pre-configure or Gcp UP RPD Automation->RPD Automation: Generate docsis-group ID note left of RPD Automation: Waiting RPD push RPD Automation->RPD Automation: Get DS/US from RPD RPD Automation->+NSO: Replace XML's docsic-group\n and DS US NSO->+cBR8: push configuration cBR8-->-NSO: NSO-->-RPD Automation: RPD Automation->UI: feed back of configure LB
Delete
title Delete LB configuration note left of UI: Delete RPD configuration UI->+Rest Service: Delete RPD Rest Service->+DB: Delete DB-->-Rest Service: Rest Service-->-UI: Rest Service->+RPD Automation: Unconfigure RPD Automation->RPD Automation: Recover docsis-group ID RPD Automation->+NSO: Unconfigure LB NSO->+cBR8: Unconfigure cBR8-->-NSO: NSO-->-RPD Automation: RPD Automation-->Rest Service: feed back of configure LB
NSO
push
<!-- 注意! 当前我们只需要提取docsic-group ID 即可-->
bash-4.2# curl -i -u admin:admin -H "Accept:application/vnd.yang.data+xml" -s http://127.0.0.1:8080/api/config/devices/device/f0bf1cdf-bee1-3525-817c-b593fcb8c8bb/config/ios:cable/load-balance/docsis-group
HTTP/1.1 200 OK
Server:
Date: Wed, 20 Jun 2018 02:29:21 GMT
Last-Modified: Mon, 18 Jun 2018 19:48:03 GMT
Cache-Control: private, no-cache, must-revalidate, proxy-revalidate
Etag: 1529-459283-108651
Content-Type: application/vnd.yang.data+xml
Transfer-Encoding: chunked
Pragma: no-cache
<docsis-group xmlns="urn:ios" xmlns:y="http://tail-f.com/ns/rest" xmlns:ios="urn:ios" xmlns:ncs="http://tail-f.com/ns/ncs">
<docsis-group-list>
<docsis-group-id>10011</docsis-group-id>
</docsis-group-list>
<docsis-group-list>
<docsis-group-id>10012</docsis-group-id>
</docsis-group-list>
<docsis-group-list>
<docsis-group-id>10013</docsis-group-id>
</docsis-group-list>
</docsis-group>
delete
curl -i -u admin:admin -X "DELETE" http://127.0.0.1:8080/api/config/devices/device/f0bf1cdf-bee1-3525-817c-b593fcb8c8bb/config/ios:cable/load-balance/docsis-group/docsis-group-list/1