Add get_lcps() to enumerate all LCP names in the system

This commit is contained in:
Pim van Pelt
2022-03-22 13:04:56 +00:00
parent c18f04fa55
commit 7ae82c297c
3 changed files with 47 additions and 14 deletions

View File

@ -23,3 +23,20 @@ interfaces:
GigabitEthernet2/0/0:
description: "This interface has no sub-ints"
lcp: "e2"
GigabitEthernet2/0/1:
description: "This LCP also on gi2/0/2"
lcp: "twice"
GigabitEthernet2/0/2:
description: "This LCP also on gi2/0/1"
lcp: "twice"
GigabitEthernet2/0/3:
description: "This LCP also on loop0"
lcp: "thrice"
loopbacks:
loop0:
description: "This LCP also on gi2/0/3"
lcp: "thrice"