Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/device/modal/device.add.controller.js
===================================================================
--- /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/device/modal/device.add.controller.js	(revision 2517)
+++ /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/device/modal/device.add.controller.js	(working copy)
@@ -49,6 +49,14 @@
 
             addViewModal.deviceTypeList = device_type_info.DEVICE_STD_LIST;
 
+            addViewModal.typeChanged = function () {
+                if (addViewModal.type === "AG" || addViewModal.type === "vxAG") {
+                    addViewModal.protocol = "xmlrpc";
+                } else {
+                    addViewModal.protocol = "restapi";
+                }
+            }
+
             addViewModal.close = function () {
                 $uibModalInstance.dismiss('cancel');
             };
@@ -249,3 +257,4 @@
 
         }
     ])
+
Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/device/modal/device.add.html
===================================================================
--- /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/device/modal/device.add.html	(revision 2517)
+++ /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/device/modal/device.add.html	(working copy)
@@ -17,7 +17,7 @@
             <div class="form-group">
                 <label for="type" class="col-md-3 control-label"><sup>*</sup>{{ 'Device Type' | T }}</label>
                 <div class="col-md-8">
-                    <select ng-verify="required:true" name="type" class="form-control" ng-model="deviceAdd.type">
+                    <select ng-verify="required:true" name="type" class="form-control" ng-model="deviceAdd.type" ng-change="deviceAdd.typeChanged()">
                         <option value="">{{'--- Please Select ---' | T}}</option>
                         <option ng-repeat="row in deviceAdd.deviceTypeList" value="{{row}}">{{row}}</option>
                     </select>
@@ -40,11 +40,10 @@
                     <input ng-verify="required:true" type="ip" class="form-control ip-input" ng-model="deviceAdd.ip">
                 </div>
             </div>
-
             <div class="form-group">
                 <label class="col-md-3 control-label"><sup>*</sup>{{ 'Protocol' | T }}</label>
                 <div class="col-md-8">
-                    <label class="radio-inline">
+                    <label class="radio-inline" ng-if="deviceAdd.type !== 'AG' && deviceAdd.type !== 'vxAG'">
                         <input type="radio" name="choiceProtocol" ng-model="deviceAdd.protocol" value="restapi">REST API
                     </label>
                     <label class="radio-inline">
@@ -273,3 +272,4 @@
         width: 940px;
     }
 </style>
+
