bridge: add brn to bridge resource

This commit is contained in:
Iain Learmonth 2022-07-04 14:50:34 +01:00
parent 494286038b
commit 3c94fc10f5

View file

@ -51,6 +51,16 @@ class Bridge(AbstractResource):
conf = db.relationship("BridgeConf", back_populates="bridges")
@property
def brn(self) -> BRN:
return BRN(
group_id=self.conf.group_id,
product="bridge",
provider=self.conf.provider,
resource_type="bridge",
resource_id=str(self.id)
)
@classmethod
def csv_header(cls) -> List[str]:
return super().csv_header() + [