From c3246f430990be8794577138a26e640c754d0b3f Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Tue, 28 May 2013 14:12:49 +0530 Subject: [PATCH] marvin_refactor: Additional entities in post-transform - UserVm -> VirtualMachine - ApplicationLoadBalancer -> LoadBalancer Signed-off-by: Prasanna Santhanam --- tools/marvin/marvin/cs_entity_generator.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/marvin/marvin/cs_entity_generator.py b/tools/marvin/marvin/cs_entity_generator.py index 4bdd3032095..4e5b2e5f5b0 100644 --- a/tools/marvin/marvin/cs_entity_generator.py +++ b/tools/marvin/marvin/cs_entity_generator.py @@ -110,6 +110,12 @@ def post_transform_adjust(entity): return 'SecurityGroupIngress' elif entity == 'SecurityGroupEgres': return 'SecurityGroupEgress' + #CloudStack denotes VirtualMachine as UserVm + elif entity == 'UserVm': + return 'VirtualMachine' + #CloudStak denotes LoadBalancer as ApplicationLoadBalancer + elif entity == 'ApplicationLoadBalancer': + return 'LoadBalancer' return entity