Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/admintools/snmp/__init__.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/admintools/snmp/__init__.py	(revision 39899)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/admintools/snmp/__init__.py	(working copy)
@@ -290,7 +290,11 @@
             self.cli.set_config()
             for each_pk in pk_list:
                 each_pk['ip_str'] = each_pk['ip'].values()[0]
-                self.cli.cmd('no snmp host %s' % each_pk['ip_str'])
+                self.cli.cmd('no snmp host %s' % each_pk['ip_str'],
+                             BlankParser(nonblank_exception=CLICmdError, supplement=True, ignore_msg=[
+                                 'SNMP host %s removed successfully' % each_pk['ip_str'],
+                                 'SNMP host %s removed successfully\n' % each_pk['ip_str'],
+                             ]))
             return
 
         def get_data_by_version(self, cli, version):
@@ -357,8 +361,13 @@
             else:
                 # version 3
                 host_cli = 'snmp host %(ip_str)s 3 "%(username)s"' % data
-            cli.cmd(host_cli)            
-                        result = self.update_by_version(cli, instance, data)
+            cli.cmd(host_cli,
+                BlankParser(nonblank_exception=CLICmdError, supplement=True, ignore_msg=[
+                    'please run "snmp auth" for trap version 3 to be functional',
+                    'SNMP host %s added successfully' % data['ip_str'],
+                    'SNMP host %s added successfully\n' % data['ip_str'],
+                ]))
+            result = self.update_by_version(cli, instance, data)
             return result
 
         def update_by_version(self, cli, instance, data=None):
@@ -399,8 +408,13 @@
                             RegexParser("the length of authoritative engine id for SNMPv3 can't be odd number", match_msg=__("The length of Authoritative Engine ID for SNMPv3 cannot be an odd number."), match_exception=CLICmdWarning, exclusive=True),
                             BlankParser(nonblank_exception=CLICmdError, supplement=True, ignore_msg=[
                                 "Warning: This command only applicable for SNMP trap version v3!",
-                                "Warning: Only SNMPv3 traps support changing the Engine ID."]))
-            return result
+                                "Warning: Only SNMPv3 traps support changing the Engine ID.",
+                                'SNMP host %s added successfully' % data['ip_str'],
+                                'SNMP host %s added successfully\n' % data['ip_str'],
+                                'SNMP host %s removed successfully' % data['ip_str'],
+                                'SNMP host %s removed successfully\n' % data['ip_str'],
+                            ]))
+                        return result
 
 class SNMPV1V2Servers(Server):
     type = DerivedField(value='v1v2')
