Committed by
Gerrit Code Review
IgpFlags code fix
Change-Id: If9233fae09d85af2033cfdf5eb444dcb3a53dbd5
Showing
1 changed file
with
14 additions
and
14 deletions
| ... | @@ -23,10 +23,10 @@ import java.util.Objects; | ... | @@ -23,10 +23,10 @@ import java.util.Objects; |
| 23 | * This class provides implementation IS-IS and OSPF flags assigned to the prefix. | 23 | * This class provides implementation IS-IS and OSPF flags assigned to the prefix. |
| 24 | */ | 24 | */ |
| 25 | public class IgpFlags { | 25 | public class IgpFlags { |
| 26 | - private final boolean isisUpDown; | 26 | + private final Boolean isisUpDown; |
| 27 | - private final boolean ospfNoUnicast; | 27 | + private final Boolean ospfNoUnicast; |
| 28 | - private final boolean ospfLclAddr; | 28 | + private final Boolean ospfLclAddr; |
| 29 | - private final boolean ospfNssa; | 29 | + private final Boolean ospfNssa; |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Constructor to initialize its parameters. | 32 | * Constructor to initialize its parameters. |
| ... | @@ -36,8 +36,8 @@ public class IgpFlags { | ... | @@ -36,8 +36,8 @@ public class IgpFlags { |
| 36 | * @param ospfLclAddr OSPF local address | 36 | * @param ospfLclAddr OSPF local address |
| 37 | * @param ospfNssa OSPF propagate NSSA | 37 | * @param ospfNssa OSPF propagate NSSA |
| 38 | */ | 38 | */ |
| 39 | - public IgpFlags(boolean isisUpDown, boolean ospfNoUnicast, boolean ospfLclAddr, | 39 | + public IgpFlags(Boolean isisUpDown, Boolean ospfNoUnicast, Boolean ospfLclAddr, |
| 40 | - boolean ospfNssa) { | 40 | + Boolean ospfNssa) { |
| 41 | this.isisUpDown = isisUpDown; | 41 | this.isisUpDown = isisUpDown; |
| 42 | this.ospfNoUnicast = ospfNoUnicast; | 42 | this.ospfNoUnicast = ospfNoUnicast; |
| 43 | this.ospfLclAddr = ospfLclAddr; | 43 | this.ospfLclAddr = ospfLclAddr; |
| ... | @@ -47,36 +47,36 @@ public class IgpFlags { | ... | @@ -47,36 +47,36 @@ public class IgpFlags { |
| 47 | /** | 47 | /** |
| 48 | * Provides information whether IS-IS is Up/Down. | 48 | * Provides information whether IS-IS is Up/Down. |
| 49 | * | 49 | * |
| 50 | - * @return IS-IS Up/Down bit enabled or not | 50 | + * @return IS-IS Up/Down bit enabled or not or null if is not configured |
| 51 | */ | 51 | */ |
| 52 | - public boolean isisUpDown() { | 52 | + public Boolean isisUpDown() { |
| 53 | return isisUpDown; | 53 | return isisUpDown; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | /** | 56 | /** |
| 57 | * Provides information whether OSPF is unicast or not. | 57 | * Provides information whether OSPF is unicast or not. |
| 58 | * | 58 | * |
| 59 | - * @return OSPF no unicast Bit set or not | 59 | + * @return OSPF no unicast Bit set or not or null if is not configured |
| 60 | */ | 60 | */ |
| 61 | - public boolean ospfNoUnicast() { | 61 | + public Boolean ospfNoUnicast() { |
| 62 | return ospfNoUnicast; | 62 | return ospfNoUnicast; |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | /** | 65 | /** |
| 66 | * Provides information on OSPF local address. | 66 | * Provides information on OSPF local address. |
| 67 | * | 67 | * |
| 68 | - * @return OSPF local address Bit set or not | 68 | + * @return OSPF local address Bit set or not or null if is not configured |
| 69 | */ | 69 | */ |
| 70 | - public boolean ospfLclAddr() { | 70 | + public Boolean ospfLclAddr() { |
| 71 | return ospfLclAddr; | 71 | return ospfLclAddr; |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | /** | 74 | /** |
| 75 | * Provides information on OSPF propagate NSSA. | 75 | * Provides information on OSPF propagate NSSA. |
| 76 | * | 76 | * |
| 77 | - * @return OSPF propagate NSSA Bit set or not | 77 | + * @return OSPF propagate NSSA Bit set or not or null if is not configured |
| 78 | */ | 78 | */ |
| 79 | - public boolean ospfNssa() { | 79 | + public Boolean ospfNssa() { |
| 80 | return ospfNssa; | 80 | return ospfNssa; |
| 81 | } | 81 | } |
| 82 | 82 | ... | ... |
-
Please register or login to post a comment