Revision a7cb58ce ncclient/operations/util.py
b/ncclient/operations/util.py | ||
---|---|---|
50 | 50 |
'subtree': criteria |
51 | 51 |
} |
52 | 52 |
else: |
53 |
rep = content.validated_element(spec, 'filter', 'type') |
|
53 |
rep = content.validated_element(spec, ['filter', content.qualify('filter')], |
|
54 |
attrs=[('type', content.qualify('type'))]) |
|
54 | 55 |
try: |
55 | 56 |
type = rep['type'] |
56 | 57 |
except KeyError: |
Also available in: Unified diff