def get_constraints(self, service_namespace_config):
        if 'constraints' in self.config_dict:
            constraints = self.config_dict.get('constraints')
        else:
            constraints = self.config_dict.get('extra_constraints', [])
            constraints.extend(self.get_routing_constraints(service_namespace_config))
            constraints.extend(self.get_deploy_constraints())
            constraints.extend(self.get_pool_constraints())
        return [[str(val) for val in constraint] for constraint in constraints]
Gets the constraints specified in the service's marathon configuration.
dataset/ETHPy150Open Yelp/paasta/paasta_tools/marathon_tools.py/MarathonServiceConfig.get_constraints