Statistics
| Branch: | Tag: | Revision:

root / test.py @ 28d42b28

History | View | Annotate | Download (264 Bytes)

1
from ncclient import manager
2

    
3
import logging
4
logging.basicConfig(level=logging.DEBUG)
5

    
6
with manager.connect('broccoli', 22, username='sbhushan') as m:
7
    with m.locked('candidate'):
8
        reply = m.copy_config(source='running', target='candidate')
9

    
10
print reply