Example #1
0
    def all(cli_opts: bunch.Bunch, prefix: List[str]) -> None:  # noqa: B902
        """
        Show routes that this node should be advertising across all areas. This
        is pre-policy routes
        """

        opts = cli_opts.advertised_routes_options
        prefix_mgr.AdvertisedRoutesCmd(cli_opts).run(prefix, opts.prefix_type,
                                                     opts.json, opts.detail)
Example #2
0
    def show(
        cli_opts,  # noqa: B902
        prefix: List[str],
        prefix_type: Optional[str],
        detail: bool,
        json: bool,
    ) -> None:
        """
        Show routes this node is advertising. Will show all by default
        """

        prefix_mgr.AdvertisedRoutesCmd(cli_opts).run(prefix, prefix_type, json,
                                                     detail)
Example #3
0
    def show(
        cli_opts,  # noqa: B902
        prefix: List[str],
        prefix_type: Optional[str],
        detail: bool,
        json: bool,
    ) -> None:
        """
        Show routes this node is advertising. Will show all by default
        """

        # pyre-fixme[6]: Expected `Bunch` for 1st param but got `AdvertisedRoutesCli`.
        prefix_mgr.AdvertisedRoutesCmd(cli_opts).run(prefix, prefix_type, json,
                                                     detail)