Skip to content

Commit

Permalink
[dhcp_relay] Fix import for dhcp_counters on clear_dhcp6relay_counter…
Browse files Browse the repository at this point in the history
….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
  • Loading branch information
shlomibitton committed Oct 19, 2021
1 parent 6432b50 commit 546340b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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()

Expand Down

0 comments on commit 546340b

Please sign in to comment.