Skip to content
Snippets Groups Projects
Commit 14960ca3 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

python/control: add the FILTER index

parent 5f9757a9
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -119,6 +119,7 @@ class KnotCtlDataIdx(IntEnum):
TTL = 8
TYPE = 9
DATA = 10
FILTER = 11
class KnotCtlData(object):
......@@ -225,7 +226,8 @@ class KnotCtl(object):
return KnotCtlType(data_type.value)
def send_block(self, cmd, section=None, item=None, identifier=None, zone=None,
owner=None, ttl=None, rtype=None, data=None, flags=None):
owner=None, ttl=None, rtype=None, data=None, flags=None,
filter=None):
"""Sends a control query block.
@type cmd: str
......@@ -237,6 +239,7 @@ class KnotCtl(object):
@type ttl: str
@type rtype: str
@type data: str
@type filter: str
"""
query = KnotCtlData()
......@@ -250,6 +253,7 @@ class KnotCtl(object):
query[KnotCtlDataIdx.TYPE] = rtype
query[KnotCtlDataIdx.DATA] = data
query[KnotCtlDataIdx.FLAGS] = flags
query[KnotCtlDataIdx.FILTER] = filter
self.send(KnotCtlType.DATA, query)
self.send(KnotCtlType.BLOCK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment