tun_sip and tun_dip are displayed conversely

Bug #1522213 reported by Daisuke Nakajima
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Kumar Harsh

Bug Description

tun_sip and tun_dip IP address are displayed conversely.
        <tun_sip type="string" identifier="11">4.50.84.10</tun_sip>
        <tun_dip type="string" identifier="12">71.51.84.10</tun_dip>

root@console:~# curl http://172.27.113.205:8085/Snh_KNHReq?x=18 | xmllint --format -
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 958 100 958 0 0 73743 0 --:--:-- --:--:-- --:--:-- 79833
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/universal_parse.xsl"?>
<KNHResp type="sandesh">
  <nh_list type="list" identifier="1">
    <list type="struct" size="1">
      <KNHInfo>
        <id type="i32" identifier="1">18</id>
        <type type="string" identifier="2">TUNNEL</type>
        <family type="string" identifier="3">AF_INET</family>
        <rid type="i32" identifier="4">0</rid>
        <vrf type="i32" identifier="5" link="KRouteReq">0</vrf>
        <flags type="string" identifier="6">VALID </flags>
        <ref_cnt type="i32" identifier="7">4002</ref_cnt>
        <encap_family type="string" identifier="8">INVALID</encap_family>
        <encap_oif_id type="i32" identifier="9" link="KInterfaceReq">0</encap_oif_id>
        <encap_len type="i32" identifier="10">14</encap_len>
        <tun_sip type="string" identifier="11">4.50.84.10</tun_sip>
        <tun_dip type="string" identifier="12">71.51.84.10</tun_dip>
        <encap type="string" identifier="15">2c6bf5c92dc1a0369f7488d80800</encap>
      </KNHInfo>
    </list>
  </nh_list>
  <more type="bool" identifier="0">false</more>
</KNHResp>

Tags: vrouter
information type: Proprietary → Public
tags: added: vrouter
Changed in juniperopenstack:
assignee: nobody → Kumar Harsh (hkumar)
importance: Undecided → Medium
milestone: none → r3.0-fcs
summary: - tun_sip and tum_dip are displayed conversely
+ tun_sip and tun_dip are displayed conversely
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/15647
Submitter: Kumar Harsh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/15647
Committed: http://github.org/Juniper/contrail-controller/commit/977c51119a2af7ec41244e6e431e2d7623f67ce2
Submitter: Zuul
Branch: master

commit 977c51119a2af7ec41244e6e431e2d7623f67ce2
Author: harsh <email address hidden>
Date: Mon Dec 7 17:45:21 2015 +0530

tun_sip and tun_dip are displayed conversely
Update tun_sip in network byte order

Closes-Bug: #1522213

Change-Id: I4371d8c842c8480ab2a4ad94bb5ec85908f57e8b

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.