From 48269d9eb59ee1efd3e383de932ba979dadc2dc6 Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Thu, 9 Nov 2017 17:44:59 +0100 Subject: [PATCH] add g.fast to subscriber --- ancp/subscriber.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ancp/subscriber.py b/ancp/subscriber.py index 4b2436e..e298c4d 100644 --- a/ancp/subscriber.py +++ b/ancp/subscriber.py @@ -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))