I send request to confd basic7.6 as follows:
<?xml version="1.0" encoding="utf-8"?>
<rpc message-id="54" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
<components xmlns="http://openconfig.net/yang/platform" xmlns:oc-platform="http://openconfig.net/yang/platform">
<component>
<state>
<type>PORT</type>
</state>
<port></port>
</component>
</components>
</filter>
</get>
</rpc>
I recieve respone as follows:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="54" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
<components xmlns="http://openconfig.net/yang/platform">
<component>
<state>
<name>XGEI-0/0/0/1</name>
<type xmlns:oc-platform-types="http://openconfig.net/yang/platform-types">oc-platform-types:PORT</type>
<empty>false</empty>
<equipment-failure xmlns="http://openconfig.net/yang/alarms">false</equipment-failure>
<equipment-mismatch xmlns="http://openconfig.net/yang/alarms">false</equipment-mismatch>
</state>
<port>
<breakout-mode xmlns="http://openconfig.net/yang/platform/port">
<groups>
<group>
<index>1</index>
<config>
<index>1</index>
<num-breakouts>3</num-breakouts>
<breakout-speed xmlns:oc-eth="http://openconfig.net/yang/interfaces/ethernet">oc-eth:SPEED_1GB</breakout-speed>
<num-physical-channels>2</num-physical-channels>
</config>
<state>
<index>1</index>
<num-breakouts>3</num-breakouts>
<breakout-speed xmlns:oc-eth="http://openconfig.net/yang/interfaces/ethernet">oc-eth:SPEED_1GB</breakout-speed>
<num-physical-channels>2</num-physical-channels>
</state>
</group>
</groups>
</breakout-mode>
</port>
</component>
</components>
</data>
</rpc-reply>
But I think /components/component/name and /components/component/config are also expected as follows:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="54" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
<components xmlns="http://openconfig.net/yang/platform">
<component>
<name>N8K-X9732C-TEST</name>
<config>
<name>N8K-X9732C-TEST</name>
</config>
<state>
<name>XGEI-0/0/0/1</name>
<type xmlns:oc-platform-types="http://openconfig.net/yang/platform-types">oc-platform-types:PORT</type>
<empty>false</empty>
<equipment-failure xmlns="http://openconfig.net/yang/alarms">false</equipment-failure>
<equipment-mismatch xmlns="http://openconfig.net/yang/alarms">false</equipment-mismatch>
</state>
<port>
<breakout-mode xmlns="http://openconfig.net/yang/platform/port">
<groups>
<group>
<index>1</index>
<config>
<index>1</index>
<num-breakouts>3</num-breakouts>
<breakout-speed xmlns:oc-eth="http://openconfig.net/yang/interfaces/ethernet">oc-eth:SPEED_1GB</breakout-speed>
<num-physical-channels>2</num-physical-channels>
</config>
<state>
<index>1</index>
<num-breakouts>3</num-breakouts>
<breakout-speed xmlns:oc-eth="http://openconfig.net/yang/interfaces/ethernet">oc-eth:SPEED_1GB</breakout-speed>
<num-physical-channels>2</num-physical-channels>
</state>
</group>
</groups>
</breakout-mode>
</port>
</component>
</components>
</data>
</rpc-reply>
Is my thinking correct?