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

Onos 2.5 #105

Open
wants to merge 235 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
c30e740
bumping to version 2.5
ray-milkey Dec 1, 2020
67a3dcc
Tagging 2.5.0-rc2
OnLabJenkins Dec 1, 2020
ab12330
Starting snapshot 2.5.0-SNAPSHOT
OnLabJenkins Dec 1, 2020
496c1d3
Implemented HttpResponseHeadersFilter to set the CSP frame ancestors …
lakbychance Nov 29, 2020
5971ae1
[ONOS-8130] Correct and cosistent access to message-id counter in Net…
Andrea-Campanella Dec 4, 2020
5199603
Tagging 2.5.0
OnLabJenkins Dec 4, 2020
8caf975
Starting snapshot 2.5.1-SNAPSHOT
OnLabJenkins Dec 4, 2020
b9df9b1
Extract and publish p4runtime protocol utils in separate artifact
ccascone Jun 12, 2020
b1f5cfd
Fabric.p4 cherry-picks from onos-2.2
ccascone Dec 5, 2020
f821162
Exposes PiTranslators implementation through the adapter pattern
ccascone Dec 4, 2020
6fa8cd6
[AETHER-599] Implement FabricPipelineTraceable
pierventre Oct 8, 2020
cfd08de
[AETHER-1032] Backport AETHER-538 to fabric.p4
pierventre Dec 15, 2020
135cb7a
[ONOS-8129] Bug fixed for duplicate events when netconf device goes d…
AnuragChadha Dec 4, 2020
0bd777c
Upgraded to bazel 3.7.2 and rules_nodejs 2.3.2
SeanCondon Jan 1, 2021
be439e0
Lower LLDP log message when an unknown source is found
Jan 5, 2021
3855dc1
reassertRole when stream channel is not opened correctly
Jan 6, 2021
8fcea44
Add debug log in P4RuntimePipelineConfigClient
Jan 9, 2021
e9db28a
[AETHER-1077] Missing entries in default P4RT mirror store.
pierventre Jan 15, 2021
a731bb8
[AETHER-1074][AETHER-1088] Missing Kryo classes in several subsystems
pierventre Jan 15, 2021
db35289
[AETHER-1104] Calculate PiPipeconf fingerprint in a deterministic way
pierventre Jan 11, 2021
f0a0719
[AETHER-539] Fix for flowId computation
pierventre Dec 3, 2020
9ff7caa
[AETHER-998] FabricPipeliner should support L2 modification of the Ne…
pierventre Jan 8, 2021
7385b79
Changed to use ctx.actions.run_shell instead of ctx.action
bbergquist0930 Jan 20, 2021
9f2d785
Tagging 2.5.1-rc1
OnLabJenkins Jan 25, 2021
98b6485
Starting snapshot 2.5.1-SNAPSHOT
OnLabJenkins Jan 25, 2021
4a62155
Tagging 2.5.1
OnLabJenkins Jan 27, 2021
a60aa4c
Starting snapshot 2.5.2-SNAPSHOT
OnLabJenkins Jan 27, 2021
620d6e3
[VOL-3660] Add support for PPPoED message decoding and flow installat…
Jan 22, 2021
cb2cc1d
Fix issues seen during bundle refresh with shared executors
ccascone Jan 29, 2021
08be255
Add digest to P4InfoBrowser
ccascone Jan 29, 2021
283e217
[AETHER-1230] Prevents the ejection of the P4RuntimePacketProvider li…
pierventre Feb 5, 2021
48aee4c
[VOL-3660] Adding support to VLAN and PCP treatment on PPPoED flows.
Feb 12, 2021
91217e4
[AETHER-1248] Reset default entries
pierventre Feb 12, 2021
1031829
[VOL-3836] Extract the OLT pipeliners from ONOS
Andrea-Campanella Feb 16, 2021
bb76f37
Add Mastership Load Balancer into TOST build profile
Feb 25, 2021
d97d891
[AETHER-1213] GUI1 enhanced to allow scaling host icons and host text.
tomikazi Mar 1, 2021
3a86d41
[AETHER-1211] Allowing toggling of link labels via Alt-L
tomikazi Mar 1, 2021
54c36ae
Added command to explicitly start/stop simulated port stats
tomikazi Mar 3, 2021
8d26232
[AETHER-1243] Adding more host icons and changing the default icon.
tomikazi Mar 3, 2021
e348d09
Fixing ONOS-8026
tomikazi Aug 28, 2019
ce191fe
[AETHER-1324] Force push pipeline config
pierventre Mar 22, 2021
f7cd484
[VOL-3922] Invalidating the pipeliner cache if the driver for a devic…
Andrea-Campanella Mar 26, 2021
929cbd0
[ONOS-8137] Bug fixed for driver not found in case of ipv6 address be…
AnuragChadha Mar 26, 2021
e4d1294
Enable read counters with table entries for stratum-tofino driver
pierventre Mar 29, 2021
c78a251
Add action in pdrs tables to pass qid parameter
ersuneetsingh Mar 26, 2021
541edfc
[AETHER-1212] Added means to configure host links to appear as 'wirel…
tomikazi Mar 10, 2021
7ecf2ba
Fixed a connectionType glitch
tomikazi Mar 29, 2021
95f2d3e
Added mechanism for apps to easily add their own custom link/node/hos…
tomikazi Mar 30, 2021
b8337e0
Tagging 2.5.2-b1
OnLabJenkins Apr 2, 2021
9b57753
Starting snapshot 2.5.2-SNAPSHOT
OnLabJenkins Apr 2, 2021
906febe
Add INT watchlist config
Mar 29, 2021
7118551
[AETHER-72][AETHER-75] Update atomix to 3.1.9
pierventre Jun 17, 2020
3edc0e9
[AETHER-72] Add bulk update to ConsistentMultimap
pierventre Oct 11, 2019
8a86db2
[AETHER-72] Refactoring RouteService
pierventre Oct 16, 2019
2a6ef08
[AETHER-75] Add command to force snapshot of Raft partitions.
Sep 30, 2019
e33e2dc
Added ability to configure GUI traffic refresh rate
tomikazi Apr 6, 2021
1ef7e25
Tagging 2.5.2-b2
OnLabJenkins Apr 7, 2021
50befb5
Starting snapshot 2.5.2-SNAPSHOT
OnLabJenkins Apr 7, 2021
a3231bb
Add dockerfile to build an ONOS container from the local Bazel output
daniele-moro Dec 10, 2020
010cd8c
Disable SampleHighlighterFactory
Apr 12, 2021
37691eb
[AETHER-1529] Nodes not READY due to gui/gui2 bundles being in WAITING
pierventre Apr 13, 2021
86b869e
[AETHER-1516] Barefoot/bmv2 drivers are never loaded
pierventre Apr 12, 2021
a18900c
[AETHER-1550] Add additional trace logs in P4RT SB
pierventre Apr 21, 2021
02fd286
[ONOS-8139]Private SSH Key File Path made configurable for passwordle…
AnuragChadha May 10, 2021
b418e11
[AETHER-1265] Integrate Java profiler in TOST env
pierventre May 4, 2021
6b19568
Avoid casting to double to round-up integer division
daniele-moro May 18, 2021
c9ba567
[VOL-4055][ONOS-8138] Adding annotations to meter to allow passing of…
Andrea-Campanella May 3, 2021
c9f115a
Support arbitrary bit width action parameter and match field
daniele-moro Dec 7, 2020
7928055
Add tests for codecs and P4Info parser when P4Runtime Translation is …
daniele-moro Dec 15, 2020
5eaaf30
Add support for arbitrary bitwidth packet metadata
daniele-moro Feb 11, 2021
cdac24f
Add Optional match fields support to PI subsystem
daniele-moro Dec 18, 2020
787a064
Allows to specify matches, action parameters as strings in PI
daniele-moro Feb 23, 2021
8eb7c0a
Ensure P4Runtime byte strings are padded to their bit width
daniele-moro May 17, 2021
a465c31
Fix typo on readme
daniele-moro May 19, 2021
03450cb
[SDFAB-98] Improve logging in several ONOS subsystems
pierventre May 18, 2021
42dce38
Add support for uploading snapshot artifacts
daniele-moro Mar 4, 2021
7b121a2
Update default repo ID for snapshot artifacts upload
daniele-moro May 20, 2021
b784d98
Fix onos-dependencies snapshots artifacts upload
daniele-moro May 21, 2021
db34737
SDFAB-193 Add packet-out routing feature to fabric-v1model
ccascone May 26, 2021
ffa7fed
SDFAB-193 Fix routing of GTP End Marker packet-outs on fabric-v1model
ccascone Jun 2, 2021
b4120ff
[SDFAB-16][SDFAB-17] Several improvements to the GDP
pierventre Apr 9, 2021
f8bd3ae
SDFAB-76 Work around missing packet request cased by consistet multim…
Jun 7, 2021
cbd1694
[ONOS-8140][VOL-4152][SDFAB-94] Adding annotations to flow objectives
Andrea-Campanella Jun 1, 2021
60dfd4a
[SDFAB-102] Backport changes required for policies to fabric.p4
Jun 11, 2021
dbcffda
[SDFAB-187] Add UpfProgrammable interface in ONOS core
daniele-moro Jun 11, 2021
7c31a3b
[SDFAB-189] UpfProgrammable implementation for fabric v1model
daniele-moro Jun 15, 2021
d03459c
[SDFAB-199] Add the support for last-change
pierventre Jun 1, 2021
91eaff3
[SDFAB-21] Handle the VERIFY operation in the fabric pipeliner
pierventre Jun 14, 2021
fac26d4
[SDFAB-102] Backport changes required for policies to fabric.p4 (Redi…
Jun 18, 2021
a9c0f26
[OpenFlow] Make OpenFlowMeterProvider configurable
miguelborgesdefreitas Jun 23, 2021
ac94678
[SDFAB-188] Remove buffer drainer from UpfProgrammable
daniele-moro Jun 23, 2021
9e1e5df
[SDFAB-256] Add CLI command for reading content of the UPF store
daniele-moro Jun 24, 2021
1ae0958
[SDFAB-293] Fix UPF call setup performance degradation
pierventre Jun 23, 2021
cf5dabd
[SDFAB-271] Change the default max inbound metadata size for grpc cha…
pierventre Jun 29, 2021
681adf8
Tagging 2.5.2
OnLabJenkins Jul 9, 2021
d6198b6
Starting snapshot 2.5.3-SNAPSHOT
OnLabJenkins Jul 9, 2021
2ca1c3c
Fix bug when parsing gtp traffic and inner headers
daniele-moro Jul 8, 2021
d5e3fcb
[SDFAB-287] Remove and query only upf-related flow entries
daniele-moro Jul 5, 2021
6a7cb47
[SDFAB-287] Let send packet out throw UpfProgrammableException
daniele-moro Jul 20, 2021
9f94a13
Add truncate instruction and support it with PI framework
Jul 29, 2021
5e4c6ef
[SDFAB-15] Allow delete with empty actions
pierventre May 21, 2021
10c9cc4
Unset proper delegate on InOrderFlowObjectiveManager deactivate event
pierventre Jul 30, 2021
c4ab355
[SDFAB-20] Prevent listeners ejection and the stop of the group polling
pierventre Jul 9, 2021
5e92bbf
[SDFAB-338] Revisit DistributedFabricUpfStore in fabric.p4
pierventre Jul 13, 2021
b8e8e64
Add TruncateInstruction to API KryoNamespace
Aug 2, 2021
886fe4b
[SDFAB-379] Optimize the resource usage of the L3 unicast groups
pierventre Aug 3, 2021
be900bd
[SDFAB-352][SDFAB-353] Retrieve MeterFeatures from the P4RT southboun…
Aug 4, 2021
664e249
[SDFAB-384] Modify the MeterStore APIs
Jul 28, 2021
cfd7740
[SDFAB-359] Allow purging flows, groups and meters by device and appl…
daniele-moro Jul 15, 2021
8aa2145
[SDFAB-356] Extend P4RuntimeMeterProgrammable and Codecs to support r…
Aug 6, 2021
607fd0b
[SDFAB-359] Purge all objective for a given application ID
daniele-moro Jul 19, 2021
411f6f7
[SDFAB-357] Backport slicing in fabric and add support for QFI in PDR…
daniele-moro Jul 28, 2021
94015de
Fix wrong arguments in load_pdr action
ccascone Aug 10, 2021
fa3b328
[SDFAB-355] Revisit MeterService and north abstractions
Aug 22, 2021
8ebb793
[SDFAB-354] Improve P4RTMeterProgrammable
Aug 22, 2021
f8522bb
[SDFAB-453] Add a field check to MeterEntryCodec
Aug 22, 2021
b8ca2ad
[SDFAB-500][SDFAB-499] Implement user defined index mode for the mete…
pierventre Aug 18, 2021
78b4d6f
[SDFAB-522] Fix port type for pair ports
pierventre Aug 27, 2021
36b9a89
[SDFAB-500][SDFAB-527] Meters cleanup and leftovers
pierventre Aug 27, 2021
89984eb
[SDFAB-502] Improve P4RuntimeMeterProgrammable reconciliation
pierventre Sep 2, 2021
1d8c5e8
[SDFAB-557] Fix max meter in ONOS
Sep 13, 2021
63aaedd
Fix issue with multiline comment in OSGI properties
teone Sep 13, 2021
b318e1f
Bumping version to 2.5.0-SNAPSHOT
tomikazi Sep 15, 2021
a770879
[SDFAB-542] Meters cleanup and leftovers v2
pierventre Sep 10, 2021
6bfdeb3
Protect event handler from the exceptions
pierventre Sep 16, 2021
589398d
Bumping onos-maven-plugin version in onos-dependencies
teone Sep 16, 2021
b0b93ac
[VOL-4343] Processing status of ports in order with mastership and co…
Andrea-Campanella Sep 13, 2021
49b7f5c
Tagging 2.5.3
OnLabJenkins Sep 20, 2021
f7489d7
Starting snapshot 2.5.4-SNAPSHOT
OnLabJenkins Sep 20, 2021
4f52c46
[SDFAB-295] Inconsistent format of port number in host location
pierventre Sep 17, 2021
6ef84ce
Fix nasty race condition in the MeterStore
pierventre Sep 22, 2021
86f0703
Revert "Fix nasty race condition in the MeterStore"
pierventre Sep 22, 2021
ec0e942
[SDFAB-612] Cluster not ready when using recent tost master images
pierventre Sep 22, 2021
e84b2e8
[SDFAB-612] Cluster not ready when using recent tost master images
pierventre Sep 22, 2021
e46c4ac
[SDFAB-615] Inconsistent format of port number in links
pierventre Sep 23, 2021
61bd673
[SDFAB-616] Inconsistent format of port number in DhcpRelay
pierventre Sep 23, 2021
185cf87
[ONOS-8148][SDFAB-618] Avoid meter map distruction in cluster environ…
Andrea-Campanella Sep 24, 2021
f3af464
Tagging 2.5.4
OnLabJenkins Sep 30, 2021
852ff85
Starting snapshot 2.5.5-SNAPSHOT
OnLabJenkins Sep 30, 2021
d06b783
[SDFAB-622] Protect phased recovery from wrong port config
pierventre Sep 27, 2021
e3c605e
Fix to properly encode several MASKED criterion into JSON.
Sep 21, 2021
a4d40f3
Remove logic to create a link when network configuration is added.
Sep 21, 2021
0b3d1ab
Fix to prevent a NullPointerException and instead return an invalid l…
Sep 20, 2021
e1f8010
[SDFAB-642][SDFAB-643] Fix device disconnection when an instance rejoins
pierventre Oct 1, 2021
c4338af
Tagging 2.5.5-rc1
OnLabJenkins Oct 7, 2021
eaaaf0d
Starting snapshot 2.5.5-SNAPSHOT
OnLabJenkins Oct 7, 2021
5c7fe3a
Fix to reinstall flow rules when they are missing in FlowRuleService.
Sep 22, 2021
78c3927
[OpenFlow] Save dp_desc as a device annotation
miguelbf-alb Oct 9, 2021
c4d6a7c
Log exception message when intent compiling fails
Oct 6, 2021
7aa03d7
ensure that the tests for forcesvg can be run by inlining JSON
SeanCondon Oct 21, 2021
eda832a
[ONOS-8149] Fix for updating version stored in application store when…
AnuragChadha Sep 29, 2021
3657519
[ONOS-8150][VOL-4414] Fix for NPE in rest API after app gets uninstalled
Andrea-Campanella Oct 25, 2021
a3fa26c
[OVSDB] Fix ovsdb passive mode connections
miguelbf-alb Oct 13, 2021
2c39dea
[SDFAB-713] Ensure TrafficMonitor is properly shutdown
pierventre Oct 25, 2021
178046b
[SDFAB-705] Fix GUI for the control and data plane resiliency
pierventre Oct 20, 2021
757307b
[P4Runtime] Make sure write requests contain the codec failure reason
miguelbf-alb Oct 20, 2021
3a61556
Fix npe during hostVanished handling
pierventre Oct 25, 2021
5971950
Return intent collection with details
Oct 4, 2021
fa5dc3c
[SDFAB-753] Improve ONOS cluster event
pierventre Nov 5, 2021
75ac284
[SDFAB-753] Optimize several ONOS components
pierventre Nov 9, 2021
ce99420
Add architecture method to PiPipelineModel Interface.
Nov 14, 2021
a59138b
Fix ClassCastException caused by sorting intents in gui when using bo…
Nov 18, 2021
17bace5
[SDFAB-576] Fix serialization of bytesequence
pierventre Nov 18, 2021
00ac250
[SDFAB-821] Implement auto-recovery mechanism for failed mastership c…
pierventre Dec 2, 2021
321f75a
[ONOS-8151] Re-send request for flow removal in case the flow is in P…
Andrea-Campanella Dec 14, 2021
33cc708
[SDFAB-820] Improve error logging in StreamClientImpl
Dec 15, 2021
e769afd
Tagging 2.5.5
OnLabJenkins Dec 19, 2021
68b4048
Starting snapshot 2.5.6-SNAPSHOT
OnLabJenkins Dec 19, 2021
a86c946
Mitigate log4j2 issues identified in CVE-2021-44228
daniele-moro Dec 16, 2021
a57652d
Refactor of UpfProgrammable APIs
Nov 22, 2021
5ab309f
Fix toString in UPF UE Sessions and Terminations
daniele-moro Jan 5, 2022
a618d74
Avoid probing hosts on non-existent or disabled ports
Jan 5, 2022
041d449
Upgrade karaf to version 4.2.14
ray-milkey Jan 5, 2022
bb2a72c
[SDFAB-887][SDFAB-893] Missig flowrules in the ECFlowRuleStore
pierventre Jan 4, 2022
d70d3f5
Missing update of the karaf home
pierventre Jan 12, 2022
0e9cceb
Fix: invoke a fake role reply ack on role change event for ovsdb
gunine Jan 11, 2022
97fd80c
[SDFAB-834] Add application filtering to ONOS UPF programmable APIs
daniele-moro Jan 13, 2022
d9ec6be
Tagging 2.5.6
OnLabJenkins Jan 26, 2022
f886bff
Starting snapshot 2.5.7-SNAPSHOT
OnLabJenkins Jan 26, 2022
7a77287
New PiInterpreter API to map logical port to long type
Jan 24, 2022
2e70e23
Fix to notify the link provider service form netcfglinkprovider when …
Jan 26, 2022
2018fa5
Fix ONOS CI by removing the usage of getRegisteredApps
pierventre Jan 31, 2022
374e261
[SDFAB-944] Add support for `id` leaf in GNMI driver
pierventre Jan 31, 2022
de1f1f7
Refactor UPF entities to have consistent naming and string representa…
daniele-moro Jan 26, 2022
c19294d
Introduce cfg property to enable/disable read port-id path
pierventre Feb 2, 2022
bac5f69
Handle huge egress port number in PreReplicaCodec
Feb 3, 2022
34583b7
Replace tost with sdfabric
Feb 5, 2022
4a1b4fb
Fix get all meters filtering by device id
daniele-moro Feb 8, 2022
ca5cfe7
Add sdk-port annotation with discover port from Stratum
Feb 7, 2022
b25299a
[SDFAB-831] Add UPF meters to UpfProgrammable APIs
daniele-moro Jan 26, 2022
3894e9e
Use N3 instead of S1U terminology
daniele-moro Feb 10, 2022
cdcd91c
[SDFAB-933] Integrate atomix-3.1.12 and expose demote API
pierventre May 6, 2021
d7cae13
Add probeReachability API to the DeviceProvider
pierventre Feb 3, 2022
b2f636b
[SDFAB-977][SDFAB-978] Implement persistent mastership logic in ONOS
pierventre Jan 3, 2022
d510b7d
[SDFAB-935] Optimize and improve the p. mastership
pierventre Feb 3, 2022
782e154
curl in onos-cfg wants uppercase post as parameter
daniele-moro Feb 15, 2022
f497d13
[SDFAB-1048] Fix wiring issue caused by readPortId
pierventre Feb 15, 2022
25c6278
Relax meters translation checks
pierventre Feb 24, 2022
9c4c58f
[SDFAB-954] Non-leader instance can mark UNKNOWN the pipeline.
pierventre Jan 25, 2022
e3e577f
[SDFAB-1014] Pending flows and missing groups in the GroupStore
pierventre Feb 10, 2022
eed482b
[SDFAB-1015] Introduce gracePeriod and defer mastership check
pierventre Feb 18, 2022
2ad220f
[SDFAB-1006] Purge groups and flows failed
pierventre Feb 18, 2022
270cf6d
[SDFAB-1015] Use gNOI to probe reachability and increase short timeouts
pierventre Feb 22, 2022
64462f1
Fix availability checks in GDP
pierventre Feb 24, 2022
ee60f76
Allow building UpfApplication matching only on slice_id
ccascone Mar 1, 2022
5a5c8aa
Introduce allowlist for back to back duplicate events
pierventre Feb 28, 2022
f260c91
Improve Mastership logging
pierventre Mar 1, 2022
6d5f0ae
Tagging 2.5.7-rc1
OnLabJenkins Mar 3, 2022
f092d04
Starting snapshot 2.5.7-SNAPSHOT
OnLabJenkins Mar 3, 2022
ee45c10
[SDFAB-726] Improve logging in the ECFlowRuleStore
pierventre Mar 4, 2022
bbfbfe1
Filter out meters default config
pierventre Mar 4, 2022
40bbf72
Tagging 2.5.7-rc2
OnLabJenkins Mar 10, 2022
984e434
Starting snapshot 2.5.7-SNAPSHOT
OnLabJenkins Mar 10, 2022
7c92e07
Run maven in batch and quite mode during maven artifacts upload
daniele-moro Mar 8, 2022
b471bd1
Add slice meter to upf programmable driver behaviour
daniele-moro Mar 9, 2022
965aa84
[SDFAB-1100] Fix flow removal logic
pierventre Mar 21, 2022
2f427df
Tagging 2.5.7-rc3
OnLabJenkins Mar 24, 2022
558422b
Starting snapshot 2.5.7-SNAPSHOT
OnLabJenkins Mar 24, 2022
2adf445
[SDFAB-1136] Remove meter mirror
pierventre Mar 21, 2022
9ac2e32
Tagging 2.5.7
OnLabJenkins Mar 28, 2022
9cb9086
Starting snapshot 2.5.8-SNAPSHOT
OnLabJenkins Mar 28, 2022
3821399
[SDFAB-1147] Encode P4Runtime messages with canonical byte string
Mar 17, 2022
07af21d
[SDFAB-1100] In-order flowrule processing
pierventre Mar 18, 2022
55c6f33
Update FlowRuleOperations API
pierventre Mar 29, 2022
9f82065
[ONOS-8157] Adding port disable during periodic checkeker for device …
Andrea-Campanella Apr 27, 2022
db0e125
[SDFAB-1177] Separate ingress and egress UpfCounter
daniele-moro Apr 28, 2022
8042762
Removing json package dependency due to licensing issues
Andrea-Campanella Jun 9, 2022
32762fa
Enabling role timeout configuration on the Device Manager
Andrea-Campanella Jun 29, 2022
08a13e4
Tagging 2.5.8
OnLabJenkins Jun 30, 2022
675d2a9
Starting snapshot 2.5.9-SNAPSHOT
OnLabJenkins Jun 30, 2022
846c8b1
[SDFAB-1196] Build ONOS with Bazel 6.0.0 pre-release
pierventre May 6, 2022
cf38ba3
[SDFAB-1197] First stab to update ONOS to py3
pierventre May 6, 2022
dd14a4e
[SDFAB-189] Update ONOS CI and test new image
pierventre Jul 29, 2022
ffd4706
Tagging 2.5.9
OnLabJenkins Jul 29, 2022
8ba60ef
Starting snapshot 2.5.10-SNAPSHOT
OnLabJenkins Jul 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web/gui2/node_modules
26 changes: 12 additions & 14 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
# By default, we build and run ONOS using the Bazel-provided remote JDK. The
# specific JDK version is defined in tools/build/jdk/BUILD.
#
# If you prefer to use your locally installed JDK, replace the --javabase and
# --host_javabase arguments with the following lines. ABSOLUTE_JAVABASE should
# point to the "JAVA_HOME" of your JDK.
# If you prefer to use your locally installed JDK use local_java_repositoy
# in the WORKSPACE file.
#
# build --javabase=@bazel_tools//tools/jdk:absolute_javabase
# build --host_javabase=@bazel_tools//tools/jdk:absolute_javabase
# build --define=ABSOLUTE_JAVABASE=<path/to/jdk>
# build --define=RUN_WITH_ABSOLUTE_JAVABASE=true
# https://bazel.build/docs/bazel-and-java

build --javabase=@org_onosproject_onos//tools/build/jdk:default_jdk
build --host_javabase=@org_onosproject_onos//tools/build/jdk:default_jdk
# Builds using remotejdk_11, executes using remotejdk_11 or local_jdk
build --java_language_version=11
build --java_runtime_version=remotejdk_11
build --tool_java_language_version=11
build --tool_java_runtime_version=remotejdk_11

build --java_toolchain=@org_onosproject_onos//tools/build/jdk:default_toolchain
build --host_java_toolchain=@org_onosproject_onos//tools/build/jdk:default_toolchain

build --host_force_python=PY2
build --host_force_python=PY3

build --nouse_ijars
build --experimental_strict_action_env

# For external/io_grpc_grpc_java/core/src/main/java/io/grpc/internal/RetriableStream.java
build --javacopt="-Xep:GuardedBy:WARN -Xep:ComparableType:WARN -Xep:ReturnValueIgnored:OFF"

# intellij-bazel plugin needs this
build --incompatible_new_actions_api=false
build --incompatible_generated_protos_in_virtual_imports=false
build --incompatible_depset_union=false

# For bazelbuild/rules_nodejs
build --define=angular_ivy_enabled=True
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
6.0.0-pre.20220421.3
2 changes: 1 addition & 1 deletion .gitreview
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ host=gerrit.onosproject.org
port=29418
project=onos.git
defaultremote=origin
defaultbranch=master
defaultbranch=onos-2.5
15 changes: 12 additions & 3 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ profiles([
"minimal",
"seba",
"stratum",
"tost",
"sdfabric",
"sona",
])

Expand All @@ -35,7 +35,7 @@ filegroup(
":minimal_profile": extensions("minimal") + apps("minimal"),
":seba_profile": extensions("seba") + apps("seba"),
":stratum_profile": extensions("stratum") + apps("stratum"),
":tost_profile": extensions("tost") + apps("tost"),
":sdfabric_profile": extensions("sdfabric") + apps("sdfabric"),
":sona_profile": extensions("sona") + apps("sona"),
"//conditions:default": extensions() + apps(),
}),
Expand Down Expand Up @@ -77,7 +77,7 @@ genrule(
":minimal_profile": apps("minimal"),
":seba_profile": apps("seba"),
":stratum_profile": apps("stratum"),
":tost_profile": apps("tost"),
":sdfabric_profile": apps("sdfabric"),
":sona_profile": apps("sona"),
"//conditions:default": apps(),
}),
Expand Down Expand Up @@ -184,6 +184,11 @@ buildifier(
"./web/gui2/node_modules/@angular/bazel/src/esm5.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/common/tsconfig.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/common/compilation.bzl",
"./web/gui2/node_modules/@bazel/rollup/rollup_bundle.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/ts_project.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/build_defs.bzl",
"./web/gui2/node_modules/@bazel/protractor/protractor_web_test.bzl",
"./web/gui2/node_modules/@bazel/typescript/third_party/github.com/bazelbuild/bazel/src/main/protobuf/BUILD.bazel",
],
mode = "check",
)
Expand All @@ -195,6 +200,10 @@ buildifier(
"./web/gui2/node_modules/@angular/bazel/src/esm5.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/common/tsconfig.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/common/compilation.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/ts_project.bzl",
"./web/gui2/node_modules/@bazel/typescript/internal/build_defs.bzl",
"./web/gui2/node_modules/@bazel/protractor/protractor_web_test.bzl",
"./web/gui2/node_modules/@bazel/typescript/third_party/github.com/bazelbuild/bazel/src/main/protobuf/BUILD.bazel",
],
mode = "fix",
)
32 changes: 23 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# Copyright 2015-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# With this dockerfile you can build a ONOS Docker container

ARG JOBS=2
ARG PROFILE=default
ARG TAG=11.0.8-11.41.23
ARG JAVA_PATH=/usr/lib/jvm/zulu11-ca-amd64
ARG TAG=11.0.13-11.52.13
ARG JAVA_PATH=/usr/lib/jvm/zulu11

# First stage is the build environment.
# zulu-openjdk images are based on Ubuntu.
Expand All @@ -10,7 +26,6 @@ FROM azul/zulu-openjdk:${TAG} as builder
ENV BUILD_DEPS \
ca-certificates \
zip \
python \
python3 \
git \
bzip2 \
Expand All @@ -21,7 +36,7 @@ RUN apt-get update && apt-get install -y ${BUILD_DEPS}

# Install Bazelisk, which will download the version of bazel specified in
# .bazelversion
RUN curl -L -o bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.5.0/bazelisk-linux-amd64
RUN curl -L -o bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64
RUN chmod +x bazelisk && mv bazelisk /usr/bin

# Build-stage environment variables
Expand All @@ -36,16 +51,15 @@ WORKDIR ${ONOS_ROOT}
# Build ONOS using the JDK pre-installed in the base image, instead of the
# Bazel-provided remote one. By doing wo we make sure to build with the most
# updated JDK, including bug and security fixes, independently of the Bazel
# version.
# version. NOTE that WORKSPACE-docker file defines dockerjdk
ARG JOBS
ARG JAVA_PATH
ARG PROFILE
RUN bazelisk build onos \
RUN cat WORKSPACE-docker >> WORKSPACE && bazelisk build onos \
--jobs ${JOBS} \
--verbose_failures \
--javabase=@bazel_tools//tools/jdk:absolute_javabase \
--host_javabase=@bazel_tools//tools/jdk:absolute_javabase \
--define=ABSOLUTE_JAVABASE=${JAVA_PATH} \
--java_runtime_version=dockerjdk_11 \
--tool_java_runtime_version=dockerjdk_11 \
--define profile=${PROFILE}

