Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOXI-55: IPAddressWithMask should have a contains that can take any IPAddress #287

Closed
wants to merge 5 commits into from

Conversation

Sovietaced
Copy link
Contributor

@Sovietaced
Copy link
Contributor Author

That is a great idea. I'm upset I didn't think of that.

@andi-bigswitch
Copy link
Contributor

JENKINS-RETRY

@bsn-abat
Copy link

Test PASSed.
Refer to this link for build results: http://jenkins.bigswitch.com/job/loxigen_pull_req/8/

@@ -81,4 +81,17 @@ public static IPv4AddressWithMask of(final String string) {
}
}

@Override
public boolean contains(IPAddress<?> ip) {
if (ip == null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you're using Preconditions.checkNotNull above, it would make sense to use it here too (also in the IPv6 version)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason was because I thought that the Preconditions dependency was only available in my workspace and I forgot to remove this one. Now that I see this library is available I will fix these files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we definitely have guava in openflowj-loxi (we use ImmutableList et.al.
all over the place)

On Wed, Jun 25, 2014 at 6:31 PM, Jason Parraga notifications@github.com
wrote:

In
java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/IPv4AddressWithMask.java:

@@ -81,4 +81,17 @@ public static IPv4AddressWithMask of(final String string) {
}
}

  • @OverRide
  • public boolean contains(IPAddress<?> ip) {
  •    if (ip == null) {
    

The reason was because I thought that the Preconditions dependency was
only available in my workspace and I forgot to remove this one. Now that I
see this library is available I will fix these files.


Reply to this email directly or view it on GitHub
https://github.com/floodlight/loxigen/pull/287/files#r14221998.

@andi-bigswitch
Copy link
Contributor

Done - just a nit. Feel free to SELF-ACK

@Sovietaced
Copy link
Contributor Author

JENKINS-RETRY

@bsn-abat
Copy link

Test PASSed.
Refer to this link for build results: http://jenkins.bigswitch.com/job/loxigen_pull_req/17/

@Sovietaced
Copy link
Contributor Author

SELF-ACK

@bsn-abat
Copy link

ABAT: START_MERGE: Log file at http://vss1/abat/2014.06.27.1826-m.loxigen.master/abat.log

bsn-abat pushed a commit to floodlight/loxigen-artifacts that referenced this pull request Jun 27, 2014
Loxigen Head commit floodlight/loxigen@0377adb
commit 0377adb1d21737eba2604864a4913894e8f5fc9f
Merge: a6678c7 9dfc1ef
Author: abat <abat@bigswitch.com>
Date:   Fri Jun 27 11:26:22 2014 -0700

    Merge into master from pull request #287:
    LOXI-55: IPAddressWithMask should have a contains that can take any IPAddress (floodlight/loxigen#287)

commit 9dfc1ef046b1f4629420b6960e28a38138b01e16
Author: Sovietaced <Sovietaced@gmail.com>
Date:   Fri Jun 27 11:13:57 2014 -0700

    use preconditions

commit 77d99491b26e61294af69e5cb209ea2a1a66a4a4
Author: Sovietaced <Sovietaced@gmail.com>
Date:   Tue Jun 24 12:58:47 2014 -0700

    return false for incompatible ip versions

commit 07cc8eb32c4bb3f77ac57765370f5c607aa4cb7a
Author: Sovietaced <Sovietaced@gmail.com>
Date:   Tue Jun 24 11:55:26 2014 -0700

    fix null NPE catch

commit 30a1cee0aeed7ccd02c0f81b16157e08717b09b7
Author: Sovietaced <Sovietaced@gmail.com>
Date:   Mon Jun 16 23:04:40 2014 -0700

    add exception test

commit 88e74ecb223b2ad756f6f11c8a1a6e803bfa11ec
Author: Sovietaced <Sovietaced@gmail.com>
Date:   Mon Jun 16 23:02:45 2014 -0700

    IPAddressWithMask should have a contains method taht can take any IPAddress
@bsn-abat
Copy link

ABAT: ACCEPT: Successfully merged

In case you want to see the build log, check out :
Log file at http://vss1/abat/2014.06.27.1826-m.loxigen.master/abat.log
/cc

@bsn-abat bsn-abat closed this Jun 27, 2014
bsn-abat pushed a commit that referenced this pull request Jun 27, 2014
LOXI-55: IPAddressWithMask should have a contains that can take any IPAddress (#287)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants