openvswitch.openvswitch icon indicating copy to clipboard operation
openvswitch.openvswitch copied to clipboard

Bridge module 'set' parameter to accept a list of strings

Open celyn-sdn opened this issue 2 years ago • 0 comments
trafficstars

SUMMARY

In the bridge module, the set parameter accepts a string but it would be better if it accepted a list of strings because it can be used to configure several things like the datapath-id, the OpenFlow protocol version, etc..

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

openvswitch.openvswitch_bridge.py

ADDITIONAL INFORMATION

It would enable the user to set the bridges up more completely than is currently permitted in a single loop.

- hosts: ovs
  vars:
    bridges:
      - bridge: ovs-br1
        set: 
          - Bridge ovs-br1 other-config:datapath-id=0000000000000001
          - Bridge ovs-br1 protocols=OpenFlow13
      - bridge: ovs-br2
        set: 
          - Bridge ovs-br2 other-config:datapath-id=0000000000000002
          - Bridge ovs-br2 protocols=OpenFlow13

  - openvswitch.openvswitch.openvswitch_bridge:
      bridge: '{{ item.bridge }}'
      set: '{{ item.set }}'
    become: true
    loop: "{{ bridges }}"

celyn-sdn avatar May 09 '23 13:05 celyn-sdn