Bind operation prefix to correct namespace 10/79610/20
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 17 Jan 2019 12:05:32 +0000 (13:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 7 Jul 2020 10:54:41 +0000 (12:54 +0200)
commit197acb99bed8c585e26091eafb761481533718a0
tree548fd08887ff95ec3289c1304fd018467272d5a8
parente8de1c930945535751e3ad0b8569d70ec91a6245
Bind operation prefix to correct namespace

During NetconfUtil.writeNormalizedNode() we failed
to set a prefix for the netconf operation leading to a warning.
Make sure we set the correct NamespaceContext and fallback
to setPrefix() in case the underlying DOM writer does not
support setNamespaceContext().

JIRA: NETCONF-603
Change-Id: Icff5e045c4e901bb53990177d448a1ea43952c62
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/AnyXmlNamespaceContext.java [new file with mode: 0644]
netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/NetconfUtil.java
netconf/netconf-util/src/test/java/org/opendaylight/netconf/util/NetconfUtilTest.java