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

Consistent delete/rename #993

Merged
merged 9 commits into from Oct 9, 2019
Merged

Consistent delete/rename #993

merged 9 commits into from Oct 9, 2019

Conversation

@coveralls
Copy link

coveralls commented Oct 9, 2019

Coverage Status

Coverage increased (+0.2%) to 65.086% when pulling 7c2c6c4 on consistent_delrte_rename into 6261d70 on master.

Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

Just to np comments. Feel free to merge.

@@ -205,6 +210,54 @@ def configured_interface?(iface_name)
!connections.by_interface(iface_name).empty?
end

# @note does not work recursivelly. So for delete it needs to be called for all modified vlans.
Copy link
Contributor

Choose a reason for hiding this comment

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

np: recursively

connections.by_interface(old_name).each { |c| c.interface = new_name }
connections.by_interface(old_name).each do |connection|
connection.interface = new_name
rename_dependencies(old_name, new_name, connection)
Copy link
Contributor

Choose a reason for hiding this comment

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

np: Perhaps you could omit the old_name or the new_name as it is contained in the connection instance.

Copy link
Member Author

Choose a reason for hiding this comment

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

where it is contained? I only found it in interface class, but not in connection one.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is not connection.interface?

Copy link
Member Author

Choose a reason for hiding this comment

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

connection.interface is only the new name ( it is string ). So this way it is more explicit for me.

@jreidinger jreidinger merged commit 537c26c into master Oct 9, 2019
@jreidinger jreidinger deleted the consistent_delrte_rename branch October 9, 2019 15:10
@yast-bot
Copy link
Contributor

yast-bot commented Oct 9, 2019

✔️ Public Jenkins job #89 successfully finished
✔️ Created OBS submit request #736705

@yast-bot
Copy link
Contributor

yast-bot commented Oct 9, 2019

✔️ Internal Jenkins job #19 successfully finished
✔️ Created IBS submit request #202687

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

4 participants