File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -555,6 +555,20 @@ def processDhcpTag(self, o: TagType):
555
555
}
556
556
}
557
557
558
+ def processBreakoutTag (self , o : TagType ):
559
+ interface = o .getParent (InterfaceType )
560
+
561
+ if interface .isSubInterface ():
562
+ warnings .warn (f"Interface { interface .getName ()} is a sub-interface, breakout tag needs to be set on parent interface." )
563
+
564
+ return {
565
+ self ._interfaces_key : {
566
+ ** interface .spitInterfacePathWith ({
567
+ "breakout" : o .getTagValue (),
568
+ })
569
+ }
570
+ }
571
+
558
572
def processBgpUnnumberedTag (self , o : TagType ):
559
573
parent_interface = o .getParent (InterfaceType )
560
574
opt_unnumbered_interface = {}
@@ -602,6 +616,8 @@ def _(self, o: TagType):
602
616
return self .processEdgeTag (o )
603
617
case "core" :
604
618
return self .processCoreTag (o )
619
+ case "breakout" :
620
+ return self .processBreakoutTag (o )
605
621
case "sonderlocke" :
606
622
pass # ignore, as it is treated in "core" tag handler
607
623
case "access" :
You can’t perform that action at this time.
0 commit comments