442 Commits

Author SHA1 Message Date
Charles Chan
d2edd47030 CORD-378 Validate ARP SPA in segment routing ARP handler
Check if the source protocol address of an ARP packet belongs to the
same subnet configured on the port it is seen.

Additional changes:
- Improve human-readability of ARP.toString()

Change-Id: Ie21c1edb43aa0ec636e9a927ca164a46ab2256fc
2016-10-19 01:21:38 +00:00
Brian O'Connor
7c11a9885e Cleaning up utils/ Buck files
Change-Id: Id8d0126f2ba06aab2dfba7a6a6760c263bdedba9
2016-10-18 23:49:08 +00:00
ke han
e908271dc3 package igmp v3 report wrong, the group class should be IgmpMembership
Change-Id: Ibe321ec79e3058b3ab320601ea57bfeba5577c5d
2016-10-18 13:19:05 +08:00
Luca Prete
c8ec4b5f43 Adding support for IGMPv2
Change-Id: Iba3fbdfaed1b91cda8c6c0ef19fe69b5e5d7f900
2016-10-17 12:04:34 +00:00
Sho SHIMIZU
8ebb04aacd Replace Stream#forEach() with Collection#forEach()
Change-Id: I2b261c3d91d345907b165bd61eb7b6c45011c247
2016-10-11 16:39:39 +00:00
Jian Li
1270aea7be Add abstract IP header class to unify IPv4 and IPv6 header classes
Change-Id: Ia932dad67f64595b52b6fbc7dc43a13f64d53796
2016-09-20 10:16:59 -07:00
Brian O'Connor
bfc02ecd22 Bumping snapshot version to 1.8.0-SNAPSHOT
Change-Id: I4ca57b277d8ac814b8a10b107d995cb1cc4d499d
2016-09-16 17:41:55 +00:00
Brian O'Connor
b19fc86f82 Bumping version back to 1.7.0-SNAPSHOT
Change-Id: I1df9d0f12cd7ec7597499d41cacebdbe75899556
2016-09-16 00:12:21 -07:00
Brian O'Connor
338bc0cf19 Bumping pom versions to 1.7.0-rc2 and fixing some maven issues
Change-Id: I6169420328333d0916452aa92efbfa961d72e9c4
2016-09-16 00:11:45 -07:00
Brian O'Connor
a1d90cfcd3 Removing source_under_test which has been deprecated from Buck
Change-Id: I598b704d9ef77c483bb3c4f83198833d07b38ae1
2016-09-13 16:35:07 -07:00
sdn
94b001597a Fix for ONOS-5034
Change-Id: I61158511680851be375b93c365fc32c0573e9edc
2016-09-12 23:18:32 +00:00
Madan Jampani
307a21ecd3 Utilities for composing future results
Change-Id: Ie2ecfdedb69638fe7131879caa3b3708c4746006
2016-09-01 23:09:46 +00:00
Jonathan Hart
38feb6eddc Revert "Fix for ONOS-5032 and ONOS-5034"
This reverts commit 50ad080683317df192a0f7159d9902dc1c403ed2.

Change-Id: Id2f9924a28c18686b4be30200244dbd0c975e90a
2016-08-29 23:16:45 +00:00
Jian Li
e4ba2a4460 Add unit tests for LISP control message serializer and deserializer
Change-Id: Id517db99635ad8e055d6581e5c0f3ac9f45f2869
2016-08-29 16:55:37 +00:00
Deepa Vaddireddy
50ad080683 Fix for ONOS-5032 and ONOS-5034
Change-Id: Ib964252dd05754ce7069a7a82ccb1d1c29bfa978
2016-08-26 03:22:47 -07:00
Yuta HIGUCHI
e8f48d8d08 ExecutorService with somewhat predictable thread assignment.
- ExecutorService which allows the caller or the Task to
  express hint about which Thread it needs to be executed.

Change-Id: If1cc58f6b2369bb5afce4f402c195eacedf67f05
2016-08-25 10:20:35 -07:00
Thomas Vachuska
b1995cb761 Fixed an infinite loop bug in Suurballe graph path search.
Triggered by three edges between two vertices.
More work needed to address the remaining issues in the class implementation.

Change-Id: Ice1fa85f1b9213680e063e362db4d734d212f6f0
2016-08-23 20:58:54 +00:00
Yuta HIGUCHI
86f142f958 Update kryo to 4.0.0
- WARN:Serialized bytes are not binary compatible
- Release summary: https://github.com/EsotericSoftware/kryo/releases/tag/kryo-parent-4.0.0
- KryoNamespace: stop using direct buffer

This might fix ONOS-5130

