Developer

 View Only
last person joined: 7 days ago 

Expand all | Collapse all

Ansible arubaoss - is_voice_enabled not working in playbook

This thread has been viewed 9 times
  • 1.  Ansible arubaoss - is_voice_enabled not working in playbook

    Posted Dec 27, 2022 05:14 PM
    I have been breaking my head on the following issue I'm experiencing in setting a vlan with ansible on a 2930 switch. I'm trying to set the is_voice_enabled tag for the below vlan. However, the playbook is running with the error below. If I comment the "is_voice_enabled" line or put "is_voice_enabled: false" the playbook runs fine but the voice tag is not set to the VLAN. 
    Anyone any suggestions? 

    # Create VOICE VLAN30
    - name: Create VLAN 30
    arubaoss_vlan:
    vlan_id: 30
    name: "Voice"
    config: "create"
    command: config_vlan
    is_voice_enabled: true


    TASK [Create VLAN 30] **************************************************************************************************************************************************
    fatal: [switch1]: FAILED! => {"body": "{\"message\":\"DHCP relay should be un-configured(helper address)on this VLAN to configure DHCP server.\"}", "changed": false, "connection": "close", "content-type": "application/json", "msg": "HTTP Error 400: Bad Request", "requestid": "", "server": "eHTTP v2.0", "status": 400, "transfer-encoding": "chunked", "url": "http://xxxxx:80/rest/v8.0/vlans/30"}


  • 2.  RE: Ansible arubaoss - is_voice_enabled not working in playbook

    MVP GURU
    Posted Dec 28, 2022 08:56 AM
    What the actual configuration on the switch ?

    do you have check log switch ?

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------



  • 3.  RE: Ansible arubaoss - is_voice_enabled not working in playbook

    Posted Dec 28, 2022 03:38 PM
    This is the running config of the VLAN
    vlan 30
    name "Voice"
    untagged 1/16-1/30
    tagged 1/3
    no ip address
    ip helper-address 192.168.2.30
    exit


  • 4.  RE: Ansible arubaoss - is_voice_enabled not working in playbook

    MVP GURU
    Posted Dec 29, 2022 03:18 AM
    if you remove the helper-address (it don't work.. there is no ip address on the interface)

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------