36 Commits

Author SHA1 Message Date
senthil
63e1c11706 Supporting workflow list & map json data model for workflow context.
Workflow json data model bind to list & map objects
usage. For example
List<Object> data;
Map<Object, Object> data.

Change-Id: I46899c8d2267ebca0663e85302eba2242fbcfdda
2022-07-14 12:13:53 +05:30
Sanjana Venkatachalam
3dd305eb42 Implement CLI support for workflow logs
Added CLI commands to display workflow logs for each context

Change-Id: Ic0a0f323cebc8a21325dd075b20bbdfd104aeae1
2022-07-08 23:47:55 +05:30
Sanjana Venkatachalam
fc25e87c54 Implement logger for workflows
Added Workflow Logger annotation and Log Store

Change-Id: I90b1e34f94083aceff3323660a708756096a0ef0
2022-06-22 20:46:29 +09:00
jaegonkim
ce75d3c68a Revert back of 'ONOS-7963 workflow invocation trigger on ONOS event'.
'ONOS-7963 workflow invocation trigger on ONOS event' needs to be
re-designed, and re-devloped.
So I revert back this.

Change-Id: I97f3cb38e466fb3c9e1a14a78ed69128977c2023
2020-03-24 00:50:55 +00:00
jaegonkim
566991c5fe Prevents system workflow context from duplicated name assignment(with timestamp).
The name of the system workflow context is created based on the
msec timestamp('timestamp = System.currentTimeMillis'), so
duplicated system workflow context name can be assigned in a msec.

In order to prevent this duplicated name assignment,
It is changed to use UUID is used for guaranteeting
the uniqueness of system workflow context name instead of msec timestamp.

And name duplication checking is applied.

Change-Id: I4772e15d361af42bf61b6d47f93fee8a482814af
2020-03-16 00:54:27 +00:00
DongRyeol Cha
d3d8f037f3 Rename the OfOverlayWorkflow to OfOverlayWorkflowRegister
The OfOverlayWorkflow is doing actually register the workflows in store.
So, It is better to rename the with its actuall role.

Change-Id: I6160046e8758c45a2e725d20e0875612a5ad2e1c
2020-01-13 17:24:07 +00:00
m.rahil
b2e9cd97d0 CLI to display workflow status
Change-Id: I3d269693b97237fad5f69723dec0619de2c45055
2020-01-07 18:26:56 +00:00
nitinanand
c8b7025c0e ONOS-7963 workflow invocation trigger on ONOS event
Change-Id: Ie9014bfa77f5514c3580042f9ff2add8e42f25f6
2020-01-07 17:13:22 +00:00
gyewan.an
ecb3269fd1 Add REST API for invoking workflow.
Currently, there is no way to invoking using REST API.
I've added REST API.

json data example:

{
  "op": "workflow.invoke",
  "params": {
    "workplace": "Nova-000",
    "id": "of-overlay.workflow-nova",
    "data": {
      "mgmtIp": "192.168.10.8",
      "ovsdbPort": 6641,
      "sshAccessInfo": {
        "remoteIp": "192.168.10.8",
        "port": 22,
        "user": "root",
        "password": "iloveyou",
        "keyfile": "~/.ssh/id_rsa"
      },
      "ovsDatapathType": "system",
      "physicalPorts": [
        "nova0_1"
      ],
      "vtepIp": "120.0.0.200/24",
      "annotations": {
        "rackId": 1,
        "rackPosition": 3
      }
    }
  }
}

