Exemplo n.º 1
0
    def populate_children(self, deep=False) :
        """populates all of the children of the linecard.  Children are the interfaces.
        If deep is set to true, it will also try to populate the children of the children.
        
        INPUT: [boolean]

        RETURNS: None
        """

        interfaces = Interface.get(self._session, self)
        for interface in interfaces :
            self.add_child(interface)

        if deep :
            for child in self._children :
                child.populate_children(deep=True)

        return None
Exemplo n.º 2
0
    def populate_children(self, deep=False) :
        """Populates all of the children of the linecard.  Children are the interfaces.
        If deep is set to true, it will also try to populate the children of the children.
        
        :param deep: boolean that when true will cause the entire sub-tree to be populated\
            when false, only the immediate children are populated

        :returns: None
        """

        interfaces = Interface.get(self._session, self)
        for interface in interfaces :
            self.add_child(interface)

        if deep :
            for child in self._children :
                child.populate_children(deep=True)

        return None
Exemplo n.º 3
0
    def populate_children(self, deep=False):
        """Populates all of the children of the linecard.  Children are the interfaces.
        If deep is set to true, it will also try to populate the children of the children.

        :param deep: boolean that when true will cause the entire sub-tree to be populated\
            when false, only the immediate children are populated

        :returns: None
        """

        interfaces = Interface.get(self._session, self)
        for interface in interfaces:
            self.add_child(interface)

        if deep:
            for child in self._children:
                child.populate_children(deep=True)

        return None