def translation_rules(self): if self.properties.get(self.L3_AGENT_ID): return [ properties.TranslationRule( self.properties, properties.TranslationRule.ADD, [self.L3_AGENT_IDS], [self.properties.get(self.L3_AGENT_ID)]), properties.TranslationRule(self.properties, properties.TranslationRule.DELETE, [self.L3_AGENT_ID]) ]
def translation_rules(self): return [ properties.TranslationRule(self.properties, properties.TranslationRule.REPLACE, [self.NETWORK], value_path=[self.NETWORK_ID]), properties.TranslationRule(self.properties, properties.TranslationRule.REPLACE, [self.FIXED_IPS, self.FIXED_IP_SUBNET], value_name=self.FIXED_IP_SUBNET_ID) ]
def translation_rules(self): return [ properties.TranslationRule(self.properties, properties.TranslationRule.REPLACE, [self.SUBNET], value_path=[self.SUBNET_ID]), properties.TranslationRule(self.properties, properties.TranslationRule.REPLACE, [self.ROUTER], value_path=[self.ROUTER_ID]) ]
def translation_rules(self): if self.properties.get(self.SEQUENCE): return [ properties.TranslationRule( self.properties, properties.TranslationRule.ADD, [self.CHARACTER_CLASSES], [{ self.CHARACTER_CLASSES_CLASS: self.properties.get(self.SEQUENCE), self.CHARACTER_CLASSES_MIN: 1 }]), properties.TranslationRule(self.properties, properties.TranslationRule.DELETE, [self.SEQUENCE]) ]
def translation_rules(self, props): return [ properties.TranslationRule(props, properties.TranslationRule.REPLACE, [self.IMAGE_ID], value_path=[self.IMAGE]) ]
def translation_rules(self): return [ properties.TranslationRule(self.properties, properties.TranslationRule.REPLACE, [self.IMAGE], value_path=[self.IMAGE_REF]) ]
def translation_rules(self): return [ properties.TranslationRule(self.properties, properties.TranslationRule.REPLACE, [self.FLOATING_NETWORK], value_path=[self.FLOATING_NETWORK_ID]) ]
def translation_rules(self, props): return [ properties.TranslationRule(props, properties.TranslationRule.REPLACE, [self.NETWORK], value_path=[self.NETWORK_ID]) ]
def translation_rules(self, props): return [ properties.TranslationRule(props, properties.TranslationRule.REPLACE, [self.CONNECTIONS, self.NETWORK], value_name=self.NETWORK_ID) ]