Skip to content

enhanced PushConfig function to make otg ports up during push config.… - #157

Open
abhijit-dhar wants to merge 3 commits into
openconfig:mainfrom
open-traffic-generator:push_config_enhanced
Open

abhijit-dhar wants to merge 3 commits into
openconfig:mainfrom
open-traffic-generator:push_config_enhanced

Conversation

@abhijit-dhar

Copy link
Copy Markdown

PushConfig now brings up port links automatically after applying the configuration. Previously, it preserved the existing port link state and did not alter port status.

To restore the earlier behavior when required, support has been added for PushConfigOptions{LinkUp bool} along with the new PushConfigOpts(t, cfg, opts) API. When opts is nil or LinkUp is set to false, the link-up step is skipped, preserving the current port state. When LinkUp is true, port links are explicitly brought up after the configuration is pushed.

This provides backward-compatible flexibility, allowing users to maintain the previous status-quo behavior while enabling explicit port link activation when desired.

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