# We extract the tar in the build environment to avoid having to put the tar in
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ The following packages are required:
* zip
* curl
* unzip
* python2.7
* python3 (needed by Bazel)

### Build ONOS from source
Expand Down Expand Up @@ -136,8 +135,7 @@ through pull requests on GitHub.

To contribute to ONOS, please refer to [Sample Gerrit
Workflow](https://wiki.onosproject.org/display/ONOS/Sample+Gerrit+Workflow). It
should includes most of the things you'll need to get your contribution started!

should include most of the things you'll need to get your contribution started!

## More information

Expand Down
12 changes: 5 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ load("//tools/build/bazel:local_jar.bzl", "local_atomix", "local_jar", "local_ya

# Use this to build against locally built Atomix
#local_atomix(
# path = "/Users/tom/atomix",
# version = "3.0.8-SNAPSHOT",
# path = "/home/sdn/atomix",
# version = "3.1.12-SNAPSHOT",
#)

# Use this to build against locally built YANG tools
Expand Down Expand Up @@ -124,9 +124,9 @@ load("//tools/build/bazel:gnoi_workspace.bzl", "generate_gnoi")
generate_gnoi()

# For GUI2 build
RULES_NODEJS_VERSION = "1.6.0"
RULES_NODEJS_VERSION = "2.3.2"

RULES_NODEJS_SHA256 = "f9e7b9f42ae202cc2d2ce6d698ccb49a9f7f7ea572a78fd451696d03ef2ee116"
RULES_NODEJS_SHA256 = "b3521b29c7cb0c47a1a735cce7e7e811a4f80d8e3720cf3a1b624533e4bb7cb6"

load("//tools/build/bazel:topo_workspace.bzl", "generate_topo_device")

Expand Down Expand Up @@ -161,6 +161,7 @@ load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "npm_install"
# because "selenium-webdriver" which is required for "ng e2e" cannot be installed.
node_repositories(
node_repositories = {
"10.16.0-linux_arm64": ("node-v10.16.0-linux-arm64.tar.gz", "node-v10.16.0-linux-arm64", "2d84a777318bc95dd2a201ab8d700aea7e20641b3ece0c048399398dc645cbd7"),
"10.16.0-darwin_amd64": ("node-v10.16.0-darwin-x64.tar.gz", "node-v10.16.0-darwin-x64", "6c009df1b724026d84ae9a838c5b382662e30f6c5563a0995532f2bece39fa9c"),
"10.16.0-linux_amd64": ("node-v10.16.0-linux-x64.tar.xz", "node-v10.16.0-linux-x64", "1827f5b99084740234de0c506f4dd2202a696ed60f76059696747c34339b9d48"),
"10.16.0-windows_amd64": ("node-v10.16.0-win-x64.zip", "node-v10.16.0-win-x64", "aa22cb357f0fb54ccbc06b19b60e37eefea5d7dd9940912675d3ed988bf9a059"),
Expand All @@ -185,9 +186,6 @@ npm_install(

# Install any Bazel rules which were extracted earlier by the npm_install rule.
# Versions are set in web/gui2-fw-lib/package.json
load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies")

install_bazel_dependencies()

RULES_WEBTESTING_VERSION = "0.3.3"

Expand Down
16 changes: 16 additions & 0 deletions WORKSPACE-docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# Appended by the Dockerfiles to help bazel finding the local path of
# the Azul jvm. When we build docker images we use the jvm available
# in the base image to compile ONOS. In order to do that we have to
# provide the absolute path by using the local_java_repository.

# local_java_repository for docker based builds
load("@bazel_tools//tools/jdk:local_java_repository.bzl", "local_java_repository")

ABSOLUTE_JAVABASE = "/usr/lib/jvm/zulu11"

local_java_repository(
name = "dockerjdk",
version = "11",
java_home = ABSOLUTE_JAVABASE,
)
4 changes: 2 additions & 2 deletions apps/artemis/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COMPILE_DEPS = CORE_DEPS + JACKSON + NETTY + CLI + [
"@okio//jar",
"@commons_net//jar",
"@io_socket_client//jar",
"@json//jar",
"@minimal_json//jar",
"@engine_io_client//jar",
"@io_netty_netty//jar",
"@io_netty_netty_transport//jar",
Expand All @@ -18,7 +18,7 @@ COMPILE_DEPS = CORE_DEPS + JACKSON + NETTY + CLI + [
BUNDLES = [
"@commons_net//jar",
"@io_socket_client//jar",
"@json//jar",
"@minimal_json//jar",
"@engine_io_client//jar",
"//apps/artemis:onos-apps-artemis",
"//apps/routing-api:onos-apps-routing-api",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package org.onosproject.artemis;

import io.netty.channel.ChannelHandlerContext;
import org.json.JSONObject;
import com.eclipsesource.json.JsonObject;
import org.onosproject.artemis.impl.objects.ArtemisMessage;

/**
Expand All @@ -37,5 +37,5 @@ public interface ArtemisPacketProcessor {
*
* @param msg BGP Update message
*/
void processMonitorPacket(JSONObject msg);
void processMonitorPacket(JsonObject msg);
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.common.collect.Streams;
import org.json.JSONArray;
import org.json.JSONException;
import com.eclipsesource.json.JsonArray;
import org.onlab.packet.IpAddress;
import org.onlab.packet.IpPrefix;
import org.onosproject.core.ApplicationId;
Expand Down Expand Up @@ -392,15 +391,11 @@ protected Map<Integer, Map<Integer, Set<Integer>>> paths() {
* <code>50</code> friendly anycaster announcing our prefix
* <code>100+i</code> BGP hijack type i (0 &lt;= i &lt;=2)
*/
int checkPath(JSONArray path) {
int checkPath(JsonArray path) {
// TODO add MOAS check
ArrayList<Integer> asnPath = new ArrayList<>();
for (int i = 0; i < path.length(); i++) {
try {
asnPath.add(path.getInt(i));
} catch (JSONException e) {
log.warn("checkPath", e);
}
for (int i = 0; i < path.size(); i++) {
asnPath.add(path.get(i).asInt());
}
// reverse the list to get path starting from origin
Collections.reverse(asnPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.util.CharsetUtil;
import org.json.JSONObject;
import com.eclipsesource.json.JsonObject;
import org.onlab.packet.IpAddress;
import org.onlab.packet.IpPrefix;
import org.onlab.packet.TpPort;
Expand Down Expand Up @@ -415,7 +415,7 @@ public void processMoasPacket(ArtemisMessage msg, ChannelHandlerContext ctx) {
}

@Override
public void processMonitorPacket(JSONObject msg) {
public void processMonitorPacket(JsonObject msg) {

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

package org.onosproject.artemis.impl;

import org.apache.commons.lang.exception.ExceptionUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.eclipsesource.json.JsonObject;
import com.eclipsesource.json.JsonArray;
import org.onlab.packet.IpPrefix;
import org.onosproject.artemis.ArtemisDetector;
import org.onosproject.artemis.ArtemisEventListener;
Expand Down Expand Up @@ -70,30 +68,26 @@ protected void deactivate() {
void handleArtemisEvent(ArtemisEvent event) {
// If an instance was deactivated, check whether we need to roll back the upgrade.
if (event.type().equals(ArtemisEvent.Type.BGPUPDATE_ADDED)) {
JSONObject take = (JSONObject) event.subject();
JsonObject take = (JsonObject) event.subject();

log.info("Received information about monitored prefix " + take.toString());
artemisService.getConfig().ifPresent(config ->
config.monitoredPrefixes().forEach(artemisPrefix -> {
try {
IpPrefix prefix = artemisPrefix.prefix(), receivedPrefix;
IpPrefix prefix = artemisPrefix.prefix(), receivedPrefix;

receivedPrefix = IpPrefix.valueOf(take.getString("prefix"));
receivedPrefix = IpPrefix.valueOf(take.get("prefix").asString());

if (prefix.contains(receivedPrefix)) {
JSONArray path = take.getJSONArray("path");
if (prefix.contains(receivedPrefix)) {
JsonArray path = take.get("path").asArray();

int state = artemisPrefix.checkPath(path);
if (state >= 100) {
log.info("BGP Hijack detected; pushing prefix for hijack Deaggregation");
eventDispatcher.post(new ArtemisEvent(ArtemisEvent.Type.HIJACK_ADDED,
receivedPrefix));
} else {
log.info("BGP Update is legit");
}
int state = artemisPrefix.checkPath(path);
if (state >= 100) {
log.info("BGP Hijack detected; pushing prefix for hijack Deaggregation");
eventDispatcher.post(new ArtemisEvent(ArtemisEvent.Type.HIJACK_ADDED,
receivedPrefix));
} else {
log.info("BGP Update is legit");
}
} catch (JSONException e) {
log.error(ExceptionUtils.getFullStackTrace(e));
}
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import com.google.common.collect.Sets;
import io.netty.channel.ChannelHandlerContext;
import org.json.JSONObject;
import com.eclipsesource.json.JsonObject;
import org.onlab.packet.IpPrefix;
import org.onosproject.artemis.ArtemisMonitor;
import org.onosproject.artemis.ArtemisPacketProcessor;
Expand Down Expand Up @@ -79,7 +79,7 @@ public void processMoasPacket(ArtemisMessage msg, ChannelHandlerContext ctx) {
}

@Override
public void processMonitorPacket(JSONObject msg) {
public void processMonitorPacket(JsonObject msg) {
// TODO: in future maybe store the BGP Update message and propagate it to the cluster instead of Events
eventDispatcher.post(new ArtemisEvent(ArtemisEvent.Type.BGPUPDATE_ADDED, msg));
}
Expand Down
Loading