git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install pl rspec schema (pl.rng) in /etc/sfa. Add variable to default config file...
[sfa.git]
/
sfa
/
server
/
interface.py
diff --git
a/sfa/server/interface.py
b/sfa/server/interface.py
index
9b4c039
..
7172ef9
100644
(file)
--- a/
sfa/server/interface.py
+++ b/
sfa/server/interface.py
@@
-127,7
+127,10
@@
class Interfaces(dict):
the db.
"""
# get hrns we expect to find
the db.
"""
# get hrns we expect to find
- hrns_expected = [interface['hrn'] for interface in self.interfaces]
+ # ignore records for local interfaces
+ ignore_interfaces = [self.api.config.SFA_INTERFACE_HRN]
+ hrns_expected = [interface['hrn'] for interface in self.interfaces \
+ if interface['hrn'] not in ignore_interfaces]
# get hrns that actually exist in the db
table = SfaTable()
# get hrns that actually exist in the db
table = SfaTable()