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

Add ability to adjust mulitcast settings on a network bridge #729

Open
steven-ellis opened this issue Aug 22, 2024 · 3 comments
Open

Add ability to adjust mulitcast settings on a network bridge #729

steven-ellis opened this issue Aug 22, 2024 · 3 comments

Comments

@steven-ellis
Copy link

When creating a bridge you need to adjust some of the multicast settings for service discovery like ssdp to work correctly

nmcli connection modify br0 bridge.multicast-snooping on
nmcli connection modify br0 bridge.multicast-querier on

The YAML could look something like

        bridge:
           multicast-snooping: true
           multicast-querier: true
@liangwen12year
Copy link
Collaborator

liangwen12year commented Aug 30, 2024

The multicast settings on the network bridge are already supported in network_state variable.

Here is an example for specifying it:

  - name: Set the multicast settings using network_state
    vars:
      network_state:
        interfaces:
        - name: br0
          type: linux-bridge
          state: up
          bridge:
            options:
              multicast-querier: true
              multicast-snooping: true
    ansible.builtin.include_role:
      name: linux-system-roles.network

If you are interested in other multicast settings, you can take a look here, https://nmstate.io/devel/yaml_api.html#linux-bridge-interface.

@liangwen12year
Copy link
Collaborator

@steven-ellis ^^

@steven-ellis
Copy link
Author

Thanks @liangwen12year that worked. it would be useful to have an example for setting bridge options.

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

No branches or pull requests

2 participants