Пример #1
0
    def qosuuid(self, uuid):
        """Will set/update the QoS queue UUID of the object.

        Arguments:
        uuid -- a string or None, if None is used 'null' will be sent and the
                QoS UUID of the object will be unset
        """
        if uuid is None:
            uuid = 'null'
        elif not common.isuuid(uuid):
            raise AttributeError("UUID is invalid")
        self['queue_uuid'] = uuid
        return self
Пример #2
0
    def qosuuid(self, uuid):
        """Will set/update the QoS queue UUID of the object.

        Arguments:
        uuid -- a string or None, if None is used 'null' will be sent and the
                QoS UUID of the object will be unset
        """
        if uuid is None:
            uuid = 'null'
        elif not common.isuuid(uuid):
            raise AttributeError("UUID is invalid")
        self['queue_uuid'] = uuid
        return self
Пример #3
0
 def attachment_patch(self, peer_uuid, lrouter_uuid=None):
     if not common.isuuid(peer_uuid):
         raise AttributeError("Peer Port UUID is invalid")
     if lrouter_uuid and not common.isuuid(lrouter_uuid):
         raise AttributeError("Logical Router UUID is invalid")
     pass
Пример #4
0
 def attachment_patch(self, peer_uuid, lrouter_uuid=None):
     if not common.isuuid(peer_uuid):
         raise AttributeError("Peer Port UUID is invalid")
     if lrouter_uuid and not common.isuuid(lrouter_uuid):
         raise AttributeError("Logical Router UUID is invalid")
     pass