Пример #1
0
    def routes(
        cli_opts: Bunch,  # noqa: B902
        prefixes: List[str],
        labels: List[int],
        json: bool,
    ):
        """ Get and print all the routes on fib agent """

        return_code = fib.FibRoutesInstalledCmd(cli_opts).run(
            prefixes, labels, json)
        sys.exit(return_code)
Пример #2
0
    def routes(cli_opts, prefixes, json):  # noqa: B902
        ''' Get and print all the routes on fib agent '''

        return_code = fib.FibRoutesInstalledCmd(cli_opts).run(prefixes, json)
        sys.exit(return_code)
Пример #3
0
 def print_fib_routes_installed(self):
     if not self.print_routes:
         return
     fib.FibRoutesInstalledCmd(self.cli_opts).run([])
Пример #4
0
    def routes(cli_opts, prefixes):  # noqa: B902
        ''' Get and print all the routes on fib agent '''

        fib.FibRoutesInstalledCmd(cli_opts).run(prefixes)