sub-interface support for nxos module (#37392)

* nxos sub-interface support

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* update l3_interface test

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* Add integration test

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2018-04-25 12:45:56 +05:30 committed by GitHub
parent 9940b5db9c
commit 6db3f522c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 94 additions and 4 deletions

View file

@ -302,7 +302,7 @@ def normalize_interface(name):
def _get_number(name):
digits = ''
for char in name:
if char.isdigit() or char == '/':
if char.isdigit() or char in '/.':
digits += char
return digits