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
state: support state:ignore
#1298
Conversation
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
Codecov Report
@@ Coverage Diff @@
## base #1298 +/- ##
==========================================
+ Coverage 57.91% 58.10% +0.18%
==========================================
Files 67 67
Lines 5316 5332 +16
==========================================
+ Hits 3079 3098 +19
+ Misses 2237 2234 -3
Continue to review full report at Codecov.
|
I am fine with the current approach but I feel like it could be confusing to use |
Adding another field is odd. I think that when applying, "ignore" means... "do not do UP, DOWN or DISABLE" which translates to not touching it. So it seems ok to me. When reporting, it will never be IGNORE, right? This merits a comment in the commit, on the API and in documentation. |
cdfd11c
to
b601b7f
Compare
The ignore is only used when applying desire state. Currently, nmstate don't touch them as they are unknown to us. But I think the correct way is mark them as |
b601b7f
to
e703cb9
Compare
2d813a7
to
433a102
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As everyone agrees on introducing state: ignore
I will not block on this. Approved, thanks!
QE approval request sent. Please wait test feedback before merge it. |
90377c6
to
b9d4074
Compare
Applied 'state: ignore' to main port and subordinate port respectively, it works well. |
Introducing `InterfaceState.IGNORE` for: * The ignored interface will not be changed when applying desire state. * The state verification will not be impacted by ignored interface. This state will be only used for `libnmstate.apply()`. Test cases added. Signed-off-by: Gris Ge <fge@redhat.com>
b9d4074
to
146b6e3
Compare
Timeout on waiting comsumer QE. Merging. |
Introducing
InterfaceState.IGNORE
for:* The ignored interface will not be changed when applying desire state.
* The state verification will not be impacted by ignored interface.
Test cases added.