Skip to content

Commit

Permalink
Revert "add show dhcp_relay ipv4 counter entry, fix interface name of…
Browse files Browse the repository at this point in the history
…fset issue (sonic-net#16507)"

This reverts commit 9c1c82e.
  • Loading branch information
yaqiangz committed May 31, 2024
1 parent 6e43f99 commit 6679993
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_interface(self):
interfaces = []
for key in self.db.keys(self.db.STATE_DB):
if DHCPv4_COUNTER_TABLE in key:
interfaces.append(key[19:])
interfaces.append(key[21:])
return interfaces

def get_dhcp4relay_msg_count(self, interface, dir):
Expand Down Expand Up @@ -296,10 +296,6 @@ def dhcp_relay_ipv4_destination():
def dhcp_relay_ipv6_destination():
get_dhcp_relay(DHCP_RELAY, DHCPV6_SERVERS, with_header=True)

@dhcp_relay_ipv4.command("counters")
@click.option('-i', '--interface', required=False)
def dhcp_relay_ip4counters(interface):
ipv4_counters(interface)

@dhcp_relay_ipv6.command("counters")
@click.option('-i', '--interface', required=False)
Expand Down

0 comments on commit 6679993

Please sign in to comment.