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

nxos_vrf_interface module error: "show run | section interface.Ethernet" #33227

Closed
victorock opened this issue Nov 23, 2017 · 2 comments · Fixed by #33249
Closed

nxos_vrf_interface module error: "show run | section interface.Ethernet" #33227

victorock opened this issue Nov 23, 2017 · 2 comments · Fixed by #33249
Assignees
Labels
affects_2.4 This issue/PR affects Ansible v2.4 bug This issue/PR relates to a bug. cisco Cisco technologies module This issue/PR relates to a module. networking Network category nxos Cisco NXOS community support:network This issue/PR relates to code supported by the Ansible Network Team.
Milestone

Comments

@victorock
Copy link
Contributor

victorock commented Nov 23, 2017

ISSUE TYPE
  • Bug Report
COMPONENT NAME

module: nxos_vrf_interface

ANSIBLE VERSION
ansible-playbook 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Using /etc/ansible/ansible.cfg as config file
CONFIGURATION

N/A

OS / ENVIRONMENT

NXOS: 7.0(3)I7(1)
ENV: Tower/AWX

SUMMARY

unable to configure vrf on interfaces

STEPS TO REPRODUCE
- name: "Ensure state as layer3 on underlay links"
  nxos_interface:
    interface: "ethernet 1/2"
    mode: layer3
    description: "Underlay by Ansible"
    admin_state: "up"
    state: "present"

- name: "Ensure state of vrf on underlay links"
  nxos_vrf_interface:
    interface: "ethernet 1/2"
    state: "present"
    vrf: "control"
EXPECTED RESULTS

Have interface state as:

interface ethernet 1/2
  vrf member control
  no switchport
  no shut
ACTUAL RESULTS

Failed because of validation of running-configuration adopting "| section":
show run | section interface.Ethernet 1/2

"show run | section interface.Ethernet 1/2\\r\\r\\n
^\\r\\n% Invalid command at '^' marker.\\r\\n\\rspine01# \", 
\"nxos_vrf_interface_underlay_link\": \"ethernet 1/2\"}\
POSSIBLE RESOLUTION

Use the command below to get the interface running-configuration in NXOS.

show run interface ethernet X/Y
@ansibot
Copy link
Contributor

ansibot commented Nov 23, 2017

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Nov 23, 2017

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 bug_report module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category nxos Cisco NXOS community support:network This issue/PR relates to code supported by the Ansible Network Team. labels Nov 23, 2017
@trishnaguha trishnaguha removed the needs_triage Needs a first human triage before being processed. label Nov 23, 2017
@trishnaguha trishnaguha self-assigned this Nov 23, 2017
victorock added a commit to victorock/ansible-netops that referenced this issue Nov 23, 2017
@trishnaguha trishnaguha added this to the 2.4.0 milestone Nov 24, 2017
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@dagwieers dagwieers added the cisco Cisco technologies label Feb 23, 2019
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 bug This issue/PR relates to a bug. cisco Cisco technologies module This issue/PR relates to a module. networking Network category nxos Cisco NXOS community support:network This issue/PR relates to code supported by the Ansible Network Team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants