mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-10-23 06:01:16 +00:00
Add cli method to get no routes in myceliumd-private
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
1 parent
acaa03b8e0
commit
3b65b6f65d
1 file changed
+9
@@ -214,6 +214,12 @@ pub enum RoutesCommand {
|
||||
#[arg(long = "json", default_value_t = false)]
|
||||
json: bool,
|
||||
},
|
||||
/// Print all subnets which are explicitly marked as not having a route
|
||||
NoRoute {
|
||||
/// Print subnets in JSON format
|
||||
#[arg(long = "json", default_value_t = false)]
|
||||
json: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
@@ -606,6 +612,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
RoutesCommand::Queried { json } => {
|
||||
return mycelium_cli::list_queried_subnets(cli.node_args.api_addr, json).await;
|
||||
}
|
||||
RoutesCommand::NoRoute { json } => {
|
||||
return mycelium_cli::list_no_route_entries(cli.node_args.api_addr, json).await;
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user