Change-Id: I2ce3bc5a59ce1cbe91c8c6f83bd1f25e81933ce3
2019-07-22 13:08:33 +00:00
m.rahil
faf04d7cf6 ovs bridge creation using static data model support
Change-Id: I74a0c6ef0344599c709359b65586420ce8535606
2019-07-06 05:02:03 +00:00
jaegonkim
4064ed1f87 [ONOS-7732] Automating switch workflow - workflow program counter & cli refactoring
Change-Id: I90f2085dbb253c8ea4598be31a8fd12760a1f739
2019-05-21 07:50:12 +00:00
jaegonkim
86561530cc [ONOS-7732] Automating switch workflow - workplace print cli
Change-Id: I0fc5db83d44dbfbd9f94d9b347cb1d0f40698b5f
2019-05-18 08:56:22 +09:00
jaegonkim
2baae8c8d1 [ONOS-7732] Automating switch workflow - desigating fields of program counter as final
Change-Id: Iff8a005a76e3ca9e70aea033b3088268096688dc
2019-05-16 05:43:17 +00:00
m.rahil
09251881bc 'Static data model implementation in Worklet
Change-Id: Ic5eeb26eaea547523befd509f9f48281cb4c2031
2019-05-16 05:02:12 +00:00
jaegonkim
f85ee3c201 [ONOS-7732] Automating switch workflow - program counter refactoring
Change-Id: Ic5271121dad45222ded24ea41dbb2f5efba1ff2e
2019-04-21 11:10:25 +09:00
jaegonkim
44628d6c29 [ONOS-7732] Automating switch workflow - checking workflow definitition
Change-Id: I66b3bcd43377869b82be5bb7a446152857344355
2019-04-12 22:34:01 +00:00
jaegonkim
50370b5664 [ONOS-7732] Automating switch workflow - workflow event map cli completer
Change-Id: I2fbabf4b42ab99fcf439e6b5864b5c1a53c1530f
2019-04-06 16:27:09 +09:00
nitinanand
0a15a16c5a [ONOS-7952] RemoveBridgeOfDevice worklet implementation for ovs workflow
Change-Id: I4539a2fb7711ab868a8fcaf8476fcfc0667efa4b
2019-04-03 08:06:34 +00:00
jaegonkim
a929a2ebc7 [ONOS-7732] Automating switch workflow: workflow store cli command completeter
Change-Id: Ieb2a4d60f4d567f4a7117b734691178c79ef1d26
2019-03-23 12:29:24 +09:00
jaegonkim
13b25cbd95 [ONOS-7732] Automating switch workflow: data model schema checking bug fix
Change-Id: Ia724c1c660969ab9fcf6ae5c18e8e81abc45ccbe
2019-03-22 11:58:49 +00:00
jaegonkim
2d0bd6e66a [ONOS-7732] Automating switch workflow: workflow test cli command completeter
Change-Id: I26346c37c3e120b5c22cccc1aa1ca129b6608720
2019-03-20 22:25:17 +09:00
nitinanand
2a5c8fdb40 sample worklet with multiEvent usage
Change-Id: I03f4609714fc1df564cca87223890663788a2acc
2019-03-20 12:51:24 +00:00
mohamedrahilr
63a921cb33 workflow app fixes
Change-Id: Ia3b06b7947671e4e38ca37eb832e6a969ed1e6af
2019-03-20 08:19:47 +00:00
jaegonkim
fbf6143335 [ONOS-7732] Automating switch workflow: workflow cli command completeter
Change-Id: I226fd243279159af58e2803ff70113168a6b9cf4
2019-03-16 09:38:43 +09:00
jaegonkim
fe1bc06622 [ONOS-7732] Automating switch workflow: workplace cli command completeter
Change-Id: Ibcabd8e861b2506d21929ab0c0625eab132dc3d1
2019-03-09 20:47:18 +09:00
nitinanand
f3f94c6468 multi event support for a worklet in workflow app
Change-Id: I3178110da75b26f96f8889acc0dd2c715fc567ec
2019-03-06 14:51:44 +00:00
jaegonkim
06e12108f3 [ONOS-7732] Automating switch workflow: workflow test cli command completeter
Change-Id: Iea077766cd4098689ab5c4244e60ec28f8f22145
2019-03-03 16:58:30 +09:00
jaegonkim
dcf7c8237d [ONOS-7732] Automating switch workflow: ofoverlay(Openflow overlay) workflow
Change-Id: I162a93465267547b3056f9096743b699aa4416b9
2019-02-17 08:09:59 +00:00
mohamedrahilr
a4545fb70d workflow app bug fix
Change-Id: I993331ac445dbd6d82cdea2e83926af0eba5200a
2019-02-15 22:38:11 +00:00
nitinanand
eff5092ecd Fix for [ONOS-7900] cli for workflow app doesnt work
Change-Id: I229c55312635648474c99d4f686db99938355dbd
2019-01-26 22:39:51 +00:00
jaegonkim
e0f45b5438 [ONOS-7732] Automating switch workflow: annotation based data model injection, applying programming counter, and small fixes
Change-Id: I4092d9c2695bcc8c4e8e01d54c442d3fac284eb6
2019-01-05 13:08:57 +00:00
Ray Milkey
fe6afd8c38 Sonar suggestions
Change-Id: I68d400185ffc885bf92b558a2565a49af149ef0c
2018-11-26 23:15:53 +00:00
Ray Milkey
68032db277 Remove blueprint files for 3.0 karaf CLI
Change-Id: I017db2a3c66cea8f0f7c568e5d4f3f302170936d
2018-11-01 20:39:23 +00:00
Thomas Vachuska
22ea6126e4 Removing BUCK files and other Buck-related auxiliaries.
Change-Id: I23691380efcd9bce4906695605214ed59ada0e87
2018-10-24 20:02:31 +00:00
Ray Milkey
df521294ce Merge remote-tracking branch 'origin/master' into merge-master
Change-Id: I4608093c4400a313b253508ac6bc8a84ecba5c7e
2018-10-04 15:13:33 -07:00
jaegonkim
6a7b524ef2 [ONOS-7732] Automating switch workflow: api, app, and sample workflows
Change-Id: Iee87d4fe6cf61c1f8904d1d77df5f913a712b64a
2018-10-04 00:42:17 +00:00