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 913b1e7 commit 01d803fCopy full SHA for 01d803f
pandevice/base.py
@@ -152,7 +152,9 @@ def vsys(self, value):
152
@property
153
def uid(self):
154
"""Returns the unique identifier of this object as a string."""
155
- if self.NAME is not None:
+ if hasattr(self, 'id'):
156
+ return self.id
157
+ elif self.NAME is not None:
158
return str(getattr(self, self.NAME))
159
else:
160
return None
0 commit comments