Skip to content

models: OpticsPhysicalChannelsDict value should be a list#2186

Open
yzgyyang wants to merge 2 commits into
napalm-automation:developfrom
yzgyyang:patch-1
Open

models: OpticsPhysicalChannelsDict value should be a list#2186
yzgyyang wants to merge 2 commits into
napalm-automation:developfrom
yzgyyang:patch-1

Conversation

@yzgyyang

@yzgyyang yzgyyang commented Feb 27, 2025

Copy link
Copy Markdown

In all of the base 1, drivers 2 3 4 5 and test fixture 6 implementations of NetworkDriver.get_optics(), the return value .[intf_name]["physical_channels"]["channels"] is a list of dictionaries (specifically, a list of OpticsPerChannelDict). However, in the current model, it is listed as a single OpticsPerChannelDict. I believe that this was a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant