michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

Be able to setup bond and bridge #129

Closed smutel closed 1 year ago

smutel commented 1 year ago

I would like to be able to setup bond and bridge but it's not possible actually.

Here is my yaml config file I would like to be able to use:

interfaces_bond_interfaces:
  - device: bond0
    bootproto: manual
    bond_mode: 802.3ad
    bond_miimon: 100
    bond_lacp_rate: 1
    bond_min_links: 1
    bond_xmit_hash_policy: layer3+4
    bond_slaves: [eno5, ens1f0]

interfaces_bridge_interfaces:
  - device: vmbr0
    type: bridge
    address: 192.168.56.147
    netmask: 255.255.255.0
    gateway: 192.168.56.1
    bootproto: static
    stp: "off"
    mtu: 1500
    ports: [bond0]
    fd: 0
    bridge-vlan-aware: "yes"
smutel commented 1 year ago

What do you think with this new option ?