Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4676

[BGP-RPD]Local Preference value is not working properly for BGP RPD

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
    • Environment:

      ONOS Build

    • Story Points:
      3

      Description

      Local Preference values are not working properly for Local Preference more than 127, ONOS should allow preference value more than 127

      ONOS Terminal

      onos> Create flow

      CONTAINER: ExtFlowContainer{container=[DefaultExtKeyName

      {keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}], deviceId=l3::routinguniverse=0:asn=100:domainid=16843009:isoid=1111.1111.1111}
      ADD


      ************** EXTENSION:ExtFlowContainer{container=[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}

      , DefaultExtPrefix

      {prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}], deviceId=l3::routinguniverse=0:asn=100:domainid=16843009:isoid=1111.1111.1111}

      ************** String value in provider[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}

      , DefaultExtTrafficAction

      {terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}]
      All the parsing is ok sending it out
      onos>

      RT1

      [~RTA-bgp]display bgp flow routing-table

      BGP Local router ID is 172.16.0.116
      Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
      h - history, i - internal, s - suppressed, S - Stale
      Origin : i - IGP, e - EGP, ? - incomplete
      RPKI validation codes: V - valid, I - invalid, N - not-found


      Total Number of Routes: 1
      * > ReIndex : 65
      Dissemination Rules:
      Destination IP : 155.155.155.155/32
      Flow RPD Apply Type : local-preference
      Flow RPD Apply Integer : 100
      Flow RPD Local-IP : 40.1.1.2
      Flow RPD Remote-IP : 40.1.1.1
      MED : 0 PrefVal : 0
      LocalPref: 100
      Path/Ogn : i
      [~RTA-bgp]


      ONOS Terminal

      onos> Create flow

      CONTAINER: ExtFlowContainer{container=[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}

      , DefaultExtWideCommunityInt

      {value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[1000], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}], deviceId=l3::routinguniverse=0:asn=100:domainid=16843009:isoid=1111.1111.1111}
      ADD


      ************** EXTENSION:ExtFlowContainer{container=[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}

      , DefaultExtWideCommunityInt

      {value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[1000], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}], deviceId=l3::routinguniverse=0:asn=100:domainid=16843009:isoid=1111.1111.1111}

      ************** String value in provider[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}

      , DefaultExtWideCommunityInt

      {value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[1000], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}]
      All the parsing is ok sending it out
      onos>


      ONOS Terminal

      onos> Create flow

      CONTAINER: ExtFlowContainer{container=[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}

      , DefaultExtWideCommunityInt

      {value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[21000], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}], deviceId=l3::routinguniverse=0:asn=100:domainid=16843009:isoid=1111.1111.1111}
      ADD


      ************** EXTENSION:ExtFlowContainer{container=[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}

      , DefaultExtWideCommunityInt

      {value=[100], type=WIDE_COMM_LOCAL_AS}, DefaultExtWideCommunityInt{value=[21000], type=WIDE_COMM_PARAMETER}, DefaultExtTarget{localSpeaker=DefaultExtPrefix{prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}, remoteSpeaker=DefaultExtPrefix{prefix=[40.1.1.1/32], type=IPV4_DST_PFX}, type=WIDE_COMM_TARGET}], deviceId=l3::routinguniverse=0:asn=100:domainid=16843009:isoid=1111.1111.1111}

      ************** String value in provider[DefaultExtKeyName{keyName=abcc1, type=EXT_FLOW_RULE_KEY}, DefaultExtPrefix{prefix=[155.155.155.155/32], type=IPV4_DST_PFX}, DefaultExtTrafficAction{terminal=true, sample=true, rpd=true, type=TRAFFIC_ACTION}, DefaultExtWideCommunityInt{value=[1], type=WIDE_COMM_FLAGS}, DefaultExtWideCommunityInt{value=[5], type=WIDE_COMM_HOP_COUNT}, DefaultExtWideCommunityInt{value=[20], type=WIDE_COMM_COMMUNITY}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_CONTEXT_AS}, DefaultExtWideCommunityInt{value=[100], type=WIDE_COMM_LOCAL_AS}

      , DefaultExtWideCommunityInt

      {value=[21000], type=WIDE_COMM_PARAMETER}

      , DefaultExtTarget{localSpeaker=DefaultExtPrefix

      {prefix=[40.1.1.2/32], type=IPV4_SRC_PFX}

      , remoteSpeaker=DefaultExtPrefix

      {prefix=[40.1.1.1/32], type=IPV4_DST_PFX}

      , type=WIDE_COMM_TARGET}]
      All the parsing is ok sending it out

      for more information please check my mail

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            saravanaonos Saravanakumar S
            Reporter:
            saravanaonos Saravanakumar S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: