Revision 57b5f922 ncclient/operations/edit.py

b/ncclient/operations/edit.py
14 14

  
15 15
from copy import deepcopy
16 16

  
17
from ncclient import content
17
from ncclient import xml_
18 18

  
19 19
from rpc import RPC
20 20

  
......
23 23
import logging
24 24
logger = logging.getLogger('ncclient.operations.edit')
25 25

  
26

  
27

  
28 26
"Operations related to changing device configuration"
29 27

  
30 28
class EditConfig(RPC):
......
76 74
                'tag': 'default-operation',
77 75
                'text': default_operation
78 76
                })
79
        subtree.append(content.validated_element(config, ('config', content.qualify('config'))))
77
        subtree.append(xml_.validated_element(config, ('config', xml_.qualify('config'))))
80 78
        return self._request(spec)
81 79

  
82 80
class DeleteConfig(RPC):
......
142 140
        """
143 141
        spec = deepcopy(Validate.SPEC)
144 142
        try:
145
            src = content.validated_element(source, ('config', content.qualify('config')))
143
            src = markup.validated_element(source, ('config', markup.qualify('config')))
146 144
        except Exception as e:
147 145
            logger.debug(e)
148 146
            src = util.store_or_url('source', source, self._assert)

Also available in: Unified diff