Skip to content

Commit 546340b

Browse files
authored
[dhcp_relay] Fix import for dhcp_counters on clear_dhcp6relay_counter.py (#8991)
#### Why I did it **Import issue will cause:** root@sonic:/# sudo sonic-clear arp failed to import plugin clear.plugins.dhcprelay: No module named 'show_dhcp_relay' #### How I did it Fix the import. #### How to verify it run sudo sonic-clear arp
1 parent 6432b50 commit 546340b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dockers/docker-dhcp-relay/cli/clear/plugins/clear_dhcp6relay_counter.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
import click
3-
sys.path.insert(0, '../../show/plugins/')
4-
from show_dhcp6relay_counters import DHCPv6_Counter
3+
from show.plugins.dhcprelay import DHCPv6_Counter
54

65
import utilities_common.cli as clicommon
76

@@ -15,7 +14,7 @@ def dhcp6relay_clear():
1514
@click.option('-i', '--interface', required=False)
1615
def dhcp6relay_clear_counters(interface):
1716
""" Clear dhcp6relay message counts """
18-
17+
1918
counter = DHCPv6_Counter()
2019
counter_intf = counter.get_interface()
2120

0 commit comments

Comments
 (0)