nxp-archive / openil_tsntool

Other
23 stars 11 forks source link

Web UI on LS1021A-TSN board #6

Open crow1814 opened 3 years ago

crow1814 commented 3 years ago

Hi, I'm trying to configure LS1021A-TSN board through web page following the Web UI demo in the OpenIL guide (1.9) (https://www.nxp.com/docs/en/user-guide/OPEN-LINUX-IND-UM-1.9.pdf). I have installed tsntool on ubuntu18.04 and can open localhost:8180, but I cannot find the device (LS1021A-TSN board), the area under the device is blank. The reason is that LS1021A-TSN board does not currently support tsntool? Will LS1021A adapts to tsntool in the near future? How can I configure LS1021A-TSN boardthrough the web page? I was wondering if you could solve the above problems. Thank you for your time.

liupoer commented 3 years ago

ls1021atsn do not need tsntool. Ls1021atsn only need to support avahi. and set a name :

avahi-set-host-name OpenIL

Then browser should see the device in the list. ls1021atsn support tc command controled by sysrepo which could setting up the Qbv in the sja1105

crow1814 commented 3 years ago

Thank you very much for your help! I have seen ls1021atsn on the web page. However, I got the wrong message: "Feedback ERROR!" when I add tsn setting and click Web UI 'Get Config'. I have set up the Qbv of ls1021atsn through the tc command. I want to set up ls1021atsn through the web page, Is there anything else I need to do?

whbo158 commented 3 years ago

firstly, you can run tc command on serial port, like the following, to check tc command, tc qdisc replace dev sw0p1 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 0 sched-entry S 02 300000 flags 0x2

if tc command is working, you can send config file from sysrepo-tsn client, and see the feedback: edit-config --target running --config=qbv-swp5-tc.xml

qbv-swp5-tc.xml is like this:

<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:sched="urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:preempt="urn:ieee:std:802.1Q:yang:ieee802-dot1q-preemption">

swp5 true ianaift:ethernetCsmacd 0 10 true 0 2900 5000 0 1000000000 0 true 2 0 sched:set-gate-states 128 100000 1 sched:set-gate-states 127 400000

whbo158 commented 3 years ago

qbv-swp5-tc.xml link on github is: https://github.com/openil/sysrepo-tsn/blob/master/Instances/qbv-swp5-tc.xml

crow1814 commented 3 years ago

Thank you very much for your help! I have sent config file via netopeer2-cli through "edit-config --target running --config=qbv.xml", and the response is 'ok'. But how should I set up Qbv in ls1021atsn through the web UI, and how to solve the error message ‘Feedback ERROR!’ on the web page.

crow1814 commented 3 years ago

After some trial and error, I found out that I can get some information when I canceled the login password of openil. However, related operations are still invalid, such as adding port (swp3) Qbv setting and modifying existing configurations.

liupoer commented 3 years ago

Hi Crow1814, You need to provide more detail such as cnc.py log and end station log. We can't know what happen to the interaction. You can re-run the netopeer2-server by command with debug message: netopeer2-server -d

Br, Po

crow1814 commented 3 years ago

Hi liupoer, I tracked the configuration process. When I add a qbv setting. From confirmset(), to ajax'/qbvset', to loadnetconfqbv(tojson), to loadNetconf(qbvxmlstr,configdata[‘device’]), the value of'status' is 'false' when the session.editConfig is executed. The log shows "editconfig 3 feedback:False". I guess this is the reason why the configuration does not take effect. I am a novice in this area, and I may not express what happens clearly, so I took the liberty to send you an e-mail, recording my operation process in detail. Thank you very very much for your help!

liupoer commented 3 years ago

editconfig command load libnetconf.so, it calling a RPC function. feedback error only shows device feed back failure error. First make sure the libnetconfig.so and netconf.cpython-xxx-x86_64-linux-gnu.so were right installed. Most important you still need to provide netopee2-server message at end station log to check what happened on device.

crow1814 commented 3 years ago

I have saved the xml generated by web ui, and run on netopeer-cli by edit-config command. On ubuntu180.4, the log is:

edit-config --target running --config=qbv.xml ERROR type: application tag: operation-failed severity: error path: /ietf-interfaces:interfaces/interface[name='swp2'] message: The node is not enabled in running datastore

crow1814 commented 3 years ago

I have reboot the ls1021atsn and run on edit-config --target running --config=qbv.xml on ubuntu18.04. The qbv.xml file is:

<?xml version='1.0' encoding='utf8'?>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type" xmlns:preempt="urn:ieee:std:802.1Q:yang:ieee802-dot1q-preemption" xmlns:sched="urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched">
    <interface>
        <name>swp2</name>
        <enabled>true</enabled>
        <type>ianaift:ethernetCsmacd</type>
        <sched:gate-parameters>
            <sched:gate-enabled>true</sched:gate-enabled>
            <sched:config-change>true</sched:config-change>
            <sched:admin-control-list-length>3</sched:admin-control-list-length>
            <sched:admin-control-list>
                <sched:index>0</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>5</sched:gate-states-value>
                    <sched:time-interval-value>5000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
            <sched:admin-control-list>
                <sched:index>1</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>7</sched:gate-states-value>
                    <sched:time-interval-value>6000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
            <sched:admin-control-list>
                <sched:index>2</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>7</sched:gate-states-value>
                    <sched:time-interval-value>6000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
            <sched:admin-base-time>
                <sched:seconds>60</sched:seconds>
                <sched:fractional-seconds>000000000</sched:fractional-seconds>
            </sched:admin-base-time>
        </sched:gate-parameters>
    </interface>
</interfaces>

The error message is:

edit-config --target running --config=qbv.xml
ERROR
type: application
tag: operation-failed
severity: error
message: Invalid argument

On ls1021atsn run 'netopeer2-server -d -v2', the log is:

