Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ixia for client api #249

Merged
merged 6 commits into from Oct 27, 2022

Conversation

anjan-keysight
Copy link
Contributor

Make use of go client API for IxiaTG CRD instead of REST API.

@coveralls
Copy link

coveralls commented Oct 21, 2022

Pull Request Test Coverage Report for Build 3340298137

  • 0 of 23 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.4%) to 57.897%

Changes Missing Coverage Covered Lines Changed/Added Lines %
topo/node/ixia/ixia.go 0 23 0.0%
Files with Coverage Reduction New Missed Lines %
topo/node/ixia/ixia.go 1 9.54%
Totals Coverage Status
Change from base Build 3340256822: 0.4%
Covered Lines: 2313
Relevant Lines: 3995

💛 - Coveralls

_, err = c.IxiaTG(n.Namespace).Create(ctx, crd)
if err != nil {
return nil, err
}

if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is now redundant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed those checks.

Do(ctx).
Error()
log.Infof("Updating ixia CRD (desiredState=%s) ...", desiredState)
_, err = c.IxiaTG(n.Namespace).Update(ctx, unStrCRD, metav1.UpdateOptions{})
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add a comment here on why update is being used instead of create?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added comment for TopologySpecs and Create operations.

@alexmasi
Copy link
Collaborator

/gcbrun

@alexmasi
Copy link
Collaborator

We had a breakage in the presubmit (that was fixed but is not included on this branch). Can you cherrypick that change or resync and merge it in? 6a700bf

sorry about that

@anjan-keysight
Copy link
Contributor Author

I have resynced and merged.

@alexmasi
Copy link
Collaborator

/gcbrun

alexmasi
alexmasi previously approved these changes Oct 25, 2022
@alexmasi
Copy link
Collaborator

Looks like there are some merge conflicts, once those are fixed I can merge

@anjan-keysight
Copy link
Contributor Author

Resolved the go.sum conflict.

@alexmasi
Copy link
Collaborator

there are still merge conflicts unfortunately

@alexmasi
Copy link
Collaborator

okay I merged the other PR, ready to run the presubmit on this as well after the merge conflicts are resolved

@alexmasi
Copy link
Collaborator

/gcbrun

@alexmasi alexmasi merged commit 8e9bbd9 into openconfig:main Oct 27, 2022
marcushines pushed a commit that referenced this pull request Jan 9, 2023
* Update Ixia for client api

* Incorporated review comments

* Cleaned go.sum
@anjan-keysight anjan-keysight deleted the dev-ixia-client-lib branch October 19, 2023 07:44
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.

None yet

3 participants