[VOL-4590] Added support for enableMacLearning in TT bbsim jobs

Change-Id: I67d687b7cc579d065ce5f2019fd4f625442934c5
diff --git a/jjb/voltha-e2e.yaml b/jjb/voltha-e2e.yaml
index 5e84cb5..26c6257 100755
--- a/jjb/voltha-e2e.yaml
+++ b/jjb/voltha-e2e.yaml
@@ -1314,6 +1314,20 @@
               teardown: true
               logging: true
 
+      - 'voltha-periodic-test':
+          name: 'periodic-voltha-tt-maclearner-sanity-test-bbsim'
+          code-branch: 'master'
+          extraHelmFlags: '--set global.image_tag=master --set onos-classic.image.tag=master --set onos-classic.replicas=3,onos-classic.atomix.replicas=3 --set voltha.onos_classic.replicas=3 '
+          time-trigger: "H H/23 * * *"
+          logLevel: 'DEBUG'
+          enableMacLearning: true
+          testTargets: |
+            - target: sanity-kind-tt-maclearning
+              workflow: tt
+              flags: ""
+              teardown: true
+              logging: true
+
       # ATT Per-patchset Pod builds on Tucson pod (master)
       - 'verify_physical_voltha_patchset_auto':
           name: 'verify_physical_voltha_patchset_auto'
@@ -1382,6 +1396,7 @@
     olts: 1
     timeout: 130
     logLevel: 'INFO'
+    enableMacLearning: false
 
     trigger-comment: vv7CBoQQYYonvaN8xcru
     time-trigger: 0 0 29 2 *
@@ -1442,6 +1457,12 @@
           default: '{gerritRefspec}'
           description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
 
+      # applicable for voltha-2.9 (excluding) onwards
+      - bool:
+          name: enableMacLearning
+          default: '{enableMacLearning}'
+          description: "Deploy and test with ONOS Mac-Learning app"
+
       - string:
           name: extraRobotArgs
           default: '{robot-args}'
@@ -1519,6 +1540,7 @@
     volthaSystemTestsChange: ''
     volthaHelmChartsChange: ''
     extraHelmFlags: ''
+    enableMacLearning: false
     robot-args: ''
     branch-regexp: '{all-branches-regexp}'
     testTargets: |
@@ -1574,6 +1596,12 @@
           default: '{extraHelmFlags}'
           description: 'Helm flags to pass to every helm command'
 
+      # applicable for voltha-2.9 (excluding) onwards
+      - bool:
+          name: enableMacLearning
+          default: '{enableMacLearning}'
+          description: "Deploy and test with ONOS Mac-Learning app"
+
       - string:
           name: extraRobotArgs
           default: '{robot-args}'