Component Test For Components Model - Transceivers - #739
Draft
niranjanivivek wants to merge 1 commit into
Draft
niranjanivivek wants to merge 1 commit into
niranjanivivek wants to merge 1 commit into
Conversation
Contributor
|
/azp run |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Contributor
|
Hi, there are workflow run(s) waiting for approval, you may be first-time contributor. I will notify maintainers to help approve once PR is approved. Thanks! ---Powered by SONiC BuildBot
|
Contributor
Author
ndas7
suggested changes
Aug 27, 2026
niranjanivivek
force-pushed
the
componenttest_compmodel_txvr
branch
from
September 1, 2026 16:53
e257788 to
0fac055
Compare
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Signed-off-by: Niranjani Vivek <niranjaniv@google.com>
niranjanivivek
force-pushed
the
componenttest_compmodel_txvr
branch
from
September 1, 2026 17:15
0fac055 to
4806ac2
Compare
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
ndas7
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is created to add component test case for OpenConfig platform components root model transceivers
Note:
Dependency on below sonic-mgmt-common PRs.
Base PR - Support for Components Model Root - sonic-net/sonic-mgmt-common#224
Incremental PR - Support for Components Model - Transceiver - sonic-net/sonic-mgmt-common#226
Test Output
=== RUN TestGnmiGetTranslibPfmCompXcvr
=== RUN TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr
server_test.go:3367: [TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr] gotVal:
{
"openconfig-platform:component": [
{
"config": {
"name": "Ethernet0"
},
"name": "Ethernet0",
"openconfig-platform-transceiver:transceiver": {
"physical-channels": {
"channel": [
{
"config": {
"index": 0
},
"index": 0,
"state": {
"index": 0,
"input-power": {
"instant": "-Inf"
},
"laser-bias-current": {
"instant": "0"
},
"tx-laser": false
}
},
{
"config": {
"index": 1
},
"index": 1,
"state": {
"index": 1,
"input-power": {
"instant": "-Inf"
},
"laser-bias-current": {
"instant": "0"
},
"tx-laser": false
}
},
{
"config": {
"index": 2
},
"index": 2,
"state": {
"index": 2,
"input-power": {
"instant": "-Inf"
},
"laser-bias-current": {
"instant": "0"
},
"tx-laser": false
}
},
{
"config": {
"index": 3
},
"index": 3,
"state": {
"index": 3,
"input-power": {
"instant": "-Inf"
},
"laser-bias-current": {
"instant": "0"
},
"tx-laser": false
}
}
]
}
},
"state": {
"empty": false,
"firmware-version": "D",
"hardware-version": "D",
"mfg-date": "2011-12-13 ",
"mfg-name": "Amphenol",
"name": "Ethernet0",
"oper-status": "openconfig-platform-types:ACTIVE",
"part-no": "599690001",
"removable": true,
"serial-no": "APF11490011J7E",
"temperature": {
"instant": "101"
},
"type": "openconfig-platform-types:TRANSCEIVER"
}
}
]
}
=== RUN TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_State
server_test.go:3367: [TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_State] gotVal:
{
"openconfig-platform:state": {
"empty": false,
"firmware-version": "D",
"hardware-version": "D",
"mfg-date": "2011-12-13 ",
"mfg-name": "Amphenol",
"name": "Ethernet0",
"oper-status": "openconfig-platform-types:ACTIVE",
"part-no": "599690001",
"removable": true,
"serial-no": "APF11490011J7E",
"temperature": {
"instant": "101"
},
"type": "openconfig-platform-types:TRANSCEIVER"
}
}
=== RUN TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_Temperature
server_test.go:3367: [TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_Temperature] gotVal:
{
"openconfig-platform:instant": "101"
}
=== RUN TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_Presence
server_test.go:3367: [TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_Presence] gotVal:
{
"openconfig-platform:empty": false
}
--- PASS: TestGnmiGetTranslibPfmCompXcvr (1.25s)
--- PASS: TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr (0.04s)
--- PASS: TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_State (0.02s)
--- PASS: TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_Temperature (0.02s)
--- PASS: TestGnmiGetTranslibPfmCompXcvr/Get_OC_Platform_Comp_Xcvr_Presence (0.02s)
PASS