Esempio n. 1
0
 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])
         ]
Esempio n. 2
0
File: port.py Progetto: srz01/heat
 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)
     ]
Esempio n. 3
0
 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])
     ]
Esempio n. 4
0
 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])
         ]
Esempio n. 5
0
 def translation_rules(self, props):
     return [
         properties.TranslationRule(props,
                                    properties.TranslationRule.REPLACE,
                                    [self.IMAGE_ID],
                                    value_path=[self.IMAGE])
     ]
Esempio n. 6
0
 def translation_rules(self):
     return [
         properties.TranslationRule(self.properties,
                                    properties.TranslationRule.REPLACE,
                                    [self.IMAGE],
                                    value_path=[self.IMAGE_REF])
     ]
Esempio n. 7
0
 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)
     ]