Committed by
Gerrit Code Review
[ONOS] code fix
Change-Id: Ibc96a92f552fb530b5a61019bdf6612d64bee4c5
Showing
1 changed file
with
9 additions
and
4 deletions
... | @@ -28,6 +28,8 @@ import org.onosproject.bgpio.types.LocalPref; | ... | @@ -28,6 +28,8 @@ import org.onosproject.bgpio.types.LocalPref; |
28 | import org.onosproject.bgpio.types.Med; | 28 | import org.onosproject.bgpio.types.Med; |
29 | import org.onosproject.bgpio.types.NextHop; | 29 | import org.onosproject.bgpio.types.NextHop; |
30 | import org.onosproject.bgpio.types.Origin; | 30 | import org.onosproject.bgpio.types.Origin; |
31 | +import org.onosproject.bgpio.types.MpReachNlri; | ||
32 | +import org.onosproject.bgpio.types.MpUnReachNlri; | ||
31 | import org.onosproject.bgpio.util.UnSupportedAttribute; | 33 | import org.onosproject.bgpio.util.UnSupportedAttribute; |
32 | import org.onosproject.bgpio.util.Validation; | 34 | import org.onosproject.bgpio.util.Validation; |
33 | import org.slf4j.Logger; | 35 | import org.slf4j.Logger; |
... | @@ -127,11 +129,14 @@ public class BgpPathAttributes { | ... | @@ -127,11 +129,14 @@ public class BgpPathAttributes { |
127 | case LocalPref.LOCAL_PREF_TYPE: | 129 | case LocalPref.LOCAL_PREF_TYPE: |
128 | pathAttribute = LocalPref.read(cb); | 130 | pathAttribute = LocalPref.read(cb); |
129 | break; | 131 | break; |
130 | - case MPREACHNLRI_TYPE: | 132 | + case MpReachNlri.MPREACHNLRI_TYPE: |
131 | - //TODO: To be merged later | 133 | + pathAttribute = MpReachNlri.read(cb); |
134 | + isMpReach = ((MpReachNlri) pathAttribute).isMpReachNlriSet(); | ||
132 | break; | 135 | break; |
133 | - case MPUNREACHNLRI_TYPE: | 136 | + case MpUnReachNlri.MPUNREACHNLRI_TYPE: |
134 | - //TODO: To be merged later | 137 | + pathAttribute = MpUnReachNlri.read(cb); |
138 | + isMpUnReach = ((MpUnReachNlri) pathAttribute) | ||
139 | + .isMpUnReachNlriSet(); | ||
135 | break; | 140 | break; |
136 | case LINK_STATE_ATTRIBUTE_TYPE: | 141 | case LINK_STATE_ATTRIBUTE_TYPE: |
137 | //TODO: To be merged later | 142 | //TODO: To be merged later | ... | ... |
-
Please register or login to post a comment