|
When using the add-mapping RPC to register type 10 LCAFs, the handler methods reads hops in correct order. However, the MappingDataListener, receives the hops in reverse order! See debug output, lower: the order of 192.168.1.1 and 10.10.10.10 is reversed. Does writing to mdsal datastore invert the order?
LfmMappingDatabaseProviderRpc | 344 - org.opendaylight.lispflowmapping.mappingservice.implementation - 1.2.0.SNAPSHOT | RPC received to add the following mapping: AddMappingInput [_action=NoAction, _lispAddressContainer=LispAddressContainer [_address=LcafSourceDest [_lcafSourceDestAddr=LcafSourceDestAddr [_afi=16387, _dstAddress=DstAddress [_primitiveAddress=Ipv4 [_ipv4Address=Ipv4Address [_afi=1, _ipv4Address=Ipv4Address [_value=192.168.2.0], augmentation=[]], augmentation=[]], augmentation=[]], _dstMaskLength=24, _lcafType=12, _srcAddress=SrcAddress [_primitiveAddress=Ipv4 [_ipv4Address=Ipv4Address [_afi=1, _ipv4Address=Ipv4Address [_value=192.168.1.0], augmentation=[]], augmentation=[]], augmentation=[]], _srcMaskLength=24, augmentation=[]], augmentation=[]], augmentation=[]], _locatorRecord=[LocatorRecord [_key=LocatorRecordKey [_name=SFC_LISP], _lispAddressContainer=LispAddressContainer [_address=LcafTrafficEngineering [_lcafTrafficEngineeringAddr=LcafTrafficEngineeringAddr [_afi=16387, _hops=[Hops [_hop=Hop [_primitiveAddress=Ipv4 [_ipv4Address=Ipv4Address [_afi=1, _ipv4Address=Ipv4Address [_value=192.168.1.1], augmentation=[]], augmentation=[]], augmentation=[]], _key=HopsKey [_name=Hop 0], _name=Hop 0, _lookup=true, _rLOCProbe=false, _strict=true, augmentation=[]], Hops [_hop=Hop [_primitiveAddress=Ipv4 [_ipv4Address=Ipv4Address [_afi=1, _ipv4Address=Ipv4Address [_value=10.10.10.10], augmentation=[]], augmentation=[]], augmentation=[]], _key=HopsKey [_name=Hop 1], _name=Hop 1, _lookup=true, _rLOCProbe=false, _strict=true, augmentation=[]]], _lcafType=10, augmentation=[]], augmentation=[]], augmentation=[]], _multicastPriority=1, _multicastWeight=1, _name=SFC_LISP, _priority=1, _weight=1, _localLocator=false, _rlocProbed=false, _routed=true, augmentation=[]]], _mapVersion=0, _maskLength=0, _recordTtl=1440, _authoritative=true, augmentation=[]]
MappingDataListener | 344 - org.opendaylight.lispflowmapping.mappingservice.implementation - 1.2.0.SNAPSHOT | Value: Mapping{getAction=NoAction, getEid=Uri [_value=SrcDst:192.168.1.0-24:192.168.2.0-24], getLispAddressContainer=LispAddressContainer{getAddress=LcafSourceDest{getLcafSourceDestAddr=LcafSourceDestAddr{getAfi=16387, getDstAddress=DstAddress{getPrimitiveAddress=Ipv4{getIpv4Address=Ipv4Address{getAfi=1, getIpv4Address=Ipv4Address [_value=192.168.2.0], augmentations={}}, augmentations={}}, augmentations={}}, getDstMaskLength=24, getLcafType=12, getSrcAddress=SrcAddress{getPrimitiveAddress=Ipv4{getIpv4Address=Ipv4Address{getAfi=1, getIpv4Address=Ipv4Address [_value=192.168.1.0], augmentations={}}, augmentations={}}, augmentations={}}, getSrcMaskLength=24, augmentations={}}, augmentations={}}, augmentations={}}, getLocatorRecord=[LocatorRecord{getLispAddressContainer=LispAddressContainer{getAddress=LcafTrafficEngineering{getLcafTrafficEngineeringAddr=LcafTrafficEngineeringAddr{getAfi=16387, getHops=[Hops{getHop=Hop{getPrimitiveAddress=Ipv4{getIpv4Address=Ipv4Address{getAfi=1, getIpv4Address=Ipv4Address [_value=10.10.10.10], augmentations={}}, augmentations={}}, augmentations={}}, getName=Hop 1, isLookup=true, isRLOCProbe=false, isStrict=true, augmentations={}}, Hops{getHop=Hop{getPrimitiveAddress=Ipv4{getIpv4Address=Ipv4Address{getAfi=1, getIpv4Address=Ipv4Address [_value=192.168.1.1], augmentations={}}, augmentations={}}, augmentations={}}, getName=Hop 0, isLookup=true, isRLOCProbe=false, isStrict=true, augmentations={}}], getLcafType=10, augmentations={}}, augmentations={}}, augmentations={}}, getMulticastPriority=1, getMulticastWeight=1, getName=SFC_LISP, getPriority=1, getWeight=1, isLocalLocator=false, isRlocProbed=false, isRouted=true, augmentations={}}], getMapVersion=0, getMaskLength=0, getOrigin=Northbound, getRecordTtl=1440, isAuthoritative=true, augmentations={}}
|