-
Notifications
You must be signed in to change notification settings - Fork 202
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
Network: support nmstate bridge STP options #283
Conversation
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.
Nice cleanup. Please make sure that it works (tests pass at minimum) after each of the commits.
16f6088
to
85d42b6
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.
The improvements are nice overall, I left some comments. However I would disagree that it solves #270, the module was not visited by this PR (maybe I am looking at this too early). Also please consider changing the title of the PR, this pretty big refactor that is addressing multiple things not only bridge options.
0fb0bdb
to
e371515
Compare
/ost |
/ost network-suite-master |
passed |
/ost basic-suite-master |
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.
One minor thing, otherwise it looks good to me.
e371515
to
811e147
Compare
811e147
to
317e324
Compare
leaving unmerged until 4.5.2 is out to avoid risk of regression |
OK, looks good, let's wait until 4.5.2 branch is created. |
Change-Id: I18fcc7c8d1120893b185f058668eec12ce7b70f3 Signed-off-by: Eitan Raviv <[email protected]>
'import as' makes it difficult to follow where code is called from because of the heavy reuse of the same names for different concepts. Change-Id: Idfed823e0821ec4e6f055880efabb6046042cc69 Signed-off-by: Eitan Raviv <[email protected]> Change-Id: I367f7cd0a50a11ff80754f2b0c8aa6fcf1ae90ad
Change-Id: Ic16c346f02f9c5ee481c227391b7c7c21e713ab5 Signed-off-by: Eitan Raviv <[email protected]> Change-Id: Id2868b93e83de729f9680380250fb3c499d74e25
- fix leakage of internals of ipwrapper - enhance possibility of reuse Change-Id: Ia52b5661ec68b6982a03927daea14eb32cd9ece5 Signed-off-by: Eitan Raviv <[email protected]>
b1da1bb
to
4be2201
Compare
The masking import add no value, but interfere with the structure of the code and its readability. Change-Id: I263aaec49a05205002649bf454034911cfc74610 Signed-off-by: Eitan Raviv <[email protected]>
4be2201
to
99dd58b
Compare
99dd58b
to
d9e24ec
Compare
Properly reflect what option parsers are doing for readability while refactoring for reuse, extend-ability. Change-Id: I734ade2f9265f9be5f473665fb458ab1f7d9b469 Signed-off-by: Eitan Raviv <[email protected]>
ac2222c
to
3c0bd05
Compare
Extract the options so the parser can be used with any set of options. Signed-off-by: Eitan Raviv <[email protected]> Change-Id: I8a73251969083c25812c8ad534df1dfdf2266645
632e649
to
ce08adc
Compare
Use nmstate to apply STP options to a bridge. It is not possible to set the STP state to 'off' and at the same time pass non-default values for the other STP attributes (max-age, hello-time, forward-delay). Bug-Url: https://bugzilla.redhat.com/2108974 Change-Id: I51077ee206bd0b0e2644b4103b37280dbda5cd8f Signed-off-by: Eitan Raviv <[email protected]>
Encapsulate bridge options parsing in network/nmstate because it is used in production code only in network/nmstate. Signed-off-by: Eitan Raviv <[email protected]> Change-Id: I0ae4fa94efe4ddd1fd861a1b89170cbb6d703b73
Test that nmstate correctly applies STP bridge options passed during setup networks. It is not possible to set the STP state to 'off' and at the same time pass non-default values for the other STP attributes (max-age, hello-time, forward-delay). Change-Id: Ie904f9943d9cb8a99718f85ab7c8c9a264b97a39 Bug-Url: https://bugzilla.redhat.com/2108974 Signed-off-by: Eitan Raviv <[email protected]>
ce08adc
to
c83de0c
Compare
step1: cleanup
step 2: resolve https://bugzilla.redhat.com/2108974