ISIS node system id representation format changed.
Change-Id: I67095284e2efce55bdedb706784cc20e22e3b16f
Showing
1 changed file
with
3 additions
and
5 deletions
... | @@ -88,11 +88,9 @@ public final class BgpDpid { | ... | @@ -88,11 +88,9 @@ public final class BgpDpid { |
88 | */ | 88 | */ |
89 | private String isoNodeIdString(byte[] isoNodeId) { | 89 | private String isoNodeIdString(byte[] isoNodeId) { |
90 | if (isoNodeId != null) { | 90 | if (isoNodeId != null) { |
91 | - int p1 = (int) isoNodeId[0] << 8 | (int) isoNodeId[1]; | 91 | + return String.format("%02x%02x.%02x%02x.%02x%02x", isoNodeId[0], isoNodeId[1], |
92 | - int p2 = (int) isoNodeId[2] << 8 | (int) isoNodeId[3]; | 92 | + isoNodeId[2], isoNodeId[3], |
93 | - int p3 = (int) isoNodeId[4] << 8 | (int) isoNodeId[5]; | 93 | + isoNodeId[4], isoNodeId[5]); |
94 | - | ||
95 | - return String.format("%1$d.%2$d.%3$d", p1, p2, p3); | ||
96 | } | 94 | } |
97 | return null; | 95 | return null; |
98 | } | 96 | } | ... | ... |
-
Please register or login to post a comment