[INF]: Connected to daemon Sysrepo Engine at socket=/var/run/sysrepod.sock
[INF]: Netopeer2 connected to sysrepod.
[INF]: Plugin "/usr/lib/libyang/extensions/nacm.so" successfully loaded.
[INF]: Plugin "/usr/lib/libyang/extensions/metadata.so" successfully loaded.
[INF]: Plugin "/usr/lib/libyang/extensions/yangdata.so" successfully loaded.
[INF]: Plugin "/usr/lib/libyang/user_types/user_yang_types.so" successfully loaded.
[INF]: Plugin "/usr/lib/libyang/user_types/user_inet_types.so" successfully loaded.
[INF]: Reading module "ietf-yang-metadata".
[INF]: Module "ietf-yang-metadata@2016-08-05" successfully parsed as implemented.
[INF]: Reading module "yang".
[INF]: Resolving "yang" unresolved schema nodes and their constraints...
[INF]: All "yang" schema nodes and constraints resolved.
[INF]: Module "yang@2017-02-20" successfully parsed as implemented.
[INF]: Reading module "ietf-inet-types".
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving "ietf-inet-types" unresolved schema nodes and their constraints...
[INF]: All "ietf-inet-types" schema nodes and constraints resolved.
[INF]: Module "ietf-inet-types@2013-07-15" successfully parsed as implemented.
[INF]: Reading module "ietf-yang-types".
[INF]: Module "ietf-yang-types@2013-07-15" successfully parsed as implemented.
[INF]: Reading module "ietf-datastores".
[INF]: Module "ietf-datastores@2017-08-17" successfully parsed as implemented.
[INF]: Reading module "ietf-yang-library".
[INF]: Searching for "ietf-yang-types" in /root.
[INF]: Searching for "ietf-inet-types" in /root.
[INF]: Searching for "ietf-datastores" in /root.
[INF]: Module "ietf-yang-library@2019-01-04" successfully parsed as implemented.
[INF]: Loading schema "ietf-netconf-notifications@2012-02-06" from sysrepo.
[INF]: Reading module "ietf-netconf-notifications".
[INF]: Reading module "ietf-netconf".
[INF]: Reading module "ietf-netconf-acm".
[INF]: Module "ietf-netconf-acm@2018-02-14" successfully parsed as imported.
[INF]: Module "ietf-netconf@2011-06-01" successfully parsed as imported.
[INF]: Resolving "ietf-netconf-notifications" unresolved schema nodes and their constraints...
[INF]: All "ietf-netconf-notifications" schema nodes and constraints resolved.
[INF]: Module "ietf-netconf-notifications@2012-02-06" successfully parsed as implemented.
[INF]: Loading schema "ietf-netconf@2011-06-01" from sysrepo.
[INF]: Module ietf-netconf@2011-06-01 already present in context.
[INF]: Module "ietf-netconf@2011-06-01" now implemented.
[INF]: Loading schema "ietf-netconf-acm@2018-02-14" from sysrepo.
[INF]: Module ietf-netconf-acm@2018-02-14 already present in context.
[INF]: Loading schema "nc-notifications@2008-07-14" from sysrepo.
[INF]: Reading module "nc-notifications".
[INF]: Reading module "notifications".
[INF]: Module "notifications@2008-07-14" successfully parsed as imported.
[INF]: Module "nc-notifications@2008-07-14" successfully parsed as implemented.
[INF]: Loading schema "notifications@2008-07-14" from sysrepo.
[INF]: Module notifications@2008-07-14 already present in context.
[INF]: Module "notifications@2008-07-14" now implemented.
[INF]: Loading schema "ietf-x509-cert-to-name@2014-12-10" from sysrepo.
[INF]: Reading module "ietf-x509-cert-to-name".
[INF]: Module "ietf-x509-cert-to-name@2014-12-10" successfully parsed as implemented.
[INF]: Loading schema "ietf-keystore@2016-10-31" from sysrepo.
[INF]: Reading module "ietf-keystore".
[INF]: Module "ietf-keystore@2016-10-31" successfully parsed as implemented.
[INF]: Loading schema "ietf-netconf-with-defaults@2011-06-01" from sysrepo.
[INF]: Reading module "ietf-netconf-with-defaults".
[INF]: Module "ietf-netconf-with-defaults@2011-06-01" successfully parsed as implemented.
[INF]: Loading schema "ietf-netconf-monitoring@2010-10-04" from sysrepo.
[INF]: Reading module "ietf-netconf-monitoring".
[INF]: Module "ietf-netconf-monitoring@2010-10-04" successfully parsed as implemented.
[INF]: Loading schema "ietf-yang-library@2018-01-17" from sysrepo.
[INF]: Reading module "ietf-yang-library".
[ERR]: Module "ietf-yang-library@2018-01-17" in another revision "2019-01-04" already implemented.
[ERR]: Module "ietf-yang-library" parsing failed.
[WRN]: Getting ietf-yang-library@2018-01-17 schema from sysrepo failed, data from this module won't be available.
[INF]: Loading schema "ietf-datastores@2017-08-17" from sysrepo.
[INF]: Module ietf-datastores@2017-08-17 already present in context.
[INF]: Loading schema "ietf-netconf-server@2016-11-02" from sysrepo.
[INF]: Reading module "ietf-netconf-server".
[INF]: Reading module "ietf-x509-cert-to-name".
[INF]: Module "ietf-x509-cert-to-name@2014-12-10" already in context.
[INF]: Module "ietf-x509-cert-to-name@2014-12-10" successfully parsed as implemented.
[INF]: Reading module "ietf-ssh-server".
[INF]: Reading module "ietf-keystore".
[INF]: Module "ietf-keystore@2016-10-31" already in context.
[INF]: Module "ietf-keystore@2016-10-31" successfully parsed as implemented.
[INF]: Module "ietf-ssh-server@2016-11-02" successfully parsed as imported.
[INF]: Reading module "ietf-tls-server".
[INF]: Module "ietf-tls-server@2016-11-02" successfully parsed as imported.
[INF]: Resolving "ietf-netconf-server" unresolved schema nodes and their constraints...
[INF]: All "ietf-netconf-server" schema nodes and constraints resolved.
[INF]: Module "ietf-netconf-server@2016-11-02" successfully parsed as implemented.
[INF]: Loading schema "ietf-ssh-server@2016-11-02" from sysrepo.
[INF]: Module ietf-ssh-server@2016-11-02 already present in context.
[INF]: Loading schema "ietf-tls-server@2016-11-02" from sysrepo.
[INF]: Module ietf-tls-server@2016-11-02 already present in context.
[INF]: Loading schema "ietf-system@2014-08-06" from sysrepo.
[INF]: Reading module "ietf-system".
[INF]: Reading module "iana-crypt-hash".
[INF]: Module "iana-crypt-hash@2014-08-06" successfully parsed as imported.
[INF]: Resolving "ietf-system" unresolved schema nodes and their constraints...
[INF]: All "ietf-system" schema nodes and constraints resolved.
[INF]: Module "ietf-system@2014-08-06" successfully parsed as implemented.
[INF]: Loading schema "iana-crypt-hash@2014-08-06" from sysrepo.
[INF]: Module iana-crypt-hash@2014-08-06 already present in context.
[INF]: Loading schema "ietf-interfaces@2014-05-08" from sysrepo.
[INF]: Reading module "ietf-interfaces".
[INF]: Module "ietf-interfaces@2014-05-08" successfully parsed as implemented.
[INF]: Loading schema "ietf-yang-types@2013-07-15" from sysrepo.
[INF]: Module ietf-yang-types@2013-07-15 already present in context.
[INF]: Module "ietf-yang-types@2013-07-15" now implemented.
[INF]: Loading schema "ieee802-dot1q-types@2018-03-07" from sysrepo.
[INF]: Reading module "ieee802-dot1q-types".
[INF]: Module "ieee802-dot1q-types@2018-03-07" successfully parsed as implemented.
[INF]: Loading schema "ieee802-dot1q-preemption@2018-09-10" from sysrepo.
[INF]: Reading module "ieee802-dot1q-preemption".
[INF]: Reading module "ieee802-dot1q-types".
[INF]: Module "ieee802-dot1q-types@2018-03-07" already in context.
[INF]: Module "ieee802-dot1q-types@2018-03-07" successfully parsed as implemented.
[INF]: Reading module "ietf-interfaces".
[INF]: Module "ietf-interfaces@2014-05-08" already in context.
[INF]: Module "ietf-interfaces@2014-05-08" successfully parsed as implemented.
[INF]: Module "ieee802-dot1q-preemption@2018-09-10" successfully parsed as implemented.
[INF]: Loading schema "ieee802-dot1q-sched@2018-09-10" from sysrepo.
[INF]: Reading module "ieee802-dot1q-sched".
[INF]: Reading module "ieee802-dot1q-preemption".
[INF]: Module "ieee802-dot1q-preemption@2018-09-10" already in context.
[INF]: Module "ieee802-dot1q-preemption@2018-09-10" successfully parsed as implemented.
[INF]: Resolving "ieee802-dot1q-sched" unresolved schema nodes and their constraints...
[INF]: All "ieee802-dot1q-sched" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-sched@2018-09-10" successfully parsed as implemented.
[INF]: Loading schema "iana-if-type@2017-01-19" from sysrepo.
[INF]: Reading module "iana-if-type".
[INF]: Module "iana-if-type@2017-01-19" successfully parsed as implemented.
[INF]: Loading schema "ieee802-dot1q-bridge@2018-03-07" from sysrepo.
[INF]: Reading module "ieee802-dot1q-bridge".
[INF]: Reading module "ieee802-types".
[INF]: Module "ieee802-types@2018-03-07" successfully parsed as imported.
[INF]: Reading module "iana-if-type".
[INF]: Module "iana-if-type@2017-01-19" already in context.
[INF]: Module "iana-if-type@2017-01-19" successfully parsed as implemented.
[INF]: Resolving "ieee802-dot1q-bridge" unresolved schema nodes and their constraints...
[INF]: All "ieee802-dot1q-bridge" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-bridge@2018-03-07" successfully parsed as implemented.
[INF]: Loading schema "ieee802-types@2018-03-07" from sysrepo.
[INF]: Module ieee802-types@2018-03-07 already present in context.
[INF]: Module "ieee802-types@2018-03-07" now implemented.
[INF]: Loading schema "ietf-inet-types@2013-07-15" from sysrepo.
[INF]: Module ietf-inet-types@2013-07-15 already present in context.
[INF]: Module "ietf-inet-types@2013-07-15" now implemented.
[INF]: Loading schema "ieee802-dot1q-stream-filters-gates@2017-12-20" from sysrepo.
[INF]: Reading module "ieee802-dot1q-stream-filters-gates".
[INF]: Reading module "ieee802-dot1q-bridge".
[INF]: Module "ieee802-dot1q-bridge@2018-03-07" already in context.
[INF]: Module "ieee802-dot1q-bridge@2018-03-07" successfully parsed as implemented.
[INF]: Resolving "ieee802-dot1q-stream-filters-gates" unresolved schema nodes and their constraints...
[INF]: All "ieee802-dot1q-stream-filters-gates" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-stream-filters-gates@2017-12-20" successfully parsed as implemented.
[INF]: Loading schema "ieee802-dot1q-psfp@2018-09-10" from sysrepo.
[INF]: Reading module "ieee802-dot1q-psfp".
[INF]: Reading module "ieee802-dot1q-stream-filters-gates".
[INF]: Module "ieee802-dot1q-stream-filters-gates@2017-12-20" already in context.
[INF]: Module "ieee802-dot1q-stream-filters-gates@2017-12-20" successfully parsed as implemented.
[INF]: Resolving "ieee802-dot1q-psfp" unresolved schema nodes and their constraints...
[INF]: All "ieee802-dot1q-psfp" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-psfp@2018-09-10" successfully parsed as implemented.
[INF]: Loading schema "ieee802-dot1q-cb-stream-identification@2019-05-20" from sysrepo.
[INF]: Reading module "ieee802-dot1q-cb-stream-identification".
[INF]: Resolving "ieee802-dot1q-cb-stream-identification" unresolved schema nodes and their constraints...
[INF]: All "ieee802-dot1q-cb-stream-identification" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-cb-stream-identification@2019-05-20" successfully parsed as implemented.
[INF]: Loading schema "ieee802-dot1q-qci-augment@2019-05-20" from sysrepo.
[INF]: Reading module "ieee802-dot1q-qci-augment".
[INF]: Reading module "ieee802-dot1q-psfp".
[INF]: Module "ieee802-dot1q-psfp@2018-09-10" already in context.
[INF]: Module "ieee802-dot1q-psfp@2018-09-10" successfully parsed as implemented.
[INF]: Module "ieee802-dot1q-qci-augment@2019-05-20" successfully parsed as implemented.
[INF]: Loading schema "ietf-ip@2014-06-16" from sysrepo.
[INF]: Reading module "ietf-ip".
[INF]: Module "ietf-ip@2014-06-16" successfully parsed as implemented.
[INF]: Loading schema "nxp-bridge-vlan-tc-flower@2020-04-02" from sysrepo.
[INF]: Reading module "nxp-bridge-vlan-tc-flower".
[INF]: Module "nxp-bridge-vlan-tc-flower@2020-04-02" successfully parsed as implemented.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-interfaces']/name" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-interfaces']/ssh" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-interfaces']/ssh/address" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-interfaces']/ssh/port" created.
[ERR]: Could not bind "0.0.0.0" port 830 (Address already in use).
[ERR]: Server init failed.
[INF]: Client Subscription Manager successfully destroyed.

