Skip to content

Commit

Permalink
add g.fast to subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Giese authored and GIC-de committed Dec 4, 2024
1 parent 39361dc commit 48269d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ancp/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,5 +396,22 @@ def tlvs(self):
line.append(TLV(TlvType.MAX_UP, self.max_up))
if self.max_down is not None:
line.append(TLV(TlvType.MAX_DOWN, self.max_down))
# G.Fast attributes
if self.etr_up is not None:
line.append(TLV(TlvType.ETR_UP, self.etr_up))
if self.etr_down is not None:
line.append(TLV(TlvType.ETR_DOWN, self.etr_down))
if self.attetr_up is not None:
line.append(TLV(TlvType.ATTETR_UP, self.attetr_up))
if self.attetr_down is not None:
line.append(TLV(TlvType.ATTETR_DOWN, self.attetr_down))
if self.gdr_up is not None:
line.append(TLV(TlvType.GDR_UP, self.gdr_up))
if self.gdr_down is not None:
line.append(TLV(TlvType.GDR_DOWN, self.gdr_down))
if self.attgdr_up is not None:
line.append(TLV(TlvType.ATTGDR_UP, self.attgdr_up))
if self.attgdr_down is not None:
line.append(TLV(TlvType.ATTGDR_DOWN, self.attgdr_down))
tlvs.append(TLV(TlvType.LINE, line))
return (len(tlvs), mktlvs(tlvs))

0 comments on commit 48269d9

Please sign in to comment.