From 5ecdcd9ec1eeeabefe8450d15aab44c9c5f7216f Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 1 May 2013 08:50:45 +0530 Subject: [PATCH] marvin_refactor: ldapConfig - > config, Ldap And the With preposition transformer Signed-off-by: Prasanna Santhanam --- tools/marvin/marvin/cs_entity_generator.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/marvin/marvin/cs_entity_generator.py b/tools/marvin/marvin/cs_entity_generator.py index cd837416241..3bf3169d483 100644 --- a/tools/marvin/marvin/cs_entity_generator.py +++ b/tools/marvin/marvin/cs_entity_generator.py @@ -86,10 +86,10 @@ def singularize(word, num=0): def transform_api(api): """Brute-force transform for entities that don't match other transform rules """ - if api == 'associateIpAddress': - return 'associate', 'IpAddress' - if api == 'disassociateIpAddress': - return 'disassociate', 'IpAddress' + if api == 'ldapConfig': + return 'configure', 'Ldap' + if api == 'ldapRemove': + return 'remove', 'Ldap' return api, None def post_transform_adjust(entity): @@ -123,7 +123,7 @@ def prepositon_transformer(preposition=None): def skip_list(): """APIs that we will not auto-generate """ - return ['ldapConfigCmd', 'ldapRemoveCmd'] + return [] def get_transformers(): @@ -133,6 +133,7 @@ def get_transformers(): prepositon_transformer('For'), prepositon_transformer('To'), prepositon_transformer('From'), + prepositon_transformer('With'), transform_api] return transformers