'Parse out the SNMP version and community string'

def parse_snmp(self, src_ip_port, dst_ip_port, snmp_layer):

    if (type(snmp_layer.community.val) == str):
        ver = snmp_layer.version.val
        msg = ('SNMPv%d    community    string:    %s' % (ver, snmp_layer.community.val))
        self.printer(src_ip_port, dst_ip_port, msg)
    return True
