[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
This commit is contained in:
shlomibitton 2021-10-19 13:10:36 +03:00 committed by GitHub
parent 6432b508d9
commit 546340bf7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
import sys
import click
sys.path.insert(0, '../../show/plugins/')
from show_dhcp6relay_counters import DHCPv6_Counter
from show.plugins.dhcprelay import DHCPv6_Counter
import utilities_common.cli as clicommon
@ -15,7 +14,7 @@ def dhcp6relay_clear():
@click.option('-i', '--interface', required=False)
def dhcp6relay_clear_counters(interface):
""" Clear dhcp6relay message counts """
counter = DHCPv6_Counter()
counter_intf = counter.get_interface()