| 1 |
from .default import DefaultDeviceHandler |
| 2 |
from ncclient.xml_ import BASE_NS_1_0 |
| 3 |
|
| 4 |
|
| 5 |
class CienaDeviceHandler(DefaultDeviceHandler): |
| 6 |
""" |
| 7 |
Ciena handler for device specific information. |
| 8 |
""" |
| 9 |
|
| 10 |
def __init__(self, device_params, ignore_errors=None): |
| 11 |
super(CienaDeviceHandler, self).__init__(device_params, ignore_errors) |
| 12 |
|
| 13 |
def get_xml_base_namespace_dict(self): |
| 14 |
return {None: BASE_NS_1_0} |
| 15 |
|
| 16 |
def get_xml_extra_prefix_kwargs(self): |
| 17 |
d = {} |
| 18 |
d.update(self.get_xml_base_namespace_dict()) |
| 19 |
return {"nsmap": d} |