We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163c14e commit f53e1dbCopy full SHA for f53e1db
suzieq/engines/pandas/topology.py
@@ -23,6 +23,13 @@
23
class TopologyObj(SqPandasEngine):
24
'''Backend class to operate on virtual table, topology, with pandas'''
25
26
+ def __init__(self, baseobj):
27
+ super().__init__(baseobj)
28
+ self.lsdb = pd.DataFrame()
29
+ self._a_df = pd.DataFrame()
30
+ self._ip_table = pd.DataFrame()
31
+ self.nses = []
32
+
33
@staticmethod
34
def table_name():
35
'''Table name'''
@@ -86,9 +93,6 @@ class Services:
86
93
self._init_dfs(self._namespaces)
87
94
if self._if_df.empty:
88
95
return pd.DataFrame({'error': ['No interfaces data found']})
89
- self.lsdb = pd.DataFrame()
90
- self._a_df = pd.DataFrame()
91
- self._ip_table = pd.DataFrame()
92
96
97
fields = self.schema.get_display_fields(columns)
98
0 commit comments