Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
We know parse subinterfaces based on the parent interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Jan 29, 2017
1 parent d4bc0f6 commit 60710e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions napalm_eos/openconfig_mappings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ interfaces:
_default: 1500
subinterfaces:
subinterface:
_block_capture: "(?P<block>interface (?P<key>Ethernet\\d+\\.\\d+)\n(?:.|\n)*?^!$)"
_parent_key: "interface (?P<parent>Ethernet\\d+)\\.\\d+"
_path: "interfaces.interface.get_element('{}').subinterfaces.subinterface.get_element('{}')"
_block_capture: "(?P<block>interface (?P<key>{parent_key}\\.\\d+)\\n(?:.|\\n)*?^!$)"
index:
_search: "napalm: not implemented"
_type: int
Expand Down

0 comments on commit 60710e9

Please sign in to comment.