Verified Commit 68136108 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

ConfDBQuery: `require_raw` property

parent 9e1dfe8d
......@@ -84,6 +84,7 @@ class ConfDBQuery(Document):
allow_interface_validation = BooleanField(default=False)
allow_object_classification = BooleanField(default=False)
allow_interface_classification = BooleanField(default=False)
require_raw = BooleanField(default=False)
_id_cache = cachetools.TTLCache(maxsize=100, ttl=60)
......@@ -134,6 +135,7 @@ class ConfDBQuery(Document):
"allow_interface_validation": self.allow_interface_validation,
"allow_object_classification": self.allow_object_classification,
"allow_interface_classification": self.allow_interface_classification,
"require_raw": self.require_raw,
}
if self.description:
r["description"] = self.description
......@@ -152,5 +154,6 @@ class ConfDBQuery(Document):
"allow_interface_validation",
"allow_object_classification",
"allow_interface_classification",
"require_raw",
],
)
......@@ -129,6 +129,11 @@ Ext.define("NOC.cm.confdbquery.Application", {
boxLabel: __("Interface Validation")
}
]
},
{
name: "require_raw",
xtype: "checkbox",
boxLabel: "Require raw"
}
],
......
......@@ -58,6 +58,10 @@ Ext.define("NOC.cm.confdbquery.Model", {
{
name: "params",
type: "auto"
},
{
name: "require_raw",
type: "boolean"
}
]
});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment