Support install IntIntents to device with postcard mode

Include the following changes:
 - INT application now can install reuls/configs to the device based on the
   Int intent telemetry mode and the functionality supported by device.
 - Add "Telemetry Mode" option to INT app GUI

Change-Id: I1a9938b076030497a3b2984abe66fed09c190c7d
diff --git a/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.html b/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.html
index 0196aef..2d6b59a 100644
--- a/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.html
+++ b/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.html
@@ -60,6 +60,13 @@
                                 <option value="UDP">UDP</option>
                             </select>
                         </label>
+                        <label>
+                            Telemetry Mode
+                            <select name="telemetryMode" formControlName="telemetryMode">
+                                <option selected value="POSTCARD">Postcard (INT-XD)</option>
+                                <option value="INBAND_TELEMETRY">Embedded Data (INT-MD)</option>
+                            </select>
+                        </label>
                         <div *ngIf="formSend.controls.ip4DstPrefix.errors" class="invalid-feedback">
                             <div class="error-text" *ngIf="formSend.controls.ip4DstPrefix.errors.required"> Destination
                                 IP is required
@@ -140,6 +147,7 @@
                         <td colId="dstPort" sortable>Dst Port</td>
                         <td colId="protocol" sortable>Protocol</td>
                         <td colId="metadata" sortable>Metadata</td>
+                        <td colId="telemetryMode" sortable>Telemetry Mode</td>
                     </tr>
                 </table>
             </div>
@@ -166,6 +174,7 @@
                         <td>{{ row.dstPort }}</td>
                         <td>{{ row.protocol }}</td>
                         <td>{{ row.metadata }}</td>
+                        <td>{{ row.telemetryMode }}</td>
                     </tr>
                 </table>
             </div>
diff --git a/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.ts b/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.ts
index c4f9ba4..a884882 100644
--- a/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.ts
+++ b/apps/inbandtelemetry/intApp-gui2/intApp/lib/intapp/intapp.component.ts
@@ -82,6 +82,7 @@
             l4SrcPort: new FormControl(null, [ Validators.pattern(regSendPort)]),
             l4DstPort: new FormControl(null, [ Validators.pattern(regSendPort)]),
             protocol: new FormControl(),
+            telemetryMode: new FormControl("POSTCARD")
         });
         this.log.debug('IntAppComponent initialized');
     }
@@ -120,7 +121,8 @@
             "l4SrcPort": this.formSend.value.l4SrcPort,
             "l4DstPort": this.formSend.value.l4DstPort,
             "protocol": this.formSend.value.protocol,
-            "metadata": this.formSend.value.name
+            "metadata": this.formSend.value.name,
+            "telemetryMode": this.formSend.value.telemetryMode
         };
         this.wss.sendEvent(intIntentAddReq, intentObjectNode);
     }