<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:30 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[CONTROLLER-224] Redundant data in RESTCONF</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-224</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I augment network-topology.yang :&lt;/p&gt;

&lt;p&gt;grouping topology-pcep-type {&lt;br/&gt;
 container topology-pcep &lt;/p&gt;
{
   presence &quot;indicates a PCEP-aware topology&quot;;
 }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;augment &quot;/nt:network-topology/nt:topology/nt:topology-types&quot; {&lt;br/&gt;
 uses topology-pcep-type;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Code to create the container:&lt;/p&gt;

&lt;p&gt;// Make sure the topology does not exist&lt;br/&gt;
final Object c = dataProvider.readOperationalData(topology);&lt;br/&gt;
Preconditions.checkArgument(c == null, &quot;Topology %s already exists&quot;, topology);&lt;/p&gt;

&lt;p&gt;// Now create the base topology&lt;br/&gt;
final TopologyKey k = InstanceIdentifier.keyOf(topology);&lt;br/&gt;
final DataModificationTransaction t = dataProvider.beginTransaction();&lt;br/&gt;
t.putOperationalData(topology, new TopologyBuilder().setKey(k).setTopologyId(k.getTopologyId()).setTopologyTypes(&lt;br/&gt;
new TopologyTypesBuilder().addAugmentation(TopologyTypes1.class, new TopologyTypes1Builder().setTopologyPcep(new TopologyPcepBuilder().build()).build()).build()).setNode(new ArrayList&amp;lt;Node&amp;gt;()).build());&lt;/p&gt;

&lt;p&gt;Futures.addCallback(JdkFutureAdapters.listenInPoolThread(t.commit()), new FutureCallback&amp;lt;RpcResult&amp;lt;TransactionStatus&amp;gt;&amp;gt;() {&lt;br/&gt;
 @Override&lt;br/&gt;
 public void onSuccess(final RpcResult&amp;lt;TransactionStatus&amp;gt; result) {&lt;br/&gt;
  LOG.trace(&quot;Topology {} created successfully&quot;, topology);&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt; @Override&lt;br/&gt;
 public void onFailure(final Throwable t) {&lt;br/&gt;
  LOG.error(&quot;Failed to create topology {}&quot;, topology);&lt;br/&gt;
 }&lt;br/&gt;
});&lt;/p&gt;

&lt;p&gt;The resulting xml shows two instances of pcep-topology with the same namespace:&lt;/p&gt;

&lt;p&gt;&amp;lt;topology xmlns=&quot;urn:TBD:params:xml:ns:yang:network-topology&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;topology-id&amp;gt;pcep-topology&amp;lt;/topology-id&amp;gt;&lt;br/&gt;
    &amp;lt;topology-types&amp;gt;&lt;br/&gt;
        &amp;lt;topology-pcep xmlns=&quot;urn:opendaylight:params:xml:ns:yang:topology:pcep&quot;/&amp;gt;&lt;br/&gt;
    &amp;lt;/topology-types&amp;gt;&lt;br/&gt;
    &amp;lt;topology-types&amp;gt;&lt;br/&gt;
        &amp;lt;topology-pcep xmlns=&quot;urn:opendaylight:params:xml:ns:yang:topology:pcep&quot;/&amp;gt;&lt;br/&gt;
    &amp;lt;/topology-types&amp;gt;&lt;/p&gt;

&lt;p&gt;In the code, there is a check for already existing topology and the log file, only shows one success LOG output:&lt;/p&gt;

&lt;p&gt;TRACE o.o.b.p.t.p.ServerSessionManager - Topology InstanceIdentifier [path=[org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NetworkTopology, org.opend&lt;br/&gt;
aylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology[key=TopologyKey [_topologyId=Uri &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=pcep-topology&amp;#93;&lt;/span&gt;]]]] created successfully&lt;/p&gt;

&lt;p&gt;Almost the same behaviour with example-linkstate-topology:&lt;/p&gt;

&lt;p&gt;&amp;lt;topology xmlns=&quot;urn:TBD:params:xml:ns:yang:network-topology&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;server-provided&amp;gt;true&amp;lt;/server-provided&amp;gt;&lt;br/&gt;
    &amp;lt;topology-id&amp;gt;example-linkstate-topology&amp;lt;/topology-id&amp;gt;&lt;br/&gt;
    &amp;lt;topology-types/&amp;gt;&lt;br/&gt;
    &amp;lt;topology-types/&amp;gt;&lt;/p&gt;

&lt;p&gt;2014-03-21 01:36:53.440 PDT &lt;span class=&quot;error&quot;&gt;&amp;#91;nioEventLoopGroup-5-6&amp;#93;&lt;/span&gt; DEBUG o.o.b.b.t.p.AbstractTopologyBuilder - Initiating topology builder from RIBImpl{} at InstanceIdentifier [path=[org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NetworkTopology, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology[key=TopologyKey [_topologyId=Uri &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=example-linkstate-topology&amp;#93;&lt;/span&gt;]]]]&lt;/p&gt;


&lt;p&gt;Not sure if RESTCONF issue, or the data is not correctly written/read to/from md-sal, but this did work maybe a week ago (first noticed 03/18).&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24778">CONTROLLER-224</key>
            <summary>Redundant data in RESTCONF</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="tony.tkacik@gmail.com">Tony Tkacik</assignee>
                                    <reporter username="dkutenicsova">Dana Kutenicsova</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Mar 2014 15:06:24 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:16 +0000</updated>
                            <resolved>Mon, 7 Apr 2014 13:13:41 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="24762">CONTROLLER-208</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>565</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=565]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02j2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>