physical device netconf based configuration

asked 2015-11-13 14:19:37 -0700

pratikgpatel gravatar image

updated 2015-11-13 14:29:53 -0700

I have successfully used the Lithium ODL distribution to mount and configure interfaces for the netopeer router as guided by various online tutorials. No issues!

As a next step, I tried to configure/modify interfaces on actual physical devices. Unfortunately it keeps failing after multiple tries.

For a Cisco Nexus 3K switch, I am using the generic netconf yang schema 'ietf-inet-types@2010-09-24.yang' . The device is connected successfully but I get the following error while trying to list the mount points (to eventually configure) of the switch: Request:

Response: <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-1"> <rpc-error> <error-type>rpc</error-type> <error-tag>missing-attribute</error-tag> <error-severity>error</error-severity> <error-message>Wrong document: namespaces not specified</error-message> <error-info> <bad-element>rpc</bad-element> </error-info> </rpc-error> </rpc-reply>

Next I tried a Juniper MX router. I downloaded the yang model from the router and stored in the cache/schema folder and listed it in the capabilities tag. Again the device was connected but I get the following error while trying to list the mount points (to eventually configure) of the router: request: <rpc message-id="m-0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get-config> <source> <running/> </source> <filter xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:type="subtree"/> </get-config> </rpc>

response: <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/14.2R4/junos" message-id="m-0"> <rpc-error> <error-type>protocol</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-message>syntax error, expecting <filter></error-message> <error-info> <bad-element>filter</bad-element> </error-info> </rpc-error> </rpc-reply>

For Juniper I learnt that the filter tag is incorrect and might need to modify it.

Does this mean we cannot have a single netconf south bound adapter to configure both cisco and juniper devices?

How do I modify the outgoing xml netconf request for debug?

Any examples/tutorials that guide through an actual physical device configuration using ODL and Netconf?

Thanks.

edit retag flag offensive close merge delete