Avoid IllegalArgument on missing source 99/16999/2
authorMaros Marsalek <mmarsale@cisco.com>
Mon, 23 Mar 2015 13:43:48 +0000 (14:43 +0100)
committerMaros Marsalek <mmarsale@cisco.com>
Tue, 24 Mar 2015 09:55:56 +0000 (10:55 +0100)
commit51500b537a2d903acf2794091da8f79cbf082d50
treec693e15d1f5d424caa0b9ea8bea1a4cf3636ec0a
parent919145b1bf7d68e436efa9b22c174965005a174a
Avoid IllegalArgument on missing source

If source was not reported in hello, but was listed in ietf-netconf-monitoring
and it was unable to download it, sal-netconf-connector would fail to build
unavailable-capability from it and fail with IllegalArgumentException.

Look up the QNames for Sources properly.

Change-Id: Ic60135e3ba569fe52e6552f62f846d2aa9c8cc21
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfDevice.java
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/NetconfStateSchemas.java
opendaylight/md-sal/sal-netconf-connector/src/test/java/org/opendaylight/controller/sal/connect/netconf/NetconfDeviceTest.java