In addition, I run the following xml via edit-config --target running --config=qbv2.xml under the same configuration. The qbv2.xml is

<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
        xmlns:sched="urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched"
        xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
        xmlns:preempt="urn:ieee:std:802.1Q:yang:ieee802-dot1q-preemption">
    <interface>
        <name>swp2</name>
        <enabled>true</enabled>
        <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:ethernetCsmacd</type>
        <sched:max-sdu-table>
            <sched:traffic-class>0</sched:traffic-class>
            <sched:queue-max-sdu>1024</sched:queue-max-sdu>
        </sched:max-sdu-table>
        <sched:gate-parameters>
            <sched:gate-enabled>true</sched:gate-enabled>
            <sched:admin-gate-states>127</sched:admin-gate-states>
            <sched:config-change>true</sched:config-change>
            <sched:admin-control-list-length>3</sched:admin-control-list-length>
            <sched:admin-control-list>
                <sched:index>0</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>5</sched:gate-states-value>
                    <sched:time-interval-value>5000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
            <sched:admin-control-list>
                <sched:index>1</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>7</sched:gate-states-value>
                    <sched:time-interval-value>6000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
            <sched:admin-control-list>
                <sched:index>2</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>7</sched:gate-states-value>
                    <sched:time-interval-value>6000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
        </sched:gate-parameters>
    </interface>
</interfaces>

> connect --login root --host 192.168.1.1
Interactive SSH Authentication
Type your password:
Password:
> edit-config --target running --config=qbv2.xml
OK

Sorry for my frequent comments. Thank you very much for your time!

liupoer commented 3 years ago

"[ERR]: Could not bind "0.0.0.0" port 830 (Address already in use). [ERR]: Server init failed. [INF]: Client Subscription Manager successfully destroyed."

Are you still keeping the default netopeer2-server as background? Can you kill the default one before running the new debug process?

whbo158 commented 3 years ago

Which version of openil are you using?

crow1814 commented 3 years ago

I have followed your instruction, kill the default one and running the new debug process. I use the openil1.9 version. The log is