Change-Id: I6e1e00f147a90ae8bfded78b2fa3a77158602c76
2016-08-19 17:26:54 +00:00
Yuta HIGUCHI
c012dda796 Workaround for NoClassDefFound issue in Netty.
SimpleChannelInboundHandler generates `message` instance check code on the fly,
using JavaAssist. Which was not working, when a new Connection was created on the thread
outside of NettyMessagingManager bundle, which did not have access to netty classes.
- Implemented equivalent for SimpleChannelInboundHandler<InternaleMessage>
  without specifying type parameter, avoiding on the fly code generation.

Other changes:
- Add a method in IpAddress to return InetAddress instance.

Change-Id: Ie97294a5650683457b9395e773269c5232d8e602
2016-08-18 19:06:00 +00:00
Yuta HIGUCHI
c2e6815ddc Use Java 8 Map#compute when possible
Change-Id: Ida300c054449047096f355f09b3843e4934dcd18
2016-08-16 22:45:15 +00:00
Sho SHIMIZU
d5c8ba157b Remove a white space
Change-Id: Ie84387e8691b61162ce2e02cd258e4e3be8940c4
2016-08-15 18:49:43 +00:00
Jian Li
47671905bb [ONOS-4718] Initial implementation of LISP control msg deserializer
- Add LispLocatorRecord interface along with
  DefaultLispLocatorRecord class and unit test class
- Add deserialization logic for four LISP control message classes
  and two auxiliary classes
- Add ByteOperator utility to ease the bit access and manipulation
  for byte data type

Change-Id: I68edf6877a0ebb52260296fc556e0690b795a845
2016-08-12 22:35:34 +00:00
Yuta HIGUCHI
c3d69f52e5 Fix NPE when there's no secondary path.
Change-Id: I3bb8eeb2abf140d44cf4dc7186cf1bf316c23f70
2016-08-08 23:50:40 +00:00
Jonathan Hart
679d24d193 Unit test for Kryo namespaces to prevent people overflowing the namespaces.
Change-Id: If37283da60d59558c87e2997690b4578952ad3bf
2016-08-05 14:45:45 -07:00
Thomas Vachuska
0666f155b0 Cleaning-up shared executors use of metrics service.
Change-Id: I4293df87cd46e9f22cbdf03cfbced9a21ba85de7
2016-08-05 12:05:52 -07:00
ke han
0844307bde To encode igmp report packet need to set the record type
Change-Id: Ib9e06712873f936d6ab2466ab4e1fbb106c53b6d
2016-08-05 14:20:45 +00:00
Ray Milkey
bb23e0b5fb Fix Javadoc warnings
Change-Id: Icf8b6b6f77ea80d3975aa975226a178145067adf
2016-08-03 14:29:51 -07:00
Ray Milkey
2a749835b7 Top level build of component Javadocs
Change-Id: Iceb2a7c84b3dd0b354b27f93a0f746913cd9b778
2016-08-03 09:38:07 -07:00
Yuta HIGUCHI
1624df1f30 Assigning names to various threads
- specify nearby logger when possible

Change-Id: Ia8925ab1459c4d1da922becd0e201388d44d4294
2016-07-22 22:56:26 +00:00
gaurav
4af95fb0d7 Added DHCP Option-82(circuit-id) to Dhcp relay app, addressed patch-1 comments
Change-Id: If99fd1f0794b3aff9ae88948d98632e6c9ff1090
2016-07-13 12:35:37 +00:00
Carmelo Cascone
804c0010e3 Added kryo serializer for ImmutableByteSequence
Serialization was failing when the inner ByteBuffer instance was a
HeapByteBuffer. Also, simplified ImmutableByteSequence.toString()

Change-Id: I4f75086a9b6536205fb43b78a0e4d2bfce9e8a5c
2016-06-29 16:26:10 +00:00
Brian O'Connor
1b2aea88c0 Removing gratuitous relativePath from pom.xmls
The default value for relativePath is: ../pom.xml

Change-Id: I1f5e5e6bfa1e91fcddae4f8cb8ab0c00c276e6b0
2016-06-16 07:05:31 +00:00
Carmelo Cascone
17fc9e41df Major refactoring of the BMv2 protocol module (onos1.6 cherry-pick)
- Created 3 separate sub-modules: API (doesn't depend on
    Thrift), CTL (depends on Thrift), THRIFT-API (to generate Thrift
    sources)
- Implemented 2 new services (for device configuration swapping and
    table entry management) needed to distribute BMv2-specific state
    among ONOS instances.
- Implemented a BMv2 controller (previously other modules where
    using separately a Thrift client and a server)
- Added a default BMv2 JSON configuration (default.json) and interpreter
    to be used for devices that connect for the first time to ONOS.
    This allows for basic services to work (i.e. LLDP link discovery,
    ARP proxy. etc.).
- Changed behavior of the flow rule translator and extension selector,
    now it allows extension to specify only some of the match parameters
    (before extension selectors were expected to describe the whole
    match key, i.e. all fields)
- Various renaming to better represent the API
- Various java doc fixes / improvements

