@@ -1679,8 +1679,8 @@ class SRpcInOut(SNode):
16791679 def __iter__ (self ) -> Iterator [SNode ]:
16801680 return self .children ()
16811681
1682- def children (self , types : Optional [Tuple [int , ...]] = None ) -> Iterator [SNode ]:
1683- return iter_children (self .context , self .cdata , types = types )
1682+ def children (self , types : Optional [Tuple [int , ...]] = None , with_choice : bool = False ) -> Iterator [SNode ]:
1683+ return iter_children (self .context , self .cdata , types = types , with_choice = with_choice )
16841684
16851685
16861686# -------------------------------------------------------------------------------------
@@ -1710,11 +1710,11 @@ def output(self) -> Optional[SRpcInOut]:
17101710 def __iter__ (self ) -> Iterator [SNode ]:
17111711 return self .children ()
17121712
1713- def children (self , types : Optional [Tuple [int , ...]] = None ) -> Iterator [SNode ]:
1714- yield from iter_children (self .context , self .cdata , types = types )
1713+ def children (self , types : Optional [Tuple [int , ...]] = None , with_choice : bool = False ) -> Iterator [SNode ]:
1714+ yield from iter_children (self .context , self .cdata , types = types , with_choice = with_choice )
17151715 # With libyang2, you can get only input or output
17161716 # To keep behavior, we iter 2 times witt output options
1717- yield from iter_children (self .context , self .cdata , types = types , output = True )
1717+ yield from iter_children (self .context , self .cdata , types = types , output = True , with_choice = with_choice )
17181718
17191719
17201720# -------------------------------------------------------------------------------------
@@ -1723,8 +1723,8 @@ class SNotif(SNode):
17231723 def __iter__ (self ) -> Iterator [SNode ]:
17241724 return self .children ()
17251725
1726- def children (self , types : Optional [Tuple [int , ...]] = None ) -> Iterator [SNode ]:
1727- return iter_children (self .context , self .cdata , types = types )
1726+ def children (self , types : Optional [Tuple [int , ...]] = None , with_choice : bool = False ) -> Iterator [SNode ]:
1727+ return iter_children (self .context , self .cdata , types = types , with_choice = with_choice )
17281728
17291729
17301730# -------------------------------------------------------------------------------------
0 commit comments