So, it appears that the race happens in case relationship is defined before the class it relates to. For example in bgpvpn case:
class BGPVPNPortAssociationRoute: ... bgpvpn = orm.relationship("BGPVPN",...)
class BGPVPN(...) ...
in order to fix the race should be changed to:
and alike.
So, it appears that the race happens in case relationship is defined before the class it relates to. For example in bgpvpn case:
class BGPVPNPortAssoc iationRoute: p("BGPVPN" ,...)
...
bgpvpn = orm.relationshi
class BGPVPN(...)
...
in order to fix the race should be changed to:
class BGPVPN(...)
...
class BGPVPNPortAssoc iationRoute: p("BGPVPN" ,...)
...
bgpvpn = orm.relationshi
and alike.