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

Refactor/bgp peer #180

Merged
merged 3 commits into from
Jul 25, 2023
Merged

Conversation

maksym-nazarenko
Copy link
Collaborator

No description provided.

TTL string `mikrotik:"ttl"`
UpdateSource string `mikrotik:"update-source"`
UseBfd bool `mikrotik:"use-bfd"`
Id string `mikrotik:".id" codegen:"id,mikrotikID"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this change also breaks the client module

@@ -61,7 +61,11 @@ func GenericReadResource(terraformModel interface{}, mikrotikModel client.Resour
return
}

resource, err := client.Find(mikrotikModel)
resource, err := mikrotikClient.Find(mikrotikModel)
if client.IsNotFoundError(err) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this check was missing, so it was a bug.
I didn't create a separate pair of issue/PR for it, but let me know if you want it to be split for better visibility.

Copy link
Owner

Choose a reason for hiding this comment

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

I think it's ok to fix it inline here.

Copy link
Owner

@ddelnano ddelnano left a comment

Choose a reason for hiding this comment

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

Sorry for the late review. lgtm!

@ddelnano ddelnano merged commit 095ab71 into ddelnano:master Jul 25, 2023
@maksym-nazarenko maksym-nazarenko deleted the refactor/bgp_peer branch September 19, 2023 18:52
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.

2 participants