[INF]: Connected to daemon Sysrepo Engine at socket=/var/run/sysrepod.sock
[INF]: Netopeer2 connected to sysrepod.
[INF]: Plugin "/usr/lib/libyang/extensions/nacm.so" successfully loaded.
[INF]: Plugin "/usr/lib/libyang/extensions/metadata.so" successfully loaded.
[INF]: Plugin "/usr/lib/libyang/extensions/yangdata.so" successfully loaded.
[INF]: Plugin "/usr/lib/libyang/user_types/user_yang_types.so" successfully load                           ed.
[INF]: Plugin "/usr/lib/libyang/user_types/user_inet_types.so" successfully load                           ed.
[INF]: Reading module "ietf-yang-metadata".
[INF]: Module "ietf-yang-metadata@2016-08-05" successfully parsed as implemented                           .
[INF]: Reading module "yang".
[INF]: Resolving "yang" unresolved schema nodes and their constraints...
[INF]: All "yang" schema nodes and constraints resolved.
[INF]: Module "yang@2017-02-20" successfully parsed as implemented.
[INF]: Reading module "ietf-inet-types".
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving derived type "union" failed, it will be attempted later.
[INF]: Resolving "ietf-inet-types" unresolved schema nodes and their constraints                           ...
[INF]: All "ietf-inet-types" schema nodes and constraints resolved.
[INF]: Module "ietf-inet-types@2013-07-15" successfully parsed as implemented.
[INF]: Reading module "ietf-yang-types".
[INF]: Module "ietf-yang-types@2013-07-15" successfully parsed as implemented.
[INF]: Reading module "ietf-datastores".
[INF]: Module "ietf-datastores@2017-08-17" successfully parsed as implemented.
[INF]: Reading module "ietf-yang-library".
[INF]: Searching for "ietf-yang-types" in /root.
[INF]: Searching for "ietf-inet-types" in /root.
[INF]: Searching for "ietf-datastores" in /root.
[INF]: Module "ietf-yang-library@2019-01-04" successfully parsed as implemented.
[INF]: Loading schema "ietf-netconf-notifications@2012-02-06" from sysrepo.
[INF]: Reading module "ietf-netconf-notifications".
[INF]: Reading module "ietf-netconf".
[INF]: Reading module "ietf-netconf-acm".
[INF]: Module "ietf-netconf-acm@2018-02-14" successfully parsed as imported.
[INF]: Module "ietf-netconf@2011-06-01" successfully parsed as imported.
[INF]: Resolving "ietf-netconf-notifications" unresolved schema nodes and their                            constraints...
[INF]: All "ietf-netconf-notifications" schema nodes and constraints resolved.
[INF]: Module "ietf-netconf-notifications@2012-02-06" successfully parsed as imp                           lemented.
[INF]: Loading schema "ietf-netconf@2011-06-01" from sysrepo.
[INF]: Module ietf-netconf@2011-06-01 already present in context.
[INF]: Module "ietf-netconf@2011-06-01" now implemented.
[INF]: Loading schema "ietf-netconf-acm@2018-02-14" from sysrepo.
[INF]: Module ietf-netconf-acm@2018-02-14 already present in context.
[INF]: Loading schema "nc-notifications@2008-07-14" from sysrepo.
[INF]: Reading module "nc-notifications".
[INF]: Reading module "notifications".
[INF]: Module "notifications@2008-07-14" successfully parsed as imported.
[INF]: Module "nc-notifications@2008-07-14" successfully parsed as implemented.
[INF]: Loading schema "notifications@2008-07-14" from sysrepo.
[INF]: Module notifications@2008-07-14 already present in context.
[INF]: Module "notifications@2008-07-14" now implemented.
[INF]: Loading schema "ietf-x509-cert-to-name@2014-12-10" from sysrepo.
[INF]: Reading module "ietf-x509-cert-to-name".
[INF]: Module "ietf-x509-cert-to-name@2014-12-10" successfully parsed as impleme                           nted.
[INF]: Loading schema "ietf-keystore@2016-10-31" from sysrepo.
[INF]: Reading module "ietf-keystore".
[INF]: Module "ietf-keystore@2016-10-31" successfully parsed as implemented.
[INF]: Loading schema "ietf-netconf-with-defaults@2011-06-01" from sysrepo.
[INF]: Reading module "ietf-netconf-with-defaults".
[INF]: Module "ietf-netconf-with-defaults@2011-06-01" successfully parsed as imp                           lemented.
[INF]: Loading schema "ietf-netconf-monitoring@2010-10-04" from sysrepo.
[INF]: Reading module "ietf-netconf-monitoring".
[INF]: Module "ietf-netconf-monitoring@2010-10-04" successfully parsed as implem                           ented.
[INF]: Loading schema "ietf-yang-library@2018-01-17" from sysrepo.
[INF]: Reading module "ietf-yang-library".
[ERR]: Module "ietf-yang-library@2018-01-17" in another revision "2019-01-04" al                           ready implemented.
[ERR]: Module "ietf-yang-library" parsing failed.
[WRN]: Getting ietf-yang-library@2018-01-17 schema from sysrepo failed, data fro                           m this module won't be available.
[INF]: Loading schema "ietf-datastores@2017-08-17" from sysrepo.
[INF]: Module ietf-datastores@2017-08-17 already present in context.
[INF]: Loading schema "ietf-netconf-server@2016-11-02" from sysrepo.
[INF]: Reading module "ietf-netconf-server".
[INF]: Reading module "ietf-x509-cert-to-name".
[INF]: Module "ietf-x509-cert-to-name@2014-12-10" already in context.
[INF]: Module "ietf-x509-cert-to-name@2014-12-10" successfully parsed as impleme                           nted.
[INF]: Reading module "ietf-ssh-server".
[INF]: Reading module "ietf-keystore".
[INF]: Module "ietf-keystore@2016-10-31" already in context.
[INF]: Module "ietf-keystore@2016-10-31" successfully parsed as implemented.
[INF]: Module "ietf-ssh-server@2016-11-02" successfully parsed as imported.
[INF]: Reading module "ietf-tls-server".
[INF]: Module "ietf-tls-server@2016-11-02" successfully parsed as imported.
[INF]: Resolving "ietf-netconf-server" unresolved schema nodes and their constra                           ints...
[INF]: All "ietf-netconf-server" schema nodes and constraints resolved.
[INF]: Module "ietf-netconf-server@2016-11-02" successfully parsed as implemente                           d.
[INF]: Loading schema "ietf-ssh-server@2016-11-02" from sysrepo.
[INF]: Module ietf-ssh-server@2016-11-02 already present in context.
[INF]: Loading schema "ietf-tls-server@2016-11-02" from sysrepo.
[INF]: Module ietf-tls-server@2016-11-02 already present in context.
[INF]: Loading schema "ietf-system@2014-08-06" from sysrepo.
[INF]: Reading module "ietf-system".
[INF]: Reading module "iana-crypt-hash".
[INF]: Module "iana-crypt-hash@2014-08-06" successfully parsed as imported.
[INF]: Resolving "ietf-system" unresolved schema nodes and their constraints...
[INF]: All "ietf-system" schema nodes and constraints resolved.
[INF]: Module "ietf-system@2014-08-06" successfully parsed as implemented.
[INF]: Loading schema "iana-crypt-hash@2014-08-06" from sysrepo.
[INF]: Module iana-crypt-hash@2014-08-06 already present in context.
[INF]: Loading schema "ietf-interfaces@2014-05-08" from sysrepo.
[INF]: Reading module "ietf-interfaces".
[INF]: Module "ietf-interfaces@2014-05-08" successfully parsed as implemented.
[INF]: Loading schema "ietf-yang-types@2013-07-15" from sysrepo.
[INF]: Module ietf-yang-types@2013-07-15 already present in context.
[INF]: Module "ietf-yang-types@2013-07-15" now implemented.
[INF]: Loading schema "ieee802-dot1q-types@2018-03-07" from sysrepo.
[INF]: Reading module "ieee802-dot1q-types".
[INF]: Module "ieee802-dot1q-types@2018-03-07" successfully parsed as implemente                           d.
[INF]: Loading schema "ieee802-dot1q-preemption@2018-09-10" from sysrepo.
[INF]: Reading module "ieee802-dot1q-preemption".
[INF]: Reading module "ieee802-dot1q-types".
[INF]: Module "ieee802-dot1q-types@2018-03-07" already in context.
[INF]: Module "ieee802-dot1q-types@2018-03-07" successfully parsed as implemente                           d.
[INF]: Reading module "ietf-interfaces".
[INF]: Module "ietf-interfaces@2014-05-08" already in context.
[INF]: Module "ietf-interfaces@2014-05-08" successfully parsed as implemented.
[INF]: Module "ieee802-dot1q-preemption@2018-09-10" successfully parsed as imple                           mented.
[INF]: Loading schema "ieee802-dot1q-sched@2018-09-10" from sysrepo.
[INF]: Reading module "ieee802-dot1q-sched".
[INF]: Reading module "ieee802-dot1q-preemption".
[INF]: Module "ieee802-dot1q-preemption@2018-09-10" already in context.
[INF]: Module "ieee802-dot1q-preemption@2018-09-10" successfully parsed as imple                           mented.
[INF]: Resolving "ieee802-dot1q-sched" unresolved schema nodes and their constra                           ints...
[INF]: All "ieee802-dot1q-sched" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-sched@2018-09-10" successfully parsed as implemente                           d.
[INF]: Loading schema "iana-if-type@2017-01-19" from sysrepo.
[INF]: Reading module "iana-if-type".
[INF]: Module "iana-if-type@2017-01-19" successfully parsed as implemented.
[INF]: Loading schema "ieee802-dot1q-bridge@2018-03-07" from sysrepo.
[INF]: Reading module "ieee802-dot1q-bridge".
[INF]: Reading module "ieee802-types".
[INF]: Module "ieee802-types@2018-03-07" successfully parsed as imported.
[INF]: Reading module "iana-if-type".
[INF]: Module "iana-if-type@2017-01-19" already in context.
[INF]: Module "iana-if-type@2017-01-19" successfully parsed as implemented.
[INF]: Resolving "ieee802-dot1q-bridge" unresolved schema nodes and their constr                           aints...
[INF]: All "ieee802-dot1q-bridge" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-bridge@2018-03-07" successfully parsed as implement                           ed.
[INF]: Loading schema "ieee802-types@2018-03-07" from sysrepo.
[INF]: Module ieee802-types@2018-03-07 already present in context.
[INF]: Module "ieee802-types@2018-03-07" now implemented.
[INF]: Loading schema "ietf-inet-types@2013-07-15" from sysrepo.
[INF]: Module ietf-inet-types@2013-07-15 already present in context.
[INF]: Module "ietf-inet-types@2013-07-15" now implemented.
[INF]: Loading schema "ieee802-dot1q-stream-filters-gates@2017-12-20" from sysre                           po.
[INF]: Reading module "ieee802-dot1q-stream-filters-gates".
[INF]: Reading module "ieee802-dot1q-bridge".
[INF]: Module "ieee802-dot1q-bridge@2018-03-07" already in context.
[INF]: Module "ieee802-dot1q-bridge@2018-03-07" successfully parsed as implement                           ed.
[INF]: Resolving "ieee802-dot1q-stream-filters-gates" unresolved schema nodes an                           d their constraints...
[INF]: All "ieee802-dot1q-stream-filters-gates" schema nodes and constraints res                           olved.
[INF]: Module "ieee802-dot1q-stream-filters-gates@2017-12-20" successfully parse                           d as implemented.
[INF]: Loading schema "ieee802-dot1q-psfp@2018-09-10" from sysrepo.
[INF]: Reading module "ieee802-dot1q-psfp".
[INF]: Reading module "ieee802-dot1q-stream-filters-gates".
[INF]: Module "ieee802-dot1q-stream-filters-gates@2017-12-20" already in context                           .
[INF]: Module "ieee802-dot1q-stream-filters-gates@2017-12-20" successfully parse                           d as implemented.
[INF]: Resolving "ieee802-dot1q-psfp" unresolved schema nodes and their constrai                           nts...
[INF]: All "ieee802-dot1q-psfp" schema nodes and constraints resolved.
[INF]: Module "ieee802-dot1q-psfp@2018-09-10" successfully parsed as implemented                           .
[INF]: Loading schema "ieee802-dot1q-cb-stream-identification@2019-05-20" from s                           ysrepo.
[INF]: Reading module "ieee802-dot1q-cb-stream-identification".
[INF]: Resolving "ieee802-dot1q-cb-stream-identification" unresolved schema node                           s and their constraints...
[INF]: All "ieee802-dot1q-cb-stream-identification" schema nodes and constraints                            resolved.
[INF]: Module "ieee802-dot1q-cb-stream-identification@2019-05-20" successfully p                           arsed as implemented.
[INF]: Loading schema "ieee802-dot1q-qci-augment@2019-05-20" from sysrepo.
[INF]: Reading module "ieee802-dot1q-qci-augment".
[INF]: Reading module "ieee802-dot1q-psfp".
[INF]: Module "ieee802-dot1q-psfp@2018-09-10" already in context.
[INF]: Module "ieee802-dot1q-psfp@2018-09-10" successfully parsed as implemented                           .
[INF]: Module "ieee802-dot1q-qci-augment@2019-05-20" successfully parsed as impl                           emented.
[INF]: Loading schema "ietf-ip@2014-06-16" from sysrepo.
[INF]: Reading module "ietf-ip".
[INF]: Module "ietf-ip@2014-06-16" successfully parsed as implemented.
[INF]: Loading schema "nxp-bridge-vlan-tc-flower@2020-04-02" from sysrepo.
[INF]: Reading module "nxp-bridge-vlan-tc-flower".
[INF]: Module "nxp-bridge-vlan-tc-flower@2020-04-02" successfully parsed as impl                           emented.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-inter                           faces']/name" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-inter                           faces']/ssh" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-inter                           faces']/ssh/address" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-inter                           faces']/ssh/port" created.
[INF]: Listening on 0.0.0.0:830 for SSH connections.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-inter                           faces']/ssh/host-keys" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-inter                           faces']/ssh/host-keys/host-key[name='imported SSH key']/name" created.
[INF]: Path "/ietf-netconf-server:netconf-server/listen/endpoint[name='all-inter                           faces']/ssh/host-keys/host-key[name='imported SSH key']/public-key" created.
[INF]: Accepted a connection on 0.0.0.0:830.
[2020/02/08 07:08:29.018533, 2] ssh_pki_import_privkey_base64:  Trying to decode privkey passphrase=false
[2020/02/08 07:08:29.023273, 2] ssh_server_connection_callback:  SSH client banner: SSH-2.0-libssh_0.8.90
[2020/02/08 07:08:29.023887, 2] ssh_analyze_banner:  Analyzing banner: SSH-2.0-libssh_0.8.90
[2020/02/08 07:08:29.026221, 2] ssh_kex_select_methods:  Negotiated curve25519-sha256,rsa-sha2-512,aes256-gcm@openssh.com,aes256-gcm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-256-etm@openssh.com,none,none,,
[2020/02/08 07:08:29.272006, 2] ssh_packet_server_curve25519_init:  SSH_MSG_KEX_ECDH_REPLY sent
[2020/02/08 07:08:29.272695, 2] ssh_init_rekey_state:  Set rekey after 4294967296 blocks
[2020/02/08 07:08:29.272966, 2] ssh_init_rekey_state:  Set rekey after 4294967296 blocks
[2020/02/08 07:08:29.273547, 2] ssh_packet_server_curve25519_init:  SSH_MSG_NEWKEYS sent
[2020/02/08 07:08:29.274961, 2] ssh_packet_newkeys:  Received SSH_MSG_NEWKEYS
[INF]: Received an SSH message "request-service" of subtype "ssh-userauth".
[INF]: Received an SSH message "request-auth" of subtype "none".
[INF]: Received an SSH message "request-auth" of subtype "interactive".
[2020/02/08 07:08:31.751613, 2] ssh_message_auth_interactive_request:  Warning: Got a keyboard-interactive response but it seems we didn't send the request.
[INF]: Received an SSH message "request-auth" of subtype "interactive".
[INF]: User "root" authenticated.
[INF]: Received an SSH message "request-channel-open" of subtype "session".
[INF]: Received an SSH message "request-channel" of subtype "subsystem".
[2020/02/08 07:08:33.045091, 2] grow_window:  growing window (channel 43:43) to 1280000 bytes
[2020/02/08 07:08:33.045736, 2] channel_rcv_change_window:  Adding 1217017 bytes to channel (43:43) (from 59313 bytes)
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Generated new event (netconf-session-start).
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[2020/02/08 07:08:33.942235, 2] channel_rcv_change_window:  Adding 640164 bytes to channel (43:43) (from 639829 bytes)
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[ERR]: Error by processing of the commit request (session id=957002647): Invalid argument.
[ERR]: Commit operation failed with 0 error(s).
[INF]: Session 1: thread 3 event new RPC.
[INF]: Session 1: thread 3 event reply error.
crow1814 commented 3 years ago

I found that even if the response of "edit-config --target running --config=qbv.xml" is "OK", the settings do not take effect on ls1021atsn.

Firstr, on ubuntu18.04:

> connect --login root --host 192.168.1.1
Interactive SSH Authentication
Type your password:
Password:
>
> edit-config --target running --config=qbv2.xml
OK

Second, on ls1021atsn:

[root@LS1021ATSN ~] # tc qdisc show dev swp2
qdisc noqueue 0: root refcnt 2

Third,Third, on ls1021atsn:

netopeer2-server -d -v2:
[2020/02/08 07:53:57.873253, 2] channel_rcv_change_window:  Adding 640164 bytes to channel (43:43) (from 638805 bytes)
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 1 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.

Fourth, on ls1021atsn:

[root@LS1021ATSN ~] # sysrepo-tsn -d -v4
Enter Debug Mode!
nlmsg type is 2 length 60
got error reply. error NO. is 2
ok. cmd:tc qdisc replace dev swp2 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 sched-entry S 5 5000 sched-entry S 7 6000 sched-entry S 7 6000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found

So I guess if there is a problem with sysrepo-tsn?

whbo158 commented 3 years ago

ok. cmd: ..., it shows that sysrepo-tsn had run the tc command,

  1. Do you set BR2_PACKAGE_QORIQ_SYSREPO_TSN_TC=y in configs/nxp_ls1021atsn_defconfig of openil?
  2. you can run the following command using console, and check if the setting is working well tc qdisc replace dev swp2 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 sched-entry S 5 5000 sched-entry S 7 6000 sched-entry S 7 6000 flags 2
