aos-switch-ansible-collection icon indicating copy to clipboard operation
aos-switch-ansible-collection copied to clipboard

no module or option to create trunk groups?

Open Bernhardvleen opened this issue 2 years ago • 11 comments

Hi, I cannot find any way to create trunk groups other then running the arubaoss_config module and shoot lines via ssh - is that maybe a restriction that comes from the API?

It would be really useful to use Ansible for this action, to be able to have change management possibilities for this as well.

many thanks in advance for your kind answer!

Bernhardvleen avatar Aug 30 '22 14:08 Bernhardvleen

You talk about set port on trunk (LACP ?) ?

after a quick look on ansible module, not look possible

you can look on REST API ref if there is API available

https://asp.arubanetworks.com/downloads/software/RmlsZTpiNmIwZDM1YS05OWFlLTExZTktODk5MS1kZmIzMTNkZWE5N2I%3D

alagoutte avatar Aug 30 '22 19:08 alagoutte

yes, it is about something like this.

trunk 49-50 trk1 lacp
trunk 51-52 trk2 lacp

thanks for the link!

Bernhardvleen avatar Aug 31 '22 07:08 Bernhardvleen

yes, it is about something like this.

trunk 49-50 trk1 lacp
trunk 51-52 trk2 lacp

thanks for the link!

Yes, not yet available on this ansible module (or use config module or PowerArubaSW ;-))

alagoutte avatar Aug 31 '22 19:08 alagoutte

is there an estimate if / when this could be added? (for CX I can not see a module for Trunk definition as well)

Bernhardvleen avatar Sep 01 '22 13:09 Bernhardvleen

is there an estimate if / when this could be added? (for CX I can not see a module for Trunk definition as well)

Good question... for @tchiapuziowong @karthikeyan-dhandapani (it is lag for CX)

alagoutte avatar Sep 01 '22 17:09 alagoutte

looking into trunk for aos-switch implementation and for AOS-CX the lag interface module is being developed and will be released in an upcoming version

tchiapuziowong avatar Sep 01 '22 17:09 tchiapuziowong

happy to hear that, thanks for this information!

Bernhardvleen avatar Sep 05 '22 08:09 Bernhardvleen

Hello all! After speaking with development we don't have any REST API support on the switch to configure this feature. At this time we're not implementing any new features within the switch code so there's no planned development to support this. Alternatively you can use our SSH module arubaoss_config to execute CLI commands to configure:

- hosts: all
  gather_facts: False
  collections:
    - arubanetworks.aos_switch
  vars:
    ansible_connection: network_cli
  tasks:
    - name: Configure Trunk
      arubaoss_config:
        lines:
          - trunk 14-16 trk1 lacp
        match: line

tchiapuziowong avatar Oct 31 '22 20:10 tchiapuziowong

Hello all! After speaking with development we don't have any REST API support on the switch to configure this feature. At this time we're not implementing any new features within the switch code so there's no planned development to support this. Alternatively you can use our SSH module arubaoss_config to execute CLI commands to configure:

- hosts: all
  gather_facts: False
  collections:
    - arubanetworks.aos_switch
  vars:
    ansible_connection: network_cli
  tasks:
    - name: Configure Trunk
      arubaoss_config:
        lines:
          - trunk 14-16 trk1 lacp
        match: line

@tchiapuziowong, there is an API call for trunk (and also for LACP), i using on my PowerArubaSW Module...

alagoutte avatar Nov 01 '22 19:11 alagoutte

Hm okay they may have misread the ask - let me check back in

tchiapuziowong avatar Nov 01 '22 20:11 tchiapuziowong

thank you for the update and the example!

Bernhardvleen avatar Nov 10 '22 16:11 Bernhardvleen