selftests: forwarding: Add MAC get helper
Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2f19f2125d
commit
4e4272d2a6
@ -270,6 +270,13 @@ link_stats_tx_packets_get()
|
||||
ip -j -s link show dev $if_name | jq '.[]["stats64"]["tx"]["packets"]'
|
||||
}
|
||||
|
||||
mac_get()
|
||||
{
|
||||
local if_name=$1
|
||||
|
||||
ip -j link show dev $if_name | jq -r '.[]["address"]'
|
||||
}
|
||||
|
||||
bridge_ageing_time_get()
|
||||
{
|
||||
local bridge=$1
|
||||
|
Loading…
Reference in New Issue
Block a user