1017 Commits

Author SHA1 Message Date
Jian Li
4ad8687e1c Augment osgi java library bazel plugin to specify bundle classpath
Change-Id: I123064bbcb30ffb6ce60458a74356c989d3df471
2018-08-05 14:27:33 +00:00
Ray Milkey
1c896873c5 Revert "Implements ICMPEcho packet type."
This reverts commit c90af240ebf85b2954d414afceafddca5b7d5ef6.

Change-Id: Idfd9e9aa2af8550b8bdd22305704fd368597459e
2018-08-03 11:30:58 -07:00
Ray Milkey
8bf12805a6 Revert "Fixing errorprone's warning."
This reverts commit c5836479cf04a23bc24f097ea606153b572eb76b.

Change-Id: Ia662d4b35a7d063b45876315d8bf97444ca41c5b
2018-08-03 17:14:16 +00:00
Thomas Vachuska
c5836479cf Fixing errorprone's warning.
Change-Id: I8bb35ca74df50c7c9d689272c1f7b24274303540
2018-07-31 17:46:12 +00:00
Daniel Park
c90af240eb Implements ICMPEcho packet type.
- For echo request and reply purpose

Change-Id: I5797bf41ad6f4afd2c7327b9bfa193aa90198ce4
2018-07-31 01:11:28 +00:00
Georgios Katsikas
5e2d40fdbd Get float value from property name
Extended tools to parse and return Float-based
properties.

Change-Id: I706bc7d1b547d675424a24198d31077eef0fc51f
Signed-off-by: Georgios Katsikas <katsikas.gp@gmail.com>
2018-07-30 16:16:29 +00:00
Ray Milkey
74c98a3ee8 Refactor file path validation code; reject apps with up-level references in the name
Change-Id: I4b14604608078d12df2f7b89f9f841ed19c2552c
2018-07-26 17:28:05 +00:00
Ray Milkey
351d456aca Prevent zip archives from putting files in directories outside of the target directory
Change-Id: I4c751097e8d5190f3df32d8aa4195336e28b1c0a
2018-07-26 15:41:50 +00:00
Thomas Vachuska
67484d9008 Added RBAC for REST APIs.
- admin role required for POST, PUT, DELETE & PATCH
- viewer role required for all other requests
- cleaned up all web.xml files for consistency and correctness

Change-Id: I33bad5cec0fb0f4285eed84173025b0a107b5aec
2018-07-17 12:10:00 -07:00
DongRyeol Cha
e0c98dbd91 Present the port number of LLDP as string value
Currently, ONOS packet-out the LLDP packet with port component type for port id as number value.
But according to RFC2922 , It describes that the port id should be octet string(normal string type).
So, if port number is presented as string value, we can see the port number as string at switch's CLI output.

ONOS-7737

Change-Id: I3ecd0e60a038239c9b4cacd0dd06730bdeb5e338
2018-07-17 16:14:52 +00:00
Ray Milkey
6b3775ada6 Bazel build of ONOS GUI package
Change-Id: Id5f9931c38f82afcdcefc49171dd79f2f5bdad14
2018-07-11 09:35:13 -07:00
Thomas Vachuska
1ae26c6c28 Tweaking Bazel packaging.
Change-Id: I796f70e1324c40b5d21c3b784662138f2ec04655
2018-07-10 16:01:53 +00:00
Ray Milkey
dbd3821cf0 Checkstyle rule to prevent throwing the generic RuntimeException
This is a frequent cause of sonar breakage.

Change-Id: I54e0044447633a61bab560b020b57ed0a6875ebe
2018-07-02 18:03:00 +00:00
Jordan Halterman
281dbf3eb3 Refactor flow rule store to resolve missing flows with old masters following mastership reassignment
Change-Id: I7b7e639c84cbd23fe9ab1f12080f865cdfc7f7f9
2018-06-29 20:03:51 +00:00
Daniel Park
021d2eb175 Adds classless static route option to DHCP options.
- Classless static route option is defined at RFC 3442 and widely used in OpenStack.

Change-Id: I66200faa5414b02dae325238e3bf1f0442efd0d8
2018-06-26 13:41:58 +09:00
shalde064
280feecf19 ONOS core changes for RIP support
Change-Id: I5aa22ed6509d99af22d7cb80944bc3a4c26b5257
2018-06-21 00:54:20 +00:00
Ray Milkey
275af2c8ff Implement bazel rules for generation of swagger files
Change-Id: I0e5d33174898cc6a1bbca475f2e1696c4fdda1ca
2018-06-20 09:41:24 -07:00
Ray Milkey
25747d88f7 Implement bazel support for web context
- add web context to OSGI rules
- build ACL app
- build DHCP app

Change-Id: I03687d109eb44621458ad7269a435e03eec47495
2018-06-15 09:01:35 -07:00
Yuta HIGUCHI
ede3ae309d Mark method which shouldn't have been public
Change-Id: I9f18f485ed84ffbdd001ad1ae79270f23bfd1082
2018-06-13 00:01:47 +00:00
Yuta HIGUCHI
06fde300b1 slightly increase coverage
Change-Id: I90c68fb5544f7f6f9a150e94d6a4c9aa450114c9
2018-06-09 06:16:21 +00:00
Ray Milkey
816db1086a Add modules to Bazel build
cli
core
incubator/rpc
pipelines/basic
protocols/netconf
protocols/openflow
protocols/rest

Change-Id: I165b94a04ba893d97d944e5deb2746f54566503b
2018-05-31 15:44:36 +00:00
Ray Milkey
0bcdfd1e59 reformat bazel files to use Google coding standards
Change-Id: I320f0ca7ccb1b2247ccdd9fa58fefca7dad8a16f
2018-05-23 14:07:19 -07:00
Ray Milkey
7dac7dadf5 Initial builds using bazel
Change-Id: I38123b396a2ffda5f36cdca43f3ad1fa67a7ab52
2018-05-23 20:38:54 +00:00
Yuta HIGUCHI
ae51470075 Add test case for toHexWithPrefix
- just to test Jenkins trigger

Change-Id: I346d04cbead074674debabdd24f318f3bca17d34
2018-05-04 16:13:45 -07:00
Jonghwan Hyun
800d9d0770 [ONOS-7624] Implement egress pipeline programming
- Implemented logic to handle double-tagged host in segmentrouting application.
- Added 'DummyVlanId' to segmentrouting application to keep track of dummy vlan for L3L2Unfiltered group chain and egress tables.
- Implemented L2Unfiltered group and Egress pipeline programming support in OFDPA pipeline.
- Added EGRESS flag to the forwardingObjective to program Egress tables.
- Fixed bugs when handling double-tagged ARP request, to get correct vlan id and reply with double-tagged packet.
- Fixed bugs in BasicHostConfig, to set the value of 'outerTpid' to 0x8100 if it is not specified.
- Fixed build(ARP/ICMP/ICMP6)reply to build double-tagged reply if corresponding request is double-tagged.

Change-Id: I1fdc30b55827c3f73fad9e854bcaa5fb23f7bcd0
2018-04-26 15:32:17 +00:00
Taras Lemkin
96a0d34085 CORD-2870: Bypass DHCP leasequery without learning routes.
Changes:
    * Add configuration flag to disable old leasequery routing/learning flow
    * Route leasequery (v4 and v6) responses to an originator
    * Fix NPE and BufferOverflow exceptions in Dhcp6LeaseQueryOption
    * Make Dhcp4/Dhcp6HandlerUtil classes static
    * Fix codestyle issues

Change-Id: Ic9e527d73a226e7f1f544dab9fb98398b85c5460
2018-04-24 14:52:04 +00:00
Charles Chan
79cc5e81cd Fix NPE in Dhcp6Duid serializer
Change-Id: I0d367b3642efc69a4e036aac29f967718d16d841
2018-04-23 14:29:13 -07:00
Charles Chan
29813b0331 Implement RFC6355 DUID_UUID
Change-Id: Ic1fa1ca8483437498787f84bf0b2b99fb3c12d70
2018-04-19 21:42:26 +00:00
Ray Milkey
bca9049101 Starting snapshot 1.14.0-SNAPSHOT
Change-Id: I97bab4e31d2b701f015289eae29d0c58a4937685
2018-04-13 12:47:31 -07:00
Eduardo Ferreira
cf8ee3ca46 Ip4Address: Update Self Assigned IP from 169.x.y.z to 169.254.x.y
Update the prefix for self assigned IPs, so we can support more IPs when using HostLocationProvider.

 Dynamic Configuration of IPv4 Link-Local Addresses https://tools.ietf.org/html/rfc3927

Change-Id: I29931ee45f01a4c9d89784884ef27adb376f5efa
2018-04-11 12:37:15 -03:00
Carmelo Cascone
8a571af574 Support for bitwise AND/OR/XOR in ImmutableByteSequence
Also, minor refactoring of the fit() method to improve code readability

Change-Id: I826650c3fc45573c723d9d2dd8692da174d9ae08
2018-04-09 16:56:49 +00:00
Charles Chan
58a33da87e Wrapper function that enables logger invocation with log level as a parameter
Change-Id: I999ef173ffbc60ccc31795d107142cb4d671145b
2018-04-06 00:38:32 +00:00
Thomas Vachuska
a10137c0fc Fixing residual ON.Lab references.
Change-Id: Ic54a281ce67e49236c7aeb536729d3900dd9433d
2018-04-04 00:02:22 +00:00
Charles Chan
7796c11275 Fix deserialization exception caused by miscalculation of TCP offset
Change-Id: Ibe6be12f850463fc0c3029d00b8dca20982bca75
2018-04-03 18:21:39 +00:00
Ray Milkey
86ee5e8711 Upgrade fasterXML libraries for OS-9
Upgrade fasterXML to version 2.9.5 to address security vulnerability
Wrap calls to treeRead(InputStream) to handle new behavior of null streams

Change-Id: Id199cfacd0cf9e5371dc33de9f1e058c2e72eaa5
2018-04-03 16:49:03 +00:00
Thomas Vachuska
3702f9bdfd ONOS-7490 Fixed NPE in Suurballe graph search.
Change-Id: Ib84e788988961e3802b8a09b8702df1f75380ae3
2018-03-19 15:21:50 -07:00
Terje Mikal Mjelde
34cc8e034e [ONOS-7514] Fix for broken EAP introduced in commit f0c4761.
Change-Id: I439bcde21333472e04836acf377890a9ad772683
2018-03-09 18:55:23 +00:00
Ray Milkey
6a51cb9c4d Remove calls to deprecated Throwables.propagate() method
Change-Id: Id48a8f1d4fb02560cfb77108f554556a3cad9b16
2018-03-07 21:52:46 +00:00
Jordan Halterman
f3f050ab74 Fix memory leak in Dropwizard metrics: use sliding window reservoir
Change-Id: Ibd76338d8e88bfc0745dd397861b6655430ddeb0
(cherry picked from commit 5c4c410b2a08d19d05885ba8645723e98a2c64b4)
2018-02-27 19:15:13 +00:00
Lior Assouline
a21c0ca852 DHCPv6 Lease Query
Change-Id: I842deb7a09400504bec239fe49d2a627f00756c1
2018-02-16 11:57:11 -08:00
Yuta HIGUCHI
7da7e62eb8 Add support for pretty printing XML fragments
Change-Id: I085e2e883cf445bfa406b0ae753df605b9929540
2018-02-15 18:20:51 +00:00
Ray Milkey
5c7d488269 SONAR suggestion - proper handling of InterruptedException
Change-Id: I67a93c064708c207d9ce83fac319682c2d17db60
2018-02-07 00:59:07 +00:00
Ray Milkey
34ef6a1ef6 SONAR suggestion - checking the same condition twice
Change-Id: Ia71206478c21cc92fbd7d37e7915af75727e047e
2018-02-02 21:18:57 +00:00
Ray Milkey
42b6203896 SONAR suggestion - problems with string format calls
Change-Id: Ie6b985d2e4db79d6398b17e38a680920f52366b3
2018-02-01 21:09:07 +00:00
Ray Milkey
986a47aa7c SONAR suggestion - generic exceptions
Replace uses of generic RuntimeException
with more appropriate unchecked exceptions

Change-Id: If283743c2cf7252b8d280bdb788708ebbe57da9d
2018-02-01 18:36:33 +00:00
Yuta HIGUCHI
488a94c31e more error-prone issue fix
Change-Id: I49f2cc0459cfddddc6a99e2ebb8ad52d547e2909
2018-01-29 21:12:15 +00:00
Ray Milkey
094a135ef5 Removed the setServiceDirectory() method from the base web resource
This is a testing only API and potentially dangerous to allow to be public.
I modified the tests that use it to set the value using TestUtils.setField()

Change-Id: Ic590f4641f4e3de208dffa16b3df9a9a2106114b
2018-01-25 01:16:03 +00:00
Ray Milkey
96b2640b27 SONAR suggestion - toString() should not return null
Change-Id: I9b31515b24052d60895ef2151609ea734ef18c3b
2018-01-25 01:06:35 +00:00
Kalhee Kim
475fb2c14d [CORD-2528] RIPngEntry handling byte
Change-Id: I0b5d1166a2576be879c209954bed15191f439eae
2018-01-19 13:20:17 -08:00
Kalhee Kim
495c9b2fa9 [CORD-2318] Allow v6 alternative dhcp server for default and indirect dhcp server
Change-Id: Ief4027a7528db7b4e3058fce369b3e1ddc214e92
2018-01-19 13:20:13 -08:00