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

Fixes #1043 Update arista_eos_show_interfaces_description.textfsm #1044

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

scetron
Copy link
Contributor

@scetron scetron commented Dec 15, 2021

Update choices for Protocol to include 'notpresent' option.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT

arista_eos_show_interfaces_description.textfsm

SUMMARY

Adds a protocol option to the capture variable for protocols to avoid hitting the TextFSM error.

Before:

State Error raised. Rule Line: 17. Input Line: Et1                            down           notpresent         

After

[
  {
    "PORT": "Et1",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et2",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et3",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "PTP-DCS-7060-2"
  },
  {
    "PORT": "Et4",
    "STATUS": "down",
    "PROTOCOL": "down",
    "DESCRIP": ""
  },
  {
    "PORT": "Et5",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et6",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et7",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et8",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et9",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et10",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et11",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et12",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et13",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et14",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et15",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et16",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et17",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et18",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et19",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et20",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et21",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et22",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et23",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et24",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et25",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et26",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et27",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et28",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et29",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et30",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et31",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et32",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et33",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et34",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et35",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et36",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et37",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et38",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et39",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et40",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et41",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et42",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": ""
  },
  {
    "PORT": "Et43",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "1"
  },
  {
    "PORT": "Et44",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "2"
  },
  {
    "PORT": "Et45",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "Blade1"
  },
  {
    "PORT": "Et46",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "Blade2"
  },
  {
    "PORT": "Et47",
    "STATUS": "down",
    "PROTOCOL": "down",
    "DESCRIP": "Blade3"
  },
  {
    "PORT": "Et48",
    "STATUS": "down",
    "PROTOCOL": "down",
    "DESCRIP": "Blade4"
  },
  {
    "PORT": "Et49/1",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "DCS-7050-1"
  },
  {
    "PORT": "Et50/1",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "DCS-7050-2"
  },
  {
    "PORT": "Et51/1",
    "STATUS": "down",
    "PROTOCOL": "down",
    "DESCRIP": "Server"
  },
  {
    "PORT": "Et52/1",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": "DCS-7060-2"
  },
  {
    "PORT": "Et53/1",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": "Server"
  },
  {
    "PORT": "Et54/1",
    "STATUS": "down",
    "PROTOCOL": "notpresent",
    "DESCRIP": "Server"
  },
  {
    "PORT": "Ma1",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  },
  {
    "PORT": "Po1",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  },
  {
    "PORT": "Po2",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  },
  {
    "PORT": "Po3",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  },
  {
    "PORT": "Vl101",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  },
  {
    "PORT": "Vl102",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  },
  {
    "PORT": "Vl103",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  },
  {
    "PORT": "Vl4094",
    "STATUS": "up",
    "PROTOCOL": "up",
    "DESCRIP": ""
  }
]

Update choices for Protocol to include 'notpresent' option.
@jvanderaa jvanderaa merged commit b44850d into networktocode:master Dec 15, 2021
guillaume-mbali pushed a commit to unyc-io/ntc-templates that referenced this pull request Apr 12, 2023
…n.textfsm (networktocode#1044)

* Update arista_eos_show_interfaces_description.textfsm - Update choices for Protocol to include 'notpresent' option.
cppmonkey pushed a commit to cppmonkey/ntc-templates that referenced this pull request Oct 25, 2023
…n.textfsm (networktocode#1044)

* Update arista_eos_show_interfaces_description.textfsm - Update choices for Protocol to include 'notpresent' option.
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 this pull request may close these issues.

2 participants