Bug 2165283
Summary: | [rust] removing route rules treats empty string filter as wildcard | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Mingyu Shi <mshi> |
Component: | nmstate | Assignee: | Gris Ge <fge> |
Status: | CLOSED ERRATA | QA Contact: | Mingyu Shi <mshi> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9.2 | CC: | ferferna, jiji, jishi, network-qe, till |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | nmstate-2.2.6-1.el9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-09 07:32:13 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mingyu Shi
2023-01-29 03:44:38 UTC
Patch sent to upstream: https://github.com/nmstate/nmstate/pull/2216 When user desiring absent route or route rule with empty string, it should means this absent route only matches current route/route_rule with this property been set to None. For example on route rule: ```yml - ip-to: 2001:db8:b::/64 ip-from: '' state: absent ``` Should match ```yml - ip-to: 2001:db8:b::/64 priority: 1000 route-table: 50 ``` Should not match ``` - ip-from: 2001:db8:b::/64 ip-to: 2001:db8:b::/64 priority: 20000 route-table: 50 ``` This change applied to `ip-from` and `ip-to` in route rule. This change applied to `next-hop-address` in route. The empty string in route destination is invalid IP address string, user should set it to null/None or use proper IP address. Verified with nmstate-2.2.7-1.el9 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2190 |