90 Commits

Author SHA1 Message Date
pierventre
e7c0bd18af [AETHER-1529] Nodes not READY due to gui/gui2 bundles being in WAITING
In particular gui2 bundle does not get activated due to the missing UiExtensionManager.cfgdef.
This patch manually copy the cfgdef generated for gui bundle into the final jar of gui2

Change-Id: I27fea43faa06f70bc8c0570c53a1dbf5cfd23e89
(cherry picked from commit 37691eb75be5ee295279bb3633bcefeb7166b444)
2021-04-14 08:26:59 +00:00
Sean Condon
436c60a1f6 Upgraded to bazel 3.7.2 and rules_nodejs 2.3.2
Change-Id: If53686f2475c4f367909de577b4da95de8e16768
2021-01-04 15:42:57 +00:00
Lakshya Thakur
de3e6f52c8 Implemented HttpResponseHeadersFilter to set the CSP frame ancestors header to prevent iframe embedding
Change-Id: Ib58e452e291c4df407d30e8b914ab6aa20ae77bc
2020-12-02 07:32:43 +00:00
Lakshya Thakur
f111f57be9 Added CSP to prevent iframe embedding of gui2 and swagger ui
Change-Id: I77c5524cbb80f8f06de5f1cba8412cfb58a36324
2020-11-27 23:47:55 +05:30
Davide Scano
555617a9f9 INT app gui2
This patch contains the files needed by the INT app to work with gui2.
More in detail I reuse/modifie the html and the css, already provided in
the inbandtelemetry folder. I add the file needed to utilize the gui2,
e.g,intapp-gui2-lib.module.ts.

Link to my dropbox for screenshots: 
https://www.dropbox.com/sh/ie2l0flcm8igesk/AAAsP2RdMbNbnt6A88lmBczaa?dl=0

Change-Id: I710c09f3a04a139a4482bb7aae3b3b76b39e67e6
2020-06-04 07:23:58 +00:00
Sean Condon
4de9b920b7 [ONOS-8094] GUI2 Topo details fails to show localized messages for English
Change-Id: I6bd9d64350358fb66afbc0d46a6fd31b5e499af0
2020-06-01 09:37:40 +01:00
Sean Condon
ff5bb451f0 GUI2 fixed some unit tests
and updated documentation

Change-Id: Icb66f91b64172359c9ddadd4bfd2531ed28f5be0
2020-05-27 08:30:48 +01:00
Sean Condon
d3d4ac1d9e [ONOS-8095] GUI2 Adjusted the width of columns in the flow table view
Change-Id: I4ffa81a82d1c7baa0758ce158a4c7a8d0af53a49
2020-05-26 09:42:01 +01:00
Sean Condon
97aa670c9a [ONOS-8097] Pipeconf table top header misaligned
Change-Id: I53177528333684e244478b9ea728b535ce9ad6e6
2020-05-22 15:54:01 +00:00
Sean Condon
8a8bc4b1e5 [ONOS-8096] In GUI2 device panel space before colon creates unnecessary wrap
Change-Id: I08ca8b70dc6c21d12714f510c9fa3473ad41c261
2020-05-22 07:34:24 +00:00
Sean Condon
f86cfc9b3c GUI2 add a karma.conf.js for unit tests
Change-Id: I2db9e9fcbaa6b6cf0dcdae38bff8628c0e706cf4
2020-04-15 17:02:41 +01:00
Sean Condon
3dd062fb14 GUI2 Change gui2-fw-lib refs to abs paths
Change-Id: Iddc121c70ddf9fa69c8d9f99e9768de6c2143eab
2020-04-14 09:29:28 +01:00
Sean Condon
e4e8f6a889 Upgraded to Angular 9.1.0 and rules_nodejs to 1.6
Added in command to generate gui2-fw-lib as NPM package

Change-Id: Id21f6f17b6edcd09cffd237f7ece90cf97a71bc2
2020-04-13 10:14:32 +00:00
Sean Condon
ed77aeb7bc Upgraded some components for GUI2
Change-Id: I83795ed9b546940d0a5fa151a40504545270774b
2020-03-16 10:53:38 +00:00
Thomas Vachuska
edb437a5ad Minor GUI tweaks:
* Fix header margin for all table views to align with the table
* Fix margins in GUI map selector
* Removed node drop-shadow in the GUI topology by reducing blur to 0
* Adjusted device label sizing to favour more white-space than to clip and squeeze text

