Skip to content

[BUG]: Setting graceful_shutdown on an interface using sonic_lag_interfaces does not work. #612

@TafkaMax

Description

@TafkaMax

Bug Description

I cannot set graceful_shutdown on an interface: https://galaxy.ansible.com/ui/repo/published/dellemc/enterprise_sonic/content/module/sonic_lag_interfaces/

It says it is unchanged in config when running Ansible Check Mode. When I manually add no graceful-shutdown to an interface via sonic-cli it works.

            "fallback": true,
            "fast_rate": true,
            "graceful_shutdown": false,
            "members": {
                "interfaces": [
                    {
                        "member": "Ethernet24"
                    },
                    {
                        "member": "Ethernet28"
                    }
                ]
            },
            "mode": "lacp",
            "name": "PortChannel100",

Product Name

Dell Enteprise Sonic

Component or Module Name

httpapi

DellEMC Enterprise SONiC Ansible Collection Version

dellemc.enterprise_sonic 3.2.0

SONiC Software Version

4.5.1

Configuration

ANSIBLE_PIPELINING(/home/tansper/ansible/ansible.cfg) = True
CONFIG_FILE() = /home/tansper/ansible/ansible.cfg
DEFAULT_HOST_LIST(/home/tansper/ansible/ansible.cfg) = ['/home/tansper/ansible/hosts']
DEFAULT_LOOKUP_PLUGIN_PATH(/home/tansper/ansible/ansible.cfg) = ['/home/tansper/ansible/plugins/lookup']
DEFAULT_VAULT_PASSWORD_FILE(/home/tansper/ansible/ansible.cfg) = /home/tansper/ansible/scripts/vault_password.sh
EDITOR(env: EDITOR) = vim
HOST_KEY_CHECKING(/home/tansper/ansible/ansible.cfg) = False
PAGER(env: PAGER) = less
PERSISTENT_COMMAND_TIMEOUT(/home/tansper/ansible/ansible.cfg) = 180
PERSISTENT_CONNECT_RETRY_TIMEOUT(/home/tansper/ansible/ansible.cfg) = 30
PERSISTENT_CONNECT_TIMEOUT(/home/tansper/ansible/ansible.cfg) = 180

Steps to Reproduce

Use sonic_lag_interfaces module and set graceful_shutdown option to false.

Expected Behavior

It actually sets it to no graceful-shutdown

Actual Behavior

It doesn't change it.

interface PortChannel100 mode active
 switchport trunk allowed Vlan X,Y,Z
 fast_rate
 fallback
 no shutdown

Logs

none

Screenshots

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions