Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device_interface module cannot resolve id of lag. #21

Closed
syyna opened this issue Mar 14, 2021 · 0 comments · Fixed by #22
Closed

device_interface module cannot resolve id of lag. #21

syyna opened this issue Mar 14, 2021 · 0 comments · Fixed by #22

Comments

@syyna
Copy link
Contributor

syyna commented Mar 14, 2021

ISSUE TYPE
  • Bug Report
SOFTWARE VERSIONS
pynautobot

1.0.1

Ansible:

ansible 2.10.6

Nautobot:

v1.0.0b2

Collection:

v1.03

SUMMARY

using the device_interface module to assign a lag will fail.

STEPS TO REPRODUCE
# assigning interfaces to LAGs for devices
    - name: Assigning interfaces to LAGs within Netbox
      networktocode.nautobot.device_interface:
         url: "{{ url }}"
         token: "{{ token }}"
         data:
           device: "test1"
           name: "Ethernet49"
          # description: "test2:et3"
           lag:
             name: "Port-Channel1"
         state: present
         validate_certs: false
EXPECTED RESULTS

Lag gets assigned to the specified interface on the specified device. The lag needs to first exist on a device of course.

ACTUAL RESULTS

"msg": "Could not resolve id of lag: {'name': 'Port-Channel1'}"

fatal: [localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "data": {
                "description": null,
                "device": "test1",
                "enabled": null,
                "lag": {
                    "name": "Port-Channel1"
                },
                "mac_address": null,
                "mgmt_only": null,
                "mode": null,
                "mtu": null,
                "name": "Ethernet49",
                "tagged_vlans": null,
                "tags": null,
                "type": null,
                "untagged_vlan": null
            },
            "query_params": null,
            "state": "present",
            "token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "update_vc_child": false,
            "url": "https://localhost",
            "validate_certs": false
        }
    },
    "msg": "Could not resolve id of lag: {'name': 'Port-Channel1'}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant