# Copyright (c) 2010-2015 Ericsson AB.
#  All rights reserved.

#Command_to_execute,cmd_desc,verification_command,verification_string,expected_result

StartFileLogging, start logging into file,0
PhyShow,Show Phy details,0
MacShow,Show L2 Table,0
MacAdd 101 2 01:02:03:04:06:05,Add MAC#,MacShow,01:02:03:04:06:05,1
MacAssign,Assign MAC# to all ports,MacShow,00:00:00:00:00:01,1
MacFind 101 01:02:03:04:06:05,Find MAC#
MacDelete 101 01:02:03:04:06:05,Delete MAC #,MacShow,01:02:03:04:06:05,0
L2AgeGet,Get age time
L2AgeSet 60,Set age time,L2AgeGet,60,1
VlanShow -1,Show vlan
VlanCreate 109,Create vlan,VlanShow -1,109,1
VlanRemove 109,Remove vlan,VlanShow -1,109,0
VlanCreate 110,Create vlan,VlanShow -1,110,1
VlanRemoveAll,Remove all vlan,VlanShow -1,110,0
VlanShowDefault,Show default vlan id
DefaultConfigReplay,Reset device to default configuration

#VlanSetDefault ,Set default vlan id
VlanShowAllPorts 101 ,Show all ports of vlan

VlanCreate 111,Create vlan,VlanShow -1,111,1
VlanAddPort 111 2 0,Add port to vlan,VlanShowAllPorts 111,xe0 (tagged),1
VlanAddPort 111 3 1,Add port to vlan,VlanShowAllPorts 111,xe1 (untagged),1

VlanPortRemove 111 2,Remove port from vlan,VlanShowAllPorts 111,xe0,0
#VlanPortRemoveAll 111,Remove all port from vlan,VlanShowAllPorts 111,xe1,0

VlanPortShowDefault,Show all port default vlan
VlanPortSetDefault 111 3,Set port default vlan,VlanPortShowDefault,Port xe1 default VLAN is 111,1
PortShowInfo,Print ports info
PortShowStatus 2,Show port status
PortShowStatusAll,Show all port status
PortEnDisable 2 0,Disable port,PortShowStatus 2,is Disable,1
PortEnDisable 2 1,Enable port,PortShowStatus 2,is Enable,1

PortEnDisableAll 0,Disable all port,PortShowStatusAll,is Enable,0
PortEnDisableAll 1,Enable all port,PortShowStatusAll,is Disable,0

PortShowStatusAutoneg 16,Show port autoneg Status
PortShowStatusAutonegAll,Show all ports autoneg Status

PortEnDisableAutoneg 16 0,Disable autoneg on port,PortShowStatusAutoneg 16,is Disable,1
PortEnDisableAutoneg 16 1,Enable autoneg on port,PortShowStatusAutoneg 16,is Enable,1

PortEnDisableAutonegAll 0,Disable autoneg on all port,PortShowStatusAutoneg 16,is Enable,0
PortEnDisableAutonegAll 1,Enable autoneg on all port,PortShowStatusAutoneg 16,is Disable,0

PortShowPri 12,Show port priority
PortShowPriAll,Show port priority
PortSetPri 12 3,Set port priority,PortShowPri 12,Priority 3\\sRed,1

DefaultConfigReplay,Reset device to default configuration
#ShowCounters,Show counters
#StatsShow,Show stats

#Command_to_execute,cmd_desc,verification_command,verification_string,expected_result
#cmd_with_args, desc ,        , "" , health_check_type, change_expected, script
#DefaultConfigReplay,Reset device to default configuration
#HealthMonitor 6, Port Health check no snap-shot,"","",7,verify_health_check.sh
#PortEnDisableAll 1,Enable all port,PortShowStatusAll,is Disable,0
#HealthMonitor 0, Port Health check snap-shot change,"","",1,verify_health_check.sh
#HealthMonitor 0, Port Health check no snap-shot change,"","",0,verify_health_check.sh

#DefaultConfigReplay,Reset device to default configuration
#HealthMonitor 2, Vlan Health check  no snap-shot,"",2,3,verify_health_check.sh
#VlanCreate 121,Create vlan,VlanShow -1,121,1
#HealthMonitor 2, Vlan Health check snap-shot increase,"","",2,verify_health_check.sh
#HealthMonitor 2, Vlan Health check snap-shot no snap-shot change,"","",0,verify_health_check.sh
#VlanRemove 121,Remove vlan,VlanShow -1,121,0
#HealthMonitor 2, Vlan Health check snap-shot decrease,"","",2,verify_health_check.sh

#DefaultConfigReplay,Reset device to default configuration
#PortEnDisableAll 0,Disable all port,PortShowStatusAll,is Enable,0
#HealthMonitor 4, Mac Health check no snap-shot,"",4,4,verify_health_check.sh
#MacAdd 101 2 01:02:03:04:05:06,Add MAC#,MacShow,01:02:03:04:05:06,1
#HealthMonitor 4, Mac Health check  snap-shot increase,"","",5,verify_health_check.sh
#HealthMonitor 4, Mac Health check  snap-shot no change,"","",0,verify_health_check.sh
#MacDelete 101 01:02:03:04:05:06,Delete MAC
#HealthMonitor 4, Mac Health check  snap-shot decrease,"","",4,verify_health_check.sh



#DefaultConfigReplay,Reset device to default configuration
#HealthMonitor 4, Mac Health check no snap-shot,"",4,4,verify_health_check.sh
#VlanCreate 121,Create vlan,VlanShow -1,121,1
#MacAdd 101 2 01:02:03:04:05:06,Add MAC#,MacShow,01:02:03:04:05:06,1
#HealthMonitor 6, Mac Health check  snap-shot increase,"",4,7,verify_health_check.sh
StopFileLogging, resume printing on screen,0
