コード例 #1
0
ファイル: kvstore.py プロジェクト: zxh1986123/openr
    def prefixes(
        cli_opts: Any,  # noqa: B902
        nodes: List[str],
        json: bool,
        prefix: str,
        client_type: str,
    ) -> None:
        """ show the prefixes in the network """

        nodes = parse_nodes(cli_opts, nodes)
        kvstore.PrefixesCmd(cli_opts).run(nodes, json, prefix, client_type)
コード例 #2
0
 def print_kvstore_prefixes(self):
     kvstore.PrefixesCmd(self.cli_opts).run(['all'], False)
コード例 #3
0
    def prefixes(cli_opts, nodes, json):  # noqa: B902
        """ show the prefixes in the network """

        nodes = parse_nodes(cli_opts, nodes)
        kvstore.PrefixesCmd(cli_opts).run(nodes, json)
コード例 #4
0
ファイル: kvstore.py プロジェクト: Annapurna610/openr-1
    def prefixes(cli_opts, nodes, json):  # noqa: B902
        ''' show the prefixes in the network '''

        nodes = parse_nodes(cli_opts.host, nodes, cli_opts.lm_cmd_port)
        kvstore.PrefixesCmd(cli_opts).run(nodes, json)