Esempio n. 1
0
 def validate_networkapi_map(self, networkapi_map):
     if networkapi_map is None:
         self.log.error(
             u'There is no value to the networkapi tag of XML request.')
         raise XMLError(None, None)
Esempio n. 2
0
 def validate_vlan_map(self, vlan_map):
     if vlan_map is None:
         self.log.error(
             u'There is no value to the vlan tag of XML request.')
         raise XMLError(None, None)
    def _validate_xml_network(self, network_map):

        if network_map is None:
            msg = u'There is no value to the vlan tag of XML request.'
            self.log.error(msg)
            raise XMLError(None, message=msg)