Change-Id: Ida4b5e546b0def97c3552a6c05f7bce76fd32c28
2016-06-16 00:47:42 +00:00
Yuta HIGUCHI
839b6edf50 Fixing file permissions
- removing executable bit from .java files

Change-Id: I7e993372e1edf942fefb5aaea2e302b3b2baebd9
2016-06-15 02:22:16 +00:00
Jonathan Hart
7838c51a4b Use ON.Lab OUI for LLDP packets.
Change-Id: Ie285a47c5abd10a9ac37b3ca8f6ddf16ad867b2d
2016-06-08 21:43:39 +00:00
Carmelo Cascone
6d9ab3a291 Added possibility to decode HEX strings without separator
Change-Id: I6e11ad2a3dc4e39b148a740d5f19d80705f78b48
(cherry picked from commit 6eaa33ab046dde1ee79ce976457f1fb7f0a85b5f)
2016-06-01 11:20:08 -07:00
Brian O'Connor
e642f7cf7b Bumping version to 1.7.0-SNAPSHOT
Change-Id: Id105bf08ecbdac6d4e214ae035b4220aea90f29f
2016-05-23 18:35:29 -07:00
HIGUCHI Yuta
f96f7cf729 Remove unnecessary delay in CounterTest.
Change-Id: I5a29c88f803c2d01f9b4f502b64ad4d1460b977b
2016-05-22 20:22:40 +00:00
HIGUCHI Yuta
107ec54cdf Fix spurious failure under heavy load.
Change-Id: I1d5b203fba0aae1d2dd64905fd0b764a76bca87f
2016-05-21 12:18:28 -07:00
Ayaka Koshibe
4822922b23 [ONOS-4424] Tag LLDP/BDDP source address with fingerprint
Link probes incorporate cluster fingerprint in source
MAC address. This removes the need for an additional TLV and the
complexity associated with it, and also adds fingerprinting to
BDDPs for free.

 - fingerprint in Ethernet source address. The old default MAC
   value is only used when the CusterMetadata service isn't ready.
 - remove support for TLV fingerprint field and associated config
   knobs.
 - links at control domain boundary are classified as EDGE type links.

Change-Id: Idb07dd06fbeee25e9fcee3fbdddec7a7dbb2c397
2016-05-21 19:02:12 +00:00
Sho SHIMIZU
55caa1cfcd ONOS-4561: Exclude non standard VLAN IDs
Change-Id: I3f7542521d0867e71f11263e46d6116cd6120428
2016-05-20 16:12:10 +00:00
HIGUCHI Yuta
163efb5060 Some improvements around EventuallyConsistentMapBuilder serializer handling.
- Allow directly passing KryoNamespace
- Add some registration id gap before ECMap's internal registration
- Some improvements for ease of registration issue investigation
-- Add friendly name to ECMap's internal KryoNamespace
-- Add backtrace information

Change-Id: I7c87b3aefbaea4b2ed12b38c3e0813e9d195c7a9
2016-05-19 16:38:52 +00:00
HIGUCHI Yuta
b2d0fd8380 KryoNamespace improvements
- Ignore duplicate Namespace registration
- Add friendly name for helping logging

- ONOS-4528

Change-Id: Id78f2a0f6e9715a7880875039825e294a68592a9
2016-05-19 15:18:23 +00:00
Madan Jampani
b7f38d499b Lower log level for Kryo serializer id fallback message
Change-Id: If6d0cc891b7bfca096b3d3508f30f8516d3c103f
2016-05-17 23:26:25 +00:00
Ray Milkey
6f95568fde lower severity to info if a class is registered more than once for serialization
Change-Id: Ic5728a2bf316a5a4efa7ff6bec8f3675122108b5
2016-05-16 14:03:12 +00:00
HIGUCHI Yuta
0a1f29ecca Check if there's conflict in serializer registration Id.
- remove duplicate detected
- Add little head space, just in case Kryo start registering some more built-ins.

Change-Id: I8b1318d0e11ce1c0680aaef29cc88c96af78ae6f
2016-05-10 20:27:55 +00:00
HIGUCHI Yuta
0bc256f575 Help type inference.
- Build was failing with eclipse ECJ

Change-Id: I506e90b52b0c0f63081e75cfa98a83bf294261ba
2016-05-06 23:08:50 +00:00
Brian O'Connor
f32da3be51 Increasing timeout limit in BoundedThreadPoolTest
It can fail on slower systems

Change-Id: Icc93945aeb09a79d5ace84606e286cabd7e6c4ee
2016-05-05 16:37:47 -07:00
Sho SHIMIZU
c0e010ddde Implement compact serialization for a set of discrete resources
This is for ONOS-4281.

Change-Id: I08a9fc4fd334c499c7a09d2960145743a798094e
2016-05-04 17:58:45 +00:00
Sho SHIMIZU
6ac2098207 Make the method receive a more flexible parameter
Change-Id: Icf5d0e272a6f20be40a266f276710b1cd0c144ef
2016-05-04 17:18:45 +00:00