Commit 9791f595 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Cisco.IOS.get_inventory. Use matchers instead match.

parent 09d864c5
......@@ -504,13 +504,13 @@ class Script(BaseScript):
return "Unknown | Transceiver | %s" %
return None
def execute_2960(self):
objects = self.get_inv()
objects += self.get_transceivers("show int status")
return objects
def execute_others(self):
def execute_cli(self):
if self.is_c2960:
return self.execute_2960()
objects = self.get_inv()
return objects
......@@ -65,6 +65,7 @@ class Profile(BaseProfile):
"is_cat4000": {"platform": {"$regex": r"^WS-C4[059]\d\d"}},
"is_small_cat": {"version": {"$regex": r"SE|EA|EZ|FX|EX|EY|E|WC"}},
"is_5350": {"platform": {"$regex": r"^5350"}},
"is_c2960": {"platform": {"$regex": r"C2960"}},
"is_ubr": {"version": {"$regex": r"BC"}},
"is_vlan_switch": {
"platform": {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment