Revision 6fde1b55
b/test.py | ||
---|---|---|
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 |
print m.copy_config(source='running', target='candidate') |
|
9 |
|
|
10 |
print reply |
Also available in: Unified diff