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

bridge: T6675: VXLAN Interface configuration lost due to improper bridge detachment #4086

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

natali-rs1985
Copy link
Contributor

@natali-rs1985 natali-rs1985 commented Sep 19, 2024

Change Summary

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

interfaces bridge

Proposed changes

How to test

set interfaces bridge br0 member interface vxlan4000
set interfaces vxlan vxlan4000 parameters neighbor-suppress
set interfaces vxlan vxlan4000 source-address '192.168.134.186'
set interfaces vxlan vxlan4000 vni '4000'
commit

vyos@vyos# del interfaces bridge br0 member interface vxlan4000
[edit]
vyos@vyos# commit
[ interfaces bridge br0 ]
To detach interface vxlan4000 from bridge you must first disable
"neighbor-suppress" parameter in the VXLAN interface vxlan4000

[[interfaces bridge br0]] failed
Commit failed
[edit]
vyos@vyos# del interfaces vxlan vxlan4000 parameters neighbor-suppress
[edit]
vyos@vyos# commit
[edit]
vyos@vyos#

Smoketest result

vyos@vyos:~$ TEST_ETH="eth1 eth3" /usr/libexec/vyos/tests/smoke/cli/test_interfaces_bridge.py
test_add_multiple_ip_addresses (__main__.BridgeInterfaceTest.test_add_multiple_ip_addresses) ... ok
test_add_remove_bridge_member (__main__.BridgeInterfaceTest.test_add_remove_bridge_member) ... ok
test_add_single_ip_address (__main__.BridgeInterfaceTest.test_add_single_ip_address) ... ok
test_add_to_invalid_vrf (__main__.BridgeInterfaceTest.test_add_to_invalid_vrf) ... ok
test_bridge_delete_with_vxlan_heighbor_suppress (__main__.BridgeInterfaceTest.test_bridge_delete_with_vxlan_heighbor_suppress) ... ok
test_bridge_tunnel_vxlan_multicast (__main__.BridgeInterfaceTest.test_bridge_tunnel_vxlan_multicast) ... ok
test_bridge_vif_members (__main__.BridgeInterfaceTest.test_bridge_vif_members) ... ok
test_bridge_vif_s_vif_c_members (__main__.BridgeInterfaceTest.test_bridge_vif_s_vif_c_members) ... ok
test_bridge_vlan_filter (__main__.BridgeInterfaceTest.test_bridge_vlan_filter) ... ok
test_bridge_vlan_protocol (__main__.BridgeInterfaceTest.test_bridge_vlan_protocol) ... ok
test_dhcp_client_options (__main__.BridgeInterfaceTest.test_dhcp_client_options) ... ok
test_dhcp_disable_interface (__main__.BridgeInterfaceTest.test_dhcp_disable_interface) ... ok
test_dhcp_vrf (__main__.BridgeInterfaceTest.test_dhcp_vrf) ... ok
test_dhcpv6_client_options (__main__.BridgeInterfaceTest.test_dhcpv6_client_options) ... ok
test_dhcpv6_vrf (__main__.BridgeInterfaceTest.test_dhcpv6_vrf) ... ok
test_dhcpv6pd_auto_sla_id (__main__.BridgeInterfaceTest.test_dhcpv6pd_auto_sla_id) ... ok
test_dhcpv6pd_manual_sla_id (__main__.BridgeInterfaceTest.test_dhcpv6pd_manual_sla_id) ... ok
test_igmp_querier_snooping (__main__.BridgeInterfaceTest.test_igmp_querier_snooping) ... ok
test_interface_description (__main__.BridgeInterfaceTest.test_interface_description) ... ok
test_interface_disable (__main__.BridgeInterfaceTest.test_interface_disable) ... ok
test_interface_ip_options (__main__.BridgeInterfaceTest.test_interface_ip_options) ... ok
test_interface_ipv6_options (__main__.BridgeInterfaceTest.test_interface_ipv6_options) ... ok
test_interface_mtu (__main__.BridgeInterfaceTest.test_interface_mtu) ... ok
test_ipv6_link_local_address (__main__.BridgeInterfaceTest.test_ipv6_link_local_address) ... ok
test_isolated_interfaces (__main__.BridgeInterfaceTest.test_isolated_interfaces) ... ok
test_move_interface_between_vrf_instances (__main__.BridgeInterfaceTest.test_move_interface_between_vrf_instances) ... ok
test_mtu_1200_no_ipv6_interface (__main__.BridgeInterfaceTest.test_mtu_1200_no_ipv6_interface) ... ok
test_span_mirror (__main__.BridgeInterfaceTest.test_span_mirror) ... ok
test_vif_8021q_interfaces (__main__.BridgeInterfaceTest.test_vif_8021q_interfaces) ... ok
test_vif_8021q_lower_up_down (__main__.BridgeInterfaceTest.test_vif_8021q_lower_up_down) ... ok
test_vif_8021q_mtu_limits (__main__.BridgeInterfaceTest.test_vif_8021q_mtu_limits) ... ok
test_vif_8021q_qos_change (__main__.BridgeInterfaceTest.test_vif_8021q_qos_change) ... ok
test_vif_s_8021ad_vlan_interfaces (__main__.BridgeInterfaceTest.test_vif_s_8021ad_vlan_interfaces) ... skipped 'not supported'
test_vif_s_protocol_change (__main__.BridgeInterfaceTest.test_vif_s_protocol_change) ... skipped 'not supported'

----------------------------------------------------------------------
Ran 34 tests in 187.534s

OK (skipped=2)

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Copy link

github-actions bot commented Sep 19, 2024

👍
No issues in PR Title / Commit Title

Copy link

github-actions bot commented Sep 19, 2024

✅ No issues found in unused-imports check.. Please refer the workflow run

src/conf_mode/interfaces_bridge.py Outdated Show resolved Hide resolved
@c-po
Copy link
Member

c-po commented Sep 20, 2024

Please add a smoketest validating this szenario. It should fail before this commit and succeed with this fix. Other then that it looks good to me.

@c-po c-po enabled auto-merge September 20, 2024 20:32
@c-po c-po merged commit 26a9203 into vyos:current Sep 24, 2024
14 of 17 checks passed
@dmbaturin
Copy link
Member

@Mergifyio backport circinus

Copy link
Contributor

mergify bot commented Sep 24, 2024

backport circinus

✅ Backports have been created

dmbaturin added a commit that referenced this pull request Sep 26, 2024
bridge: T6675: VXLAN Interface configuration lost due to improper bridge detachment (backport #4086)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants