diff --git a/scripts/fdbclear b/scripts/fdbclear old mode 100644 new mode 100755 index ceb5f22b7e16..7b17459bab40 --- a/scripts/fdbclear +++ b/scripts/fdbclear @@ -42,10 +42,15 @@ def main(): try: fdb = FdbClear() - if args.vlan is not None: - print("command not supported yet.") + if args.vlan is not None and args.port is not None: + fdb.send_notification("PORTVLAN", args.port+'|'+args.vlan) + print("Port {} + Vlan{} FDB entries are cleared.".format(args.port, args.vlan)) + elif args.vlan is not None: + fdb.send_notification("VLAN", args.vlan) + print("Vlan{} FDB entries are cleared.".format(args.vlan)) elif args.port is not None: - print("command not supported yet.") + fdb.send_notification("PORT", args.port) + print("Port {} FDB entries are cleared.".format(args.port)) else: fdb.send_notification("ALL", "ALL") print("FDB entries are cleared.")