Change-Id: I9ef3eee30714a5aaa9337582d6b1a2e2fb2b302c
2020-02-28 15:20:55 +00:00
Yi Tseng
bb93b6e7ff
Add missing route to Roadm UI
Change-Id: Iece3e2212e0a227efbc0b015f3826ca3e86b77f8
2020-02-12 17:22:13 -08:00
Sean Condon
6ceebf0392 GUI2 Upgraded Angular to 9rc10 and rules_nodejs to 1.10
Change-Id: I56f5f28dffb9102b2b7920fcbf6a0b084051662c
2020-01-24 09:04:29 +00:00
Sean Condon
5c1c3a8b75 GUI2 changed web socket port to follow main window port rather than hardcode
Change-Id: I0ea090f628ee60f9d930be9307daa8d081465d97
2020-01-22 12:07:35 +00:00
Sean Condon
d6f95bfcef Added the Yang GUI to GUI2
Change-Id: I843db3838668e21a77837faaf00d4d6834676d8d
2020-01-21 20:30:36 +00:00
Sean Condon
a3ad779274 Added back in Bazel tests for gui2-fw-lib and gui2-topo-lib
Also used a named path in typescript for gui2-fw-lib

Change-Id: I7233565e53b9b86e1766228ecc96b21ea6f7499d
2020-01-08 13:11:31 +00:00
Sean Condon
4fff373774 Updating the README to test the build process
Change-Id: I4db415524372602dd609be547801de9d177b45ef
2020-01-07 18:42:34 +00:00
Sean Condon
98b6ddb28a Added native Bazel build to GUI2. Reduced a lot of the unused Angular CLI structures
Reviewers should look at the changes in WORKSPACE, BUILD, BUILD.bazel, README.md files
This is only possible now as rules_nodejs went to 1.0.0 on December 20
gui2 has now been made the entry point (rather than gui2-fw-lib)
No tests or linting are functional yet for Typescript
Each NgModule now has its own BUILD.bazel file with ng_module
gui2-fw-lib is all one module and has been refactored to simplify the directory structure
gui2-topo-lib is also all one module - its directory structure has had 3 layers removed
The big bash script in web/gui2/BUILD has been removed - all is done through ng_module rules
in web/gui2/src/main/webapp/BUILD.bazel and web/gui2/src/main/webapp/app/BUILD.bazel

Change-Id: Ifcfcc23a87be39fe6d6c8324046cc8ebadb90551
2020-01-04 12:17:01 +00:00
Sean Condon
afe47c2eae Added a Pipeconf View to GUI2 including Table Statistics
Change-Id: Ic043f78d7408a7f96a66735f2493cf0765c01885
2019-12-20 10:48:23 +00:00
Sean Condon
4e55c804bb Added in support for navigating to Topo View from Intent View
Change-Id: Ia62428dee29013cc7fa52727662b67f5673d725c
2019-12-04 10:00:55 +00:00
Andrea Campanella
cf156cde00 Fixing bazel hide files tool versions
Change-Id: Ie44c209f4e14de2d435fb437a08e12e5961e7a4b
2019-11-26 17:54:40 +01:00
Sean Condon
dfc6dbab27 Added BUILD file for gui2-fw-lib bazel build
This is another step along the way of having Native Bazel builds for Angular
Not fully there yet - waiting for Angular v9 in next 2 weeks
but don't want to wait that long to merge all of this

For most people the main concern is updates to WORKSPACE

Change-Id: I28170b8f8daaa2959327c259fe6a10df075113bb
2019-11-21 20:40:38 +00:00
Sean Condon
0a884ad26a Upgrading NodeJS to 10.16 and GUI2 to Angular 8
Change-Id: I722ffd8438728e6658a0589aa12b087ad5da8864
2019-11-04 21:07:45 +00:00
Sean Condon
c687ccb0b5 [ONOS-8033] No Visible Indication for Active Applications in ONOS
Also tidied up onos.service.ts a bit for unused methods
Changed error message in Bazel build to point to new location under Bazel 1.0

Change-Id: Ie95f6fbb108386d3632cc8fa6656dc5b699023d9
2019-10-25 13:06:28 +00:00
Carmelo Cascone
d33d3b4838 Build ONOS exclusively with Bazel-provided remote JDK
This change make it possible to build ONOS in a host system without JDK
installed, or ignoring the one installed, instead relying exclusively on
the "remote" JDK provided by Bazel. The JDK version, along with the
toolchain configuration (language source and target values), are checked
in as part of the build files (tools/build/bazel/BUILD), thus enabling
deterministic builds that are less dependent of the host environment.

To allow this, this change replaces all references to JDK-related tools
expected to be on the host PATH, such as the jar command, with their
counterpart from the remote JDK (now a sandboxed relative path). This is
achieved by:

  * Creating a new "jdk_genrule" macro that exposes the remote JDK bin
    directory to the PATH visible by the genrule command. This is used
    for all genrule targets invoking for example `jar`;
  * Modifying custom Starlak rule implementations by replacing
    invocation to JDK tools with a path from the remote one.
  * Renaming the onos/lib directory to onos/deps as it clashes with
    the Bazel-provided JDK's lib directory (that for some strange reason
    is resolved on the ONOS workspace)

Finally, this change is reflected on the Dockerfile which now builds
ONOS from an Ubuntu image with no JDK installed.

Change-Id: Ie7d990cfce6fef00ddb4ffffe4c6205b8530fb47
2019-06-18 22:26:33 +00:00
Boyuan Yan
6b23b38455 [ONOS-7995] upgrade roadm custom view from GUI to GUI2
1. [Finished] Optical-related device view
2. [Finished] Port view
3. [Finished] Power config on Port view (Private implementation)
4. [Finished] Protocol view for TAPI device

Change-Id: Ie9b81cfa9991a7af2dd485a5df3fe582df830d27
Signed-off-by: Boyuan Yan <boyuan@opennetworking.org>
2019-06-12 12:29:05 -07:00
Sean Condon
64060ffa8b GUI2 Updated unit tests for errors relating to topojson testing
Change-Id: Ic6c15ad3e5f9bd18cdb1e64955bc5cec7c8e048c
2019-05-30 15:48:11 +01:00
Sean Condon
4b7818d255 Prepared GUI2 FW lib for publishing on npmjs.org
Change-Id: Icdbdacb24848795b644fc8b76c628fbdb8701e96
2019-05-23 08:44:12 +00:00
Sean Condon
b0a196aa54 GUI2 bug fix for Hosts hidden command
Change-Id: Ia1aedb4ab0f9c04bed0bfc324e08815fd8f0a6d1
2019-04-19 15:32:05 +01:00
Sean Condon
6eb2cb8712 GUI2 update Angular component versions to 2.1.0
Change-Id: I47d5ede8c5cfdf77e309b1883984a1220d8d9723
2019-04-17 14:18:28 +01:00
Sean Condon
95fb5749b6 GUI2 Changed loading screen display to be a component
Change-Id: Id1592b498e6827ec4cd3544dec92e46f00e8d378
2019-04-02 20:07:01 +01:00
Sean Condon
28884334ee GUI2 added in the layout topo overlay
Change-Id: I9960f95ae726a5af9950771ed67bcfc9d172e267
2019-03-26 14:36:47 +00:00
Sean Condon
ff85fbede3 GUI2 Extract Topology view in to its own library
Change-Id: I45597d0902c99b5b3d606966866cc518011c54a0
2019-03-20 15:54:02 +00:00
Sean Condon
bf7ff4f3fa Change GUI and GUI2 to be apps rather than core features
Change-Id: I862e5bdbccc29fd78716159e168e7a14bc5053e1
2019-03-20 14:48:49 +00:00
Sean Condon
ee5d4b9366 GUI2 Minor bug fixes to position of devices
Change-Id: I8fff317ea17a7b9311a2900ace75893b234f5633
2019-03-12 03:13:43 +00:00
Sean Condon
ee54576967 GUI2 Handle node additions and removals in Topology view
Change-Id: Ic16fc1325fe338e2136f1cc70febc621342be4f2
2019-03-11 09:44:10 +00:00
Sean Condon
1ae1580bd2 GUI2 added method to zoom to map size
Change-Id: I3aa578b78ebe2ab26f72a7535b8b5e9e0a822cb6
2019-03-04 09:11:16 +00:00
Ray Milkey
40b62fd42c upgrade nodejs bazel rules to version 0.26.0
Change-Id: Iee23d220e2cf2ca5d089ecf271f4a6ef8c9df3a8
2019-02-27 15:00:38 +00:00
Sean Condon
7191054054 GUI2 Absolute locations for Devices and Hosts
Change-Id: I172020a19004b559ae740478d30a2cf9ce08091e
2019-02-24 21:15:36 +00:00
Sean Condon
0d064ec80c GUI2 Added selection of background maps
Change-Id: I88ee69fe2ff24bb1b4b3fe633b04f2f1778f3a82
2019-02-10 22:19:13 +00:00
Sean Condon
59d3137ab5 GUI2 Added in support for custom glyphs
Change-Id: If082b6e5727c278022ed3a72035878098e031611
2019-02-02 20:39:13 +00:00
Sean Condon
b2c483c283 GUI2 add in support for Preferences Service
Change-Id: Icdf2165d9f638aeff1b110a64777b93295935ed2
2019-01-28 22:08:59 +00:00
Sean Condon
9148182d15 GUI2 added in details panel, updated docs
Change-Id: I49a874deeb4de1082f190ea5d0d985c986a978f8
2019-01-09 20:11:28 +00:00
Sean Condon
50855cf1fa Enable link functionality in GUI2 Topology View
Change-Id: I1b88080ecdf8c9b6f8a60af4832a12441186d508
2018-12-28 20:25:53 +00:00
Sean Condon
021f0fa4b0 Update GUI2 topology host icons
Change-Id: I6d74de9df93b91eb9ca126ab54cbc2912c16caff
2018-12-11 03:48:02 +00:00
Sean Condon
4747a1824d Increased timeout for Angular tests for GUI2
Was causing tests to fail in Bazel

Change-Id: Id436ca7fc123a2842471835fddcbc13309a436d1
2018-11-28 17:38:08 +00:00