Skip to content

[config] Remove _get_breakout_cfg_file_name helper function#1069

Merged
jleveque merged 4 commits intosonic-net:masterfrom
vdahiya12:changes_for_cleaning_up__get_breakout_cfg_file_name
Aug 25, 2020
Merged

[config] Remove _get_breakout_cfg_file_name helper function#1069
jleveque merged 4 commits intosonic-net:masterfrom
vdahiya12:changes_for_cleaning_up__get_breakout_cfg_file_name

Conversation

@vdahiya12
Copy link
Copy Markdown
Contributor

this PR addresses replacing _get_breakout_cfg_file_name
function with device_info.get_path_to_port_config_file().
This is part of a larger clean up of functions which return
the port_config_file which reside outside of
sonic_py_common packages. This is motivated due to
redundancy of code as well as making it easier to change
the default behaviour of helper utility function
port_config_file unified and in one place.

Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com

this PR addresses replacing _get_breakout_cfg_file_name
function with device_info.get_path_to_port_config_file().
This is part of a larger clean up of functions which return
the port_config_file which reside outside of
sonic_py_common packages. This is motivated due to
redundancy of code as well as making it easier to change
the default behaviour of helper utility function
port_config_file unified and in one place.

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
Copy link
Copy Markdown
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also remove the _get_breakout_cfg_file_name function definition since it is no longer used.

removing unused function

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
removing a typo

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
removing the import

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@jleveque
Copy link
Copy Markdown
Contributor

@samaity: Please review.

@vdahiya12 vdahiya12 requested review from sujinmkang and yxieca August 25, 2020 05:55
@samaity
Copy link
Copy Markdown
Contributor

samaity commented Aug 25, 2020

@jleveque @vdahiya12 , LGTM! 👍

@jleveque jleveque changed the title [config] replacing _get_breakout_cfg_file_name helper function [config] Remove _get_breakout_cfg_file_name helper function Aug 25, 2020
@jleveque jleveque merged commit 0fa1fb2 into sonic-net:master Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants