diff options
author | Ruan HE <ruan.he@orange.com> | 2017-12-15 20:15:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-15 20:15:28 +0000 |
commit | 65c16b6c8e807dffef0a724ce203e1ffd5ca6cc7 (patch) | |
tree | ecc9f4c22dea0ccccc3684a9cf0ffbc82d02e6bb /moonv4 | |
parent | b0d2c0981648e00087612e947004e71a755dd193 (diff) | |
parent | d21665aca18b98e81ba5dc251d2a39fcbe68446d (diff) |
Merge "add documentation for add target function"
Diffstat (limited to 'moonv4')
-rw-r--r-- | moonv4/moon_utilities/moon_utilities/security_functions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/moonv4/moon_utilities/moon_utilities/security_functions.py b/moonv4/moon_utilities/moon_utilities/security_functions.py index f55620b6..849f5110 100644 --- a/moonv4/moon_utilities/moon_utilities/security_functions.py +++ b/moonv4/moon_utilities/moon_utilities/security_functions.py @@ -294,6 +294,12 @@ class Context: # context["pdp_set"][meta_rule_id]["target"][act_cat].append(assign) # # context["pdp_set"][meta_rule_id]["target"].update(result) + """build target from meta_rule + + Target is dict of categories as keys ; and the value of each category will be + a list of assignments + + """ def __add_target(self, meta_rule_id): result = dict() _subject = self.__current_request["subject"] |