crow1814 commented 3 years ago

1、I have set BR2_PACKAGE_QORIQ_SYSREPO_TSN_TC=y in configs/nxp_ls1021atsn_defconfig of openil. 2、I run the following command on ls1021atsn, and it take effect:

[root@LS1021ATSN ~] # tc qdisc replace dev swp2 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 sched-entry S 5 5000 sched-entry S 7 6000 sched-entry S 7 6000 flags 2
[root@LS1021ATSN ~] # tc qdisc show dev swp2
qdisc taprio 100: root refcnt 9 tc 8 map 0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 0
queues offset 0 count 1 offset 1 count 1 offset 2 count 1 offset 3 count 1 offset 4 count 1 offset 5 count 1 offset 6 count 1 offset 7 count 1
clockid invalid flags 0x7d8f4   base-time 0 cycle-time 17000 cycle-time-extension 0
        index 0 cmd S gatemask 0x5 interval 5000
        index 1 cmd S gatemask 0x7 interval 6000
        index 2 cmd S gatemask 0x7 interval 6000

qdisc pfifo 0: parent 100:8 limit 1000p
qdisc pfifo 0: parent 100:7 limit 1000p
qdisc pfifo 0: parent 100:6 limit 1000p
qdisc pfifo 0: parent 100:5 limit 1000p
qdisc pfifo 0: parent 100:4 limit 1000p
qdisc pfifo 0: parent 100:3 limit 1000p
qdisc pfifo 0: parent 100:2 limit 1000p
qdisc pfifo 0: parent 100:1 limit 1000p
[root@LS1021ATSN ~] #
whbo158 commented 3 years ago

ok, I will build openil1.9 for ls1021atsn board, and test the case, it will take some time. and you can test the following:

  1. edit-config --target running --config=qbv-swp5-tc.xml // only send qbv-swp5-tc.xml
  2. tc qdisc show dev swp5

qbv-swp5-tc.xml link on github is: https://github.com/openil/sysrepo-tsn/blob/master/Instances/qbv-swp5-tc.xml

whbo158 commented 3 years ago

another issue, from your log, we also see output message of tsntool lib, "got error reply. error NO. is 2", you can disable "BR2_PACKAGE_QORIQ_TSNTOOL" in package/nxp/qoriq-sysrepo-tsn/Config.in of openil, and rebuild sysrepo-tsn, and test.

crow1814 commented 3 years ago

1、On the netopeer2-cli:

root@lab640-PowerEdge-T20:~/netopeer2# cat qbv3.xml
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
            xmlns:sched="urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched"
            xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
            xmlns:preempt="urn:ieee:std:802.1Q:yang:ieee802-dot1q-preemption">
        <interface>
                <name>swp5</name>
                <enabled>true</enabled>
                <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:ethernetCsmacd</type>
                <sched:max-sdu-table>
                        <sched:traffic-class>0</sched:traffic-class>
                        <sched:queue-max-sdu>10</sched:queue-max-sdu>
                </sched:max-sdu-table>
                <sched:gate-parameters>
                        <sched:gate-enabled>true</sched:gate-enabled>
                        <sched:admin-gate-states>0</sched:admin-gate-states>
                        <sched:admin-base-time>
                                <sched:seconds>2900</sched:seconds>
                                <sched:fractional-seconds>5000</sched:fractional-seconds>
                        </sched:admin-base-time>
                        <sched:admin-cycle-time>
                                <sched:numerator>0</sched:numerator>
                                <sched:denominator>1000000000</sched:denominator>
                        </sched:admin-cycle-time>
                        <sched:admin-cycle-time-extension>0</sched:admin-cycle-time-extension>
                        <sched:config-change>true</sched:config-change>
                        <sched:admin-control-list-length>2</sched:admin-control-list-length>
                        <sched:admin-control-list>
                                <sched:index>0</sched:index>
                                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                                <sched:sgs-params>
                                        <sched:gate-states-value>128</sched:gate-states-value>
                                        <sched:time-interval-value>100000</sched:time-interval-value>
                                </sched:sgs-params>
                        </sched:admin-control-list>
                        <sched:admin-control-list>
                                <sched:index>1</sched:index>
                                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                                <sched:sgs-params>
                                        <sched:gate-states-value>127</sched:gate-states-value>
                                        <sched:time-interval-value>400000</sched:time-interval-value>
                                </sched:sgs-params>
                        </sched:admin-control-list>
                </sched:gate-parameters>
        </interface>
</interfaces>
root@lab640-PowerEdge-T20:~/netopeer2# netopeer2-cli
> connect --login root --host 192.168.1.1
Interactive SSH Authentication
Type your password:
Password:
> edit-config --target running --config=qbv3.xml
ERROR
        type:     application
        tag:      operation-failed
        severity: error
        message:  Invalid argument

>

2、On the ls1021atsn run "netopeer2-server -d -v4"

[INF]: Session 1: thread 0 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 4 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 3 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[INF]: Session 1: thread 2 event new RPC.
[INF]: Resolving unresolved data nodes and their constraints...
[INF]: All data nodes and constraints resolved.
[ERR]: Error by processing of the commit request (session id=330133660): Invalid argument.
[ERR]: Commit operation failed with 0 error(s).
[INF]: Session 1: thread 4 event new RPC.
[INF]: Session 1: thread 4 event reply error.

3、On the ls1021atsn run "sysrepo-tsn -d -v4"

[root@LS1021ATSN ~] # sysrepo-tsn -d -v4
Enter Debug Mode!
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Device failed to setup taprio offload.
failed! ret:0x200 cmd:tc qdisc replace dev swp2 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 sched-entry S 5 5000 sched-entry S 7 6000 sched-entry S 7 6000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Device failed to setup taprio offload.
failed! ret:0x200 cmd:tc qdisc replace dev swp5 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 2900000005000 sched-entry S 80 100000 sched-entry S 7F 400000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Invalid handle.
cmd:tc qdisc del dev swp5 parent root handle 100
WARN: /ietf-interfaces:interfaces/interface[name='swp5']/ieee802-dot1q-preemption:*//* was deleted, disable this Instance.

4、On the ls1021atsn

[root@LS1021ATSN ~] # tc qdisc show dev swp5
qdisc noqueue 0: root refcnt 2
[root@LS1021ATSN ~] #
whbo158 commented 3 years ago

firstly, disable "BR2_PACKAGE_QORIQ_TSNTOOL" in package/nxp/qoriq-sysrepo-tsn/Config.in of openil, and reconfigure sysrepo-tsn, and test it. from your log, "nlmsg type is 2 length 60 got error reply. error NO. is 2" is error message of tsntool, it reports error, so sysrepo-tsn call roll-back routine, "tc qdisc del dev swp5 parent root handle 100", and delete qdisc.

crow1814 commented 3 years ago

I have disabled "BR2_PACKAGE_QORIQ_TSNTOOL", and then: 1、On the ubuntu18.04

root@lab640-PowerEdge-T20:~/netopeer2# cat qbv3.xml
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
            xmlns:sched="urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched"
            xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
            xmlns:preempt="urn:ieee:std:802.1Q:yang:ieee802-dot1q-preemption">
        <interface>
                <name>swp5</name>
                <enabled>true</enabled>
                <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:ethernetCsmacd</type>
                <sched:max-sdu-table>
                        <sched:traffic-class>0</sched:traffic-class>
                        <sched:queue-max-sdu>10</sched:queue-max-sdu>
                </sched:max-sdu-table>
                <sched:gate-parameters>
                        <sched:gate-enabled>true</sched:gate-enabled>
                        <sched:admin-gate-states>0</sched:admin-gate-states>
                        <sched:admin-base-time>
                                <sched:seconds>2900</sched:seconds>
                                <sched:fractional-seconds>5000</sched:fractional-seconds>
                        </sched:admin-base-time>
                        <sched:admin-cycle-time>
                                <sched:numerator>0</sched:numerator>
                                <sched:denominator>1000000000</sched:denominator>
                        </sched:admin-cycle-time>
                        <sched:admin-cycle-time-extension>0</sched:admin-cycle-time-extension>
                        <sched:config-change>true</sched:config-change>
                        <sched:admin-control-list-length>2</sched:admin-control-list-length>
                        <sched:admin-control-list>
                                <sched:index>0</sched:index>
                                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                                <sched:sgs-params>
                                        <sched:gate-states-value>128</sched:gate-states-value>
                                        <sched:time-interval-value>100000</sched:time-interval-value>
                                </sched:sgs-params>
                        </sched:admin-control-list>
                        <sched:admin-control-list>
                                <sched:index>1</sched:index>
                                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                                <sched:sgs-params>
                                        <sched:gate-states-value>127</sched:gate-states-value>
                                        <sched:time-interval-value>400000</sched:time-interval-value>
                                </sched:sgs-params>
                        </sched:admin-control-list>
                </sched:gate-parameters>
        </interface>
</interfaces>
root@lab640-PowerEdge-T20:~/netopeer2# netopeer2-cli
> connect --login root --host 192.168.1.1
Interactive SSH Authentication
Type your password:
Password:
> edit-config --target running --config=qbv3.xml
OK
>

2、On the ls1021atsn run "sysrepo-tsn -d -v4"

[root@LS1021ATSN ~] # sysrepo-tsn -d -v4
Enter Debug Mode!
nlmsg type is 2 length 60
got error reply. error NO. is 2
ok. cmd:tc qdisc replace dev swp5 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 2900000005000 sched-entry S 80 100000 sched-entry S 7F 400000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found

3、On the ls1021atsn check configuration information. Although the error message "got error reply. error NO. is 2" still appears, the setting is effective in the ls1021atsn.

[root@LS1021ATSN ~] # tc qdisc show dev swp5
qdisc noqueue 0: root refcnt 2
[root@LS1021ATSN ~] # tc qdisc show dev swp5
qdisc taprio 100: root refcnt 9 tc 8 map 0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 0
queues offset 0 count 1 offset 1 count 1 offset 2 count 1 offset 3 count 1 offset 4 count 1 offset 5 count 1 offset 6 count 1 offset 7 count 1
clockid invalid flags 0x7d8f4   base-time 2900000005000 cycle-time 500000 cycle-time-extension 0
        index 0 cmd S gatemask 0x80 interval 100000
        index 1 cmd S gatemask 0x7f interval 400000

qdisc pfifo 0: parent 100:8 limit 1000p
qdisc pfifo 0: parent 100:7 limit 1000p
qdisc pfifo 0: parent 100:6 limit 1000p
qdisc pfifo 0: parent 100:5 limit 1000p
qdisc pfifo 0: parent 100:4 limit 1000p
qdisc pfifo 0: parent 100:3 limit 1000p
qdisc pfifo 0: parent 100:2 limit 1000p
qdisc pfifo 0: parent 100:1 limit 1000p
[root@LS1021ATSN ~] #

In addition, I tried another xml as below,

<?xml version='1.0' encoding='utf8'?>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
        xmlns:sched="urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched"
        xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
        xmlns:preempt="urn:ieee:std:802.1Q:yang:ieee802-dot1q-preemption">
    <interface>
        <name>swp2</name>
        <enabled>true</enabled>
        <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:ethernetCsmacd</type>
        <sched:max-sdu-table>
            <sched:traffic-class>0</sched:traffic-class>
            <sched:queue-max-sdu>1024</sched:queue-max-sdu>
        </sched:max-sdu-table>
        <sched:gate-parameters>
            <sched:gate-enabled>true</sched:gate-enabled>
            <sched:admin-gate-states>127</sched:admin-gate-states>
            <sched:config-change>true</sched:config-change>
            <sched:admin-control-list-length>3</sched:admin-control-list-length>
            <sched:admin-control-list>
                <sched:index>0</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>5</sched:gate-states-value>
                    <sched:time-interval-value>5000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
            <sched:admin-control-list>
                <sched:index>1</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>7</sched:gate-states-value>
                    <sched:time-interval-value>6000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
            <sched:admin-control-list>
                <sched:index>2</sched:index>
                <sched:operation-name>sched:set-gate-states</sched:operation-name>
                <sched:sgs-params>
                    <sched:gate-states-value>7</sched:gate-states-value>
                    <sched:time-interval-value>6000</sched:time-interval-value>
                </sched:sgs-params>
            </sched:admin-control-list>
        </sched:gate-parameters>
    </interface>
</interfaces>

The feedback is

> edit-config --target running --config=qbv2.xml
ERROR
        type:     application
        tag:      operation-failed
        severity: error
        message:  Invalid argument

and the error message on ls1021atsn is:

[root@LS1021ATSN ~] # sysrepo-tsn -d -v4
Enter Debug Mode!
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Device failed to setup taprio offload.
failed! ret:0x200 cmd:tc qdisc replace dev swp2 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 sched-entry S 5 5000 sched-entry S 7 6000 sched-entry S 7 6000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Invalid handle.
cmd:tc qdisc del dev swp2 parent root handle 100
WARN: /ietf-interfaces:interfaces/interface[name='swp2']/ieee802-dot1q-preemption:*//* was deleted, disable this Instance.
whbo158 commented 3 years ago

I find the reason, in 1021atsn board, if you run "tc qdisc replace ..." firstly, and want to run next "tc qdisc replace ...", must run "tc qidsc del ..." to delete former one. but in ls1028atsn, it don't need delete former qdisc. I think "replace" don't need delete, and sysrepo-tsn don't konw which one should be deleted.

we will discuss this issue and try to resolve it.

@crow1814 you can run "tc qdisc del ..." before you send qbv.xml, and check the result.

crow1814 commented 3 years ago

Thank you very much for your help! On the web page, the qbv GCL will take effect if I run "tc qdisc del ..." on ls1021atsn to delete all former qdisc. However, the log on sysrepo-tsn is:

[root@LS1021ATSN ~] # sysrepo-tsn -d -v4
Enter Debug Mode!
nlmsg type is 2 length 60
got error reply. error NO. is 2
ok. cmd:tc qdisc replace dev swp4 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 30000000000 sched-entry S 3 2000 sched-entry S 5 600000 sched-entry S 4 200 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found

If I don't delete former qdisc, the new qdisc will do not take effect, and the log on sysrepo-tsn is:

[root@LS1021ATSN ~] # sysrepo-tsn -d -v4
Enter Debug Mode!
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Device failed to setup taprio offload.
failed! ret:0x200 cmd:tc qdisc replace dev swp2 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 30000000000 sched-entry S 6 2000 sched-entry S 3 5000 sched-entry S 1 2000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Invalid handle.
cmd:tc qdisc del dev swp2 parent root handle 100
WARN: /ietf-interfaces:interfaces/interface[name='swp2']/ieee802-dot1q-preemption:*//* was deleted, disable this Instance.

After some trial and error, I found out that when I replace the qdisc on the same port(swp4), the first click on ‘confirm’ will delete the former qdisc and the second click on ‘confirm’ will add the new qdisc, it will takes effect on 1021, the log on sysrepo-tsn is:

[root@LS1021ATSN ~] # sysrepo-tsn -d -v4
Enter Debug Mode!
nlmsg type is 2 length 60
got error reply. error NO. is 2
Error: Device failed to setup taprio offload.
failed! ret:0x200 cmd:tc qdisc replace dev swp4 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 50000000000 sched-entry S 6 3000 sched-entry S 3 7000 sched-entry S 5 4000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found
nlmsg type is 2 length 60
got error reply. error NO. is 2
cmd:tc qdisc del dev swp4 parent root handle 100
WARN: /ietf-interfaces:interfaces/interface[name='swp4']/ieee802-dot1q-preemption:*//* was deleted, disable this Instance.
nlmsg type is 2 length 60
got error reply. error NO. is 2
ok. cmd:tc qdisc replace dev swp4 parent root handle 100 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 50000000000 sched-entry S 6 3000 sched-entry S 3 7000 sched-entry S 5 4000 flags 2
WARN: config_qbu_per_port sr_get_items: Item not found

And the log on ls1021atsn is:

[root@LS1021ATSN ~] # tc qdisc show dev swp4
qdisc taprio 100: root refcnt 9 tc 8 map 0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 0
queues offset 0 count 1 offset 1 count 1 offset 2 count 1 offset 3 count 1 offset 4 count 1 offset 5 count 1 offset 6 count 1 offset 7 count 1
clockid invalid flags 0x7d8f4   base-time 50000000000 cycle-time 9000 cycle-time-extension 0
        index 0 cmd S gatemask 0x5 interval 5000
        index 1 cmd S gatemask 0x3 interval 3000
        index 2 cmd S gatemask 0x2 interval 1000

qdisc pfifo 0: parent 100:8 limit 1000p
qdisc pfifo 0: parent 100:7 limit 1000p
qdisc pfifo 0: parent 100:6 limit 1000p
qdisc pfifo 0: parent 100:5 limit 1000p
qdisc pfifo 0: parent 100:4 limit 1000p
qdisc pfifo 0: parent 100:3 limit 1000p
qdisc pfifo 0: parent 100:2 limit 1000p
qdisc pfifo 0: parent 100:1 limit 1000p
[root@LS1021ATSN ~] # tc qdisc show dev swp4
qdisc noqueue 0: root refcnt 2
[root@LS1021ATSN ~] # tc qdisc show dev swp4
qdisc taprio 100: root refcnt 9 tc 8 map 0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 0
queues offset 0 count 1 offset 1 count 1 offset 2 count 1 offset 3 count 1 offset 4 count 1 offset 5 count 1 offset 6 count 1 offset 7 count 1
clockid invalid flags 0x7d8f4   base-time 50000000000 cycle-time 14000 cycle-time-extension 0
        index 0 cmd S gatemask 0x6 interval 3000
        index 1 cmd S gatemask 0x3 interval 7000
        index 2 cmd S gatemask 0x5 interval 4000

qdisc pfifo 0: parent 100:8 limit 1000p
qdisc pfifo 0: parent 100:7 limit 1000p
qdisc pfifo 0: parent 100:6 limit 1000p
qdisc pfifo 0: parent 100:5 limit 1000p
qdisc pfifo 0: parent 100:4 limit 1000p
qdisc pfifo 0: parent 100:3 limit 1000p
qdisc pfifo 0: parent 100:2 limit 1000p
qdisc pfifo 0: parent 100:1 limit 1000p
[root@LS1021ATSN ~] #

Thank you very much for your help!!! @whbo158 @liupoer , hope my trials are helpful! Beg you to notify me as soon as possible If this problem be solved.

crow1814 commented 3 years ago

another issue, from your log, we also see output message of tsntool lib, "got error reply. error NO. is 2", you can disable "BR2_PACKAGE_QORIQ_TSNTOOL" in package/nxp/qoriq-sysrepo-tsn/Config.in of openil, and rebuild sysrepo-tsn, and test.

another question, firstly, I remove the line "BR2_PACKAGE_QORIQ_TSNTOOL" in package/nxp/qoriq-sysrepo-tsn/Config.in of openil. secondly, I deleted the entire file output/build. third, I run "make". Am I correct?

whbo158 commented 3 years ago

After discusstion with my colleague, you don't need remove BR2_PACKAGE_QORIQ_TSNTOOL, if remove it, will produce compilation error, we will discuss and resolve the output of "got error reply. error NO. is 2".

crow1814 commented 3 years ago

OK, thank you for your time!