def rejected( cli_opts: bunch.Bunch, area: str, prefix: List[str] # noqa: B902 ) -> None: """ Show routes rejected by area policy on advertisement """ opts = cli_opts.advertised_routes_options prefix_mgr.AreaAdvertisedRoutesCmd(cli_opts).run( area, ctrl_types.RouteFilterType.REJECTED_ON_ADVERTISE, prefix, opts.prefix_type, opts.json, opts.detail, )
def post_policy( cli_opts: bunch.Bunch, area: str, prefix: List[str] # noqa: B902 ) -> None: """ Show post-policy routes that are advertisment to specified area """ opts = cli_opts.advertised_routes_options prefix_mgr.AreaAdvertisedRoutesCmd(cli_opts).run( area, ctrl_types.RouteFilterType.POSTFILTER_ADVERTISED, prefix, opts.prefix_type, opts.json, opts.detail, )
def show( cli_opts, # noqa: B902 area: str, prefix: List[str], prefix_type: Optional[str], detail: bool, json: bool, ) -> None: """ Given an area, show routes rejected on advertise to the area. Will show all by default """ # pyre-fixme[6]: Expected `Bunch` for 1st param but got # `RejectedOnAdvertiseRoutesCli`. prefix_mgr.AreaAdvertisedRoutesCmd(cli_opts).run( area, ctrl_types.RouteFilterType.REJECTED_ON_ADVERTISE, prefix, prefix_type, json, detail, )
def show( cli_opts, # noqa: B902 area: str, prefix: List[str], prefix_type: Optional[str], detail: bool, json: bool, ) -> None: """ Given an area, show postfilter advertised routes to the area. Will show all by default """ # pyre-fixme[6]: Expected `Bunch` for 1st param but got # `PostfilterAdvertisedRoutesCli`. prefix_mgr.AreaAdvertisedRoutesCmd(cli_opts).run( area, ctrl_types.RouteFilterType.POSTFILTER_ADVERTISED, prefix, prefix_type, json, detail, )