def do_list_cap(self, line):
        """list_cap <peer>
        """

        def f(p, args):
            for i in p.netconf.server_capabilities:
                print(i)

        self._request(line, f)
def do_list_cap ( self , line ) : def f ( p , args ) : for i in p . netconf . server_capabilities : print ( i ) self . _request ( line , f )
list_cap <peer>