CABUORCH-1513
来自qingwei personal wiki
scope
升级NED到6.0.9
# download cisco-ios NED 6.0.9
https://earth.tail-f.com:8443/ncs-pkgs/cisco-ios/4.5.6/
# 解压
sh ncs-4.5.6-cisco-ios-6.0.9.signed.bin
# 将解压好的文件上传到本地仓库
curl --noproxy cisco.com -i -X PUT -u robot-dev-deployer:qqyiwhc7ts6um8sw -v --retry 999 --retry-max-time 0 -T ncs-4.5.6-cisco-ios-6.0.9.tar.gz "http://engci-maven-master.cisco.com/artifactory/robot-dev-thirdparty/com.cisco/cfgsvc/nso-4.5.6/ncs-4.5.6-cisco-ios-6.0.9.tar.gz"
# 打包成docker
http://106.14.10.253:8190/index.php/CABUORCH-1560
验证已经支持video profile
admin@ncs# show running-config devices device f0bf1cdf-bee1-3525-817c-b593fcb8c8bb config ios:cable downstream controller-profile 69
devices device f0bf1cdf-bee1-3525-817c-b593fcb8c8bb
config
ios:cable downstream controller-profile 69
rf-chan 0 1
type DOCSIS
frequency 695000000
rf-output NORMAL
qam-profile 1
docsis-channel-id 1
!
rf-chan 31
type VIDEO ASYNC
frequency 600000000
rf-output NORMAL
qam-profile 1
!
rf-chan 32
type VIDEO SYNC
frequency 400000000
rf-output NORMAL
qam-profile 1
!
rf-chan 33
type VIDEO ASYNC
rf-output NORMAL
qam-profile 1
!
rf-chan 96
type VIDEO ASYNC
rf-output NORMAL
qam-profile 1
!
!
!
!
问题
# 打包错误
Step 2 : ARG http_proxy
devmapper: Error activating devmapper device for 'fcc44886cc3a9cf07dfbf5038f0ed94a8a2fd47dd8e4d6267a2c517c47ddf09b-init': devicemapper: Can't set cookie dm_task_set_cookie failed
Docker build robot-cfgsvc-base:2fdc99b901fe66fdc7b4935e6594147d using Dockerfile failed.
# 执行下面CMD
echo 'y' | sudo dmsetup udevcomplete_all
read from nso
cli
CRDC-NG-E09#sh run | s profile 69
cable downstream controller-profile 69
rf-chan 0 1
type DOCSIS
qam-profile 1
frequency 695000000
rf-output NORMAL
docsis-channel-id 1
rf-chan 31
type VIDEO ASYNC
qam-profile 1
frequency 600000000
rf-output NORMAL
rf-chan 32
type VIDEO SYNC
qam-profile 1
frequency 400000000
rf-output NORMAL
curl
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/downstream/controller-profile/69?deep
HTTP/1.1 200 OK
Server:
Date: Mon, 09 Jul 2018 01:48:54 GMT
Last-Modified: Mon, 09 Jul 2018 00:48:03 GMT
Cache-Control: private, no-cache, must-revalidate, proxy-revalidate
Etag: 1531-100884-563726
Content-Type: application/vnd.yang.data+xml
Transfer-Encoding: chunked
Pragma: no-cache
<controller-profile xmlns="urn:ios" xmlns:y="http://tail-f.com/ns/rest" xmlns:ios="urn:ios" xmlns:ncs="http://tail-f.com/ns/ncs">
<id>69</id>
<rf-chan>
<rf-chan>
<start>0</start>
<end>1</end>
<type>
<value>DOCSIS</value>
</type>
<frequency>695000000</frequency>
<rf-output>NORMAL</rf-output>
<qam-profile>1</qam-profile>
<docsis-channel-id>1</docsis-channel-id>
</rf-chan>
<rf-chan>
<start>31</start>
<type>
<value>VIDEO</value>
<mode>ASYNC</mode>
</type>
<frequency>600000000</frequency>
<rf-output>NORMAL</rf-output>
<qam-profile>1</qam-profile>
</rf-chan>
<rf-chan>
<start>32</start>
<type>
<value>VIDEO</value>
<mode>SYNC</mode>
</type>
<frequency>400000000</frequency>
<rf-output>NORMAL</rf-output>
<qam-profile>1</qam-profile>
</rf-chan>
<rf-chan>
<start>33</start>
<type>
<value>VIDEO</value>
<mode>ASYNC</mode>
</type>
<rf-output>NORMAL</rf-output>
<qam-profile>1</qam-profile>
</rf-chan>
<rf-chan>
<start>96</start>
<type>
<value>VIDEO</value>
<mode>ASYNC</mode>
</type>
<rf-output>NORMAL</rf-output>
<qam-profile>1</qam-profile>
</rf-chan>
</rf-chan>
</controller-profile>