Added isPortSecurityEnabled check to enable/disable SG.