<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Layerscape中的主题 LS1021ATSN Switch: how does Netconf communicate with SJA1105 Tool ? Is there any documentation about it ?</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1021ATSN-Switch-how-does-Netconf-communicate-with-SJA1105-Tool/m-p/743579#M3206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to find out how Netconf Commands are read from the SJA1105 Tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 08:53:09 GMT</pubDate>
    <dc:creator>darianb_</dc:creator>
    <dc:date>2018-04-18T08:53:09Z</dc:date>
    <item>
      <title>LS1021ATSN Switch: how does Netconf communicate with SJA1105 Tool ? Is there any documentation about it ?</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021ATSN-Switch-how-does-Netconf-communicate-with-SJA1105-Tool/m-p/743579#M3206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to find out how Netconf Commands are read from the SJA1105 Tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 08:53:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021ATSN-Switch-how-does-Netconf-communicate-with-SJA1105-Tool/m-p/743579#M3206</guid>
      <dc:creator>darianb_</dc:creator>
      <dc:date>2018-04-18T08:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021ATSN Switch: how does Netconf communicate with SJA1105 Tool ? Is there any documentation about it ?</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021ATSN-Switch-how-does-Netconf-communicate-with-SJA1105-Tool/m-p/743580#M3207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="317396" data-username="darianb." href="https://community.nxp.com/people/darianb."&gt;Darian Biastoch&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;XML files generated with sja1105-tool and apply them remotely using NETCONF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[ubuntu] $ netopeer-cli&lt;/EM&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; connect --port 830 --login root 192.168.15.11 # board1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; # press Enter for no password&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# You may need to run this, in case you are using the candidate&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# datastore (here we are not) and it becomes locked.&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# See 5.5.5.&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# netconf&amp;gt; discard-changes&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; edit-config --config board1-{policing|scheduling}.xml running&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; get-config running&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; copy-config --source running startup&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; disconnect&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; connect --port 830 --login root 192.168.15.12 # board2&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netconf&amp;gt; # press Enter for no password&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# You may need to run this, in case you are using the candidate&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# datastore (here we are not) and it becomes locked.&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# See 5.5.5.&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# netconf&amp;gt; discard-changes&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;board1-policing.sh:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#!/bin/sh&lt;BR /&gt; sja1105-tool config default ls1021atsn&lt;BR /&gt; sja1105-tool config modify mac-config[4] vlanprio 7&lt;BR /&gt; sja1105-tool config modify vlan-lookup-table[0] tag_port 0b00010&lt;BR /&gt; sja1105-tool config modify l2-policing-table[$((4*8+7))] rate 12800&lt;BR /&gt; sja1105-tool config modify general-parameters-table vllupformat 0&lt;BR /&gt; sja1105-tool config modify vl-lookup-table entry-count 1&lt;BR /&gt; # VL 0 == flow F1 (source board1, dest ubuntu)&lt;BR /&gt; # Save it from being rate-constrained by the L2 policer&lt;BR /&gt; sja1105-tool config modify vl-lookup-table[0] iscritical 1&lt;BR /&gt; sja1105-tool config modify vl-lookup-table[0] macaddr 68:05:CA:39:CD:CA&lt;BR /&gt; sja1105-tool config modify vl-lookup-table[0] vlanid 0&lt;BR /&gt; sja1105-tool config modify vl-lookup-table[0] vlanprio 7&lt;BR /&gt; sja1105-tool config modify vl-lookup-table[0] port 4&lt;BR /&gt; sja1105-tool config modify vl-lookup-table[0] destports 0 # iscritical == 1, so unused&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sja1105-tool config modify vl-forwarding-table entry-count 1&lt;BR /&gt; # VL 0 (flow F1) - set egress priority queue to 5&lt;BR /&gt; sja1105-tool config modify vl-forwarding-table[0] type 0 # rate-constrained&lt;BR /&gt; sja1105-tool config modify vl-forwarding-table[0] priority 7 # does this override l2-forwarding-table.vlan_pmap?&lt;BR /&gt; sja1105-tool config modify vl-forwarding-table[0] partition 0 # see partspc below&lt;BR /&gt; sja1105-tool config modify vl-forwarding-table[0] destports 0b00010 # forward to port 1&lt;BR /&gt; sja1105-tool config modify vl-policing-table entry-count 1&lt;BR /&gt; # VL 1 Policer entry must be filled. Define as rate-constrained, but disable BAG check.&lt;BR /&gt; sja1105-tool config modify vl-policing-table[0] type 0 # How can this disagree with vl-forwarding-table[0].type?&lt;BR /&gt; sja1105-tool config modify vl-policing-table[0] maxlen 1518&lt;BR /&gt; sja1105-tool config modify vl-policing-table[0] sharindx 0&lt;BR /&gt; sja1105-tool config modify vl-policing-table[0] bag 0&lt;BR /&gt; sja1105-tool config modify vl-policing-table[0] jitter 0&lt;BR /&gt; sja1105-tool config modify vl-forwarding-parameters-table entry-count 1&lt;BR /&gt; sja1105-tool config modify vl-forwarding-parameters-table partspc "[200 0 0 0 0 0 0 0]"&lt;BR /&gt; sja1105-tool config modify vl-forwarding-parameters-table debugen 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sja1105-tool config save board1-policing.xml&lt;BR /&gt; sja1105-tool config upload&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;board1-scheduling.sh:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#!/bin/sh&lt;/EM&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config default ls1021atsn&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# Flows F1 and F4 - source port 4, vlanprio 5&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# F1 will get special treatment as VL 0&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify mac-config[4] vlanprio 5&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vlan-lookup-table[0] tag_port 0b00010&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sja1105-tool config modify general-parameters-table vllupformat 0&lt;/EM&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-lookup-table entry-count 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# VL 0 == flow F1 (source board1, dest ubuntu)&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# source port 2, vlanprio 5&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-lookup-table[0] iscritical 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-lookup-table[0] macaddr 68:05:ca:39:cd:ca&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-lookup-table[0] vlanid 0&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-lookup-table[0] vlanprio 5&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-lookup-table[0] port 4&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# VL 0 (flow F1)&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-forwarding-table entry-count 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-forwarding-table[0] type 0 # rate-constrained&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-forwarding-table[0] priority 7&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-forwarding-table[0] partition 0 # see partspc below&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-forwarding-table[0] destports 0b00010 # forward to port 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-policing-table entry-count 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-policing-table[0] type 0&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-policing-table[0] maxlen 2043&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-policing-table[0] sharindx 0&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-policing-table[0] bag 0&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-policing-table[0] jitter 0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sja1105-tool config modify vl-forwarding-parameters-table entry-count 1&lt;/EM&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-forwarding-parameters-table partspc "[300 0 0 0 0 0 0 0]"&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify vl-forwarding-parameters-table debugen 0&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify l2-forwarding-parameters-table part_spc "[629 0 0 0 0 0 0 0]"&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table entry-count 3&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# Egress port is 1 (towards board2)&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[0] destports 0b00010&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[1] destports 0b00010&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[2] destports 0b00010&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[0] resmedia_en 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[1] resmedia_en 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[2] resmedia_en 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# TAS: Flow F1 (prio 7) gets 5ms = 5000000 / 200 = 25000&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# Flow F4 (prio 5) gets 2ms = 2000000 / 200 = 10000&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;# Extra empty 3ms = 3000000 / 200 = 15000&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[0] resmedia 0b01111111&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[1] resmedia 0b11011111&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[2] resmedia 0b11111111&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[0] delta 25000&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[1] delta 10000&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-table[2] delta 15000&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# This is mostly boilerplate, but needs to be done&lt;/EM&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-entry-points-table entry-count 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-parameters-table entry-count 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-parameters-table[0] subscheind "[2 2 2 2 2 2 2 2]"&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-entry-points-parameters-table entry-count 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config modify schedule-entry-points-parameters-table[0] clksrc 1&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config save board1-scheduling.xml&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;sja1105-tool config upload&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021ATSN-Switch-how-does-Netconf-communicate-with-SJA1105-Tool/m-p/743580#M3207</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2018-04-26T08:39:46Z</dc:date>
    </item>
  </channel>
</rss>

