commit | 26437eb500ee6b846b493f25fbb45e5279c2ffe8 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Jul 31 16:46:31 2018 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Fri Aug 03 10:20:09 2018 -0700 |
tree | b0f481f73c43fc5be6e59a508befc9654100a63f | |
parent | 710ad620bd9d228602d314de2e58d64821c2de1c [diff] [blame] |
SEBA-107 New modeling of whitelist Change-Id: Ic1912685fb72b8d29e031735a963e9e4a21c97e5
diff --git a/xos/synchronizer/model_policies/model_policy_hippieossservice.py b/xos/synchronizer/model_policies/model_policy_hippieossservice.py index 3559d88..48fad25 100644 --- a/xos/synchronizer/model_policies/model_policy_hippieossservice.py +++ b/xos/synchronizer/model_policies/model_policy_hippieossservice.py
@@ -25,7 +25,10 @@ sis = HippieOSSServiceInstance.objects.all() - whitelist = [x.strip() for x in service.whitelist.split(',')] + # TODO(smbaker): This is redudant with HippieOSSWhiteListEntry model policy, though etaining this does provide + # a handy way to trigger a full reexamination of the whitelist. + + whitelist = [x.serial_number for x in service.whitelist_entries.all()] for si in sis: if si.serial_number in whitelist and not si.valid == "valid":