Skip to content

Commit

Permalink
Trailing whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Suvarna Meenakshi <[email protected]>
  • Loading branch information
SuvarnaMeenakshi committed Jul 7, 2023
1 parent 23fe59d commit ba56719
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/helpers/snmp_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_snmp_facts(localhost, host, version, community, is_dell=False, module_ig

def get_snmp_output(ip, duthost, nbr, creds_all_duts, oid='.1.3.6.1.2.1.1.1.0'):
"""
Get snmp output from duthost using specific ip to query
Get snmp output from duthost using specific ip to query
snmp query is sent from neighboring ceos/vsonic
Args:
Expand All @@ -60,7 +60,7 @@ def get_snmp_output(ip, duthost, nbr, creds_all_duts, oid='.1.3.6.1.2.1.1.1.0'):
Returns:
SNMP result
"""
"""
ipaddr = ipaddress.ip_address(ip)
iptables_cmd = "iptables"

Expand All @@ -77,7 +77,7 @@ def get_snmp_output(ip, duthost, nbr, creds_all_duts, oid='.1.3.6.1.2.1.1.1.0'):
eos_snmpget = "bash snmpget -v2c -c {} {} {}".format(
creds_all_duts[duthost.hostname]['snmp_rocommunity'], ip, oid)
out = nbr['host'].eos_command(commands=[eos_snmpget])
else:
else:
command = "docker exec snmp snmpwalk -v 2c -c {} {} {}".format(
creds_all_duts[duthost.hostname]['snmp_rocommunity'], ip, oid)
out = nbr['host'].command(command)
Expand Down

0 comments on commit ba56719

Please sign in to comment.