“CABUORCH-1513”的版本间的差异

来自qingwei personal wiki
跳转至: 导航搜索
scope
伪代码
 
(未显示同一用户的8个中间版本)
第18行: 第18行:
 
# 打包成docker
 
# 打包成docker
 
http://106.14.10.253:8190/index.php/CABUORCH-1560
 
http://106.14.10.253:8190/index.php/CABUORCH-1560
 +
</source>
 +
 +
=== 验证已经支持video profile ===
 +
<source lang="shell">
 +
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
 +
  !
 +
  !
 +
!
 +
!
 +
 +
</source>
 +
 +
=== 问题 ===
 +
<source lang="shell">
 +
# 打包错误
 +
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
 +
</source>
 +
== read downstream controller-profile from nso ==
 +
=== cli ===
 +
<source lang="shell">
 +
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
 +
</source>
 +
 +
=== curl ===
 +
<source lang="shell">
 +
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:57:52 GMT
 +
Last-Modified: Mon, 09 Jul 2018 00:48:03 GMT
 +
Cache-Control: private, no-cache, must-revalidate, proxy-revalidate
 +
Etag: 1531-101434-6343
 +
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>
 +
</controller-profile>
 +
 +
</source>
 +
== 伪代码 ==
 +
<source lang="java">
 +
// before configure, CoreConfigReader readResourceDataFromDevice
 +
readDownstreamControllerProfile();
 +
 
</source>
 
</source>

2018年7月12日 (四) 02:31的最新版本

Tips

Resource Management: Delete VSG auto-generated by cBR8


jira 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 downstream controller-profile 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:57:52 GMT
Last-Modified: Mon, 09 Jul 2018 00:48:03 GMT
Cache-Control: private, no-cache, must-revalidate, proxy-revalidate
Etag: 1531-101434-6343
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>
</controller-profile>

伪代码

// before configure, CoreConfigReader readResourceDataFromDevice
readDownstreamControllerProfile();