<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:08 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-1283] Unable to configure BGP peer-role through RESTCONF</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1283</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;This is basically what &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1281&quot; title=&quot;Unable to configure a BGP peer through RESTCONF&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1281&quot;&gt;&lt;del&gt;CONTROLLER-1281&lt;/del&gt;&lt;/a&gt; wanted to be.&lt;/p&gt;

&lt;p&gt;Any attempt to add a BGP peer (with peer-type specified) through RESTCONF will be rejected.&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1. ODL_ROOT=&amp;lt;where_yourODL_installation_lives&amp;gt;&lt;br/&gt;
2. Boot ODL.&lt;br/&gt;
3. Install features &quot;odl-restconf&quot;, &quot;odl-bgppcep-bgp-all&quot; and &quot;odl-netconf-connector-all&quot;.&lt;br/&gt;
4. Wait for ODL to fully load (run &quot;top&quot; in another console and wait until CPU usage of the massive Java process stays below 5%).&lt;br/&gt;
5. curl -v -u &apos;admin:admin&apos; -X POST -H &quot;Content-Type:application/xml&quot; -d &apos;&amp;lt;module xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config&quot;&amp;gt;&lt;br/&gt;
 &amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;x:bgp-peer&amp;lt;/type&amp;gt;&lt;br/&gt;
 &amp;lt;name&amp;gt;example-bgp-peer&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;host xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;192.0.2.1&amp;lt;/host&amp;gt;&lt;br/&gt;
 &amp;lt;holdtimer xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;180&amp;lt;/holdtimer&amp;gt;&lt;br/&gt;
  &amp;lt;peer-role xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;Ebgp&amp;lt;/peer-role&amp;gt;&lt;br/&gt;
 &amp;lt;rib xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg&quot;&amp;gt;x:rib&amp;lt;/type&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;example-bgp-rib&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;/rib&amp;gt;&lt;br/&gt;
 &amp;lt;peer-registry xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt; &lt;br/&gt;
  &amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;x:bgp-peer-registry&amp;lt;/type&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;global-bgp-peer-registry&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;/peer-registry&amp;gt;&lt;br/&gt;
 &amp;lt;advertized-table xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;x:bgp-table-type&amp;lt;/type&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;ipv4-unicast&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;/advertized-table&amp;gt;&lt;br/&gt;
 &amp;lt;advertized-table xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;x:bgp-table-type&amp;lt;/type&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;ipv6-unicast&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;/advertized-table&amp;gt;&lt;br/&gt;
 &amp;lt;advertized-table xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;x:bgp-table-type&amp;lt;/type&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;linkstate&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;/advertized-table&amp;gt;&lt;br/&gt;
&amp;lt;/module&amp;gt;&apos; 127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules&lt;/p&gt;

&lt;p&gt;which leads to this response (code 400):&lt;br/&gt;
{&quot;errors&quot;:{&quot;error&quot;:[&lt;/p&gt;
{&quot;error-type&quot;:&quot;protocol&quot;,&quot;error-tag&quot;:&quot;malformed-message&quot;,&quot;error-message&quot;:&quot;Error parsing input: Invalid value &apos;Ebgp&apos; for enum type. Allowed values are: [ebgp, ibgp, rr-client]&quot;}
&lt;p&gt;]}}&lt;/p&gt;

&lt;p&gt;6. Replacing &quot;Ebgp&quot; with &quot;ebgp&quot; in the curl data leads to another response (code 500):&lt;br/&gt;
{&quot;errors&quot;:{&quot;error&quot;:[&lt;/p&gt;
{&quot;error-type&quot;:&quot;application&quot;,&quot;error-tag&quot;:&quot;operation-failed&quot;,&quot;error-message&quot;:&quot;Error creating data&quot;}
&lt;p&gt;]}}&lt;/p&gt;

&lt;p&gt;7. Neither POST generates anything in karaf.log, which is itself a minor bug.&lt;/p&gt;

&lt;p&gt;Based on discussion in &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1281&quot; title=&quot;Unable to configure a BGP peer through RESTCONF&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1281&quot;&gt;&lt;del&gt;CONTROLLER-1281&lt;/del&gt;&lt;/a&gt; setting this bug to depend on &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1050&quot; title=&quot;Proper support for ENUMs in Netconf northbound&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1050&quot;&gt;&lt;del&gt;CONTROLLER-1050&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Change in BGP (to not use leafs of enum type) would fix this bug too.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25837">CONTROLLER-1283</key>
            <summary>Unable to configure BGP peer-role through 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="mmarsale@cisco.com">Maros Marsalek</assignee>
                                    <reporter username="vrpolak">Vratko Polak</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Apr 2015 13:12:51 +0000</created>
                <updated>Tue, 2 Jun 2015 11:22:25 +0000</updated>
                            <resolved>Tue, 2 Jun 2015 11:22:25 +0000</resolved>
                                    <version>Post-Helium</version>
                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="50520" author="mmarsale@cisco.com" created="Tue, 28 Apr 2015 17:02:18 +0000"  >&lt;p&gt;This is a symptom of 2453, thats correct. The bug prevents reading/writing enum leaves for configuration over RESTCONF due to different mapping of enum values in RESTCONF and NETCONF-&amp;gt;CONFIG.&lt;/p&gt;</comment>
                            <comment id="50521" author="mmarsale@cisco.com" created="Tue, 26 May 2015 07:44:57 +0000"  >&lt;p&gt;Fixes have been merged into stable/lithium&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="25604">CONTROLLER-1050</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>3077</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=3077]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10361"><![CDATA[Lithium-RC0]]></customfieldvalue>

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

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