Revision 408abf6d ncclient/content.py

b/ncclient/content.py
31 31
BASE_NS = 'urn:ietf:params:xml:ns:netconf:base:1.0'
32 32
#: ... and this is BASE_NS according to Cisco devices tested
33 33
CISCO_BS = 'urn:ietf:params:netconf:base:1.0'
34
#: namespace for Tail-f data model
35
TAILF_AAA_1_1 = 'http://tail-f.com/ns/aaa/1.1'
36
TAILF_EXECD_1_1 = 'http://tail-f.com/ns/execd/1.1'
34 37

  
35 38
try:
36 39
    register_namespace = ET.register_namespace
......
42 45

  
43 46
# we'd like BASE_NS to be prefixed as "netconf"
44 47
register_namespace('netconf', BASE_NS)
48
register_namespace('aaa', TAILF_AAA_1_1)
49
register_namespace('execd', TAILF_EXECD_1_1)
45 50

  
46 51
qualify = lambda tag, ns=BASE_NS: tag if ns is None else '{%s}%s' % (ns, tag)
47 52

  
48
# deprecated
53
#: Deprecated
49 54
multiqualify = lambda tag, nslist=(BASE_NS, CISCO_BS): [qualify(tag, ns) for ns in nslist]
50 55

  
51 56
unqualify = lambda tag: tag[tag.rfind('}')+1:]

Also available in: Unified diff