fix: changed name to switch_ips for more clarity
All checks were successful
Run Check Script / check (pull_request) Successful in 54s

This commit is contained in:
2026-01-06 10:51:53 -05:00
parent 93ac89157a
commit 2b19d8c3e8
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ use harmony::{
#[tokio::main]
async fn main() {
let brocade_snmp_server = BrocadeEnableSnmpScore {
server_ips: vec![IpAddr::V4(Ipv4Addr::new(192, 168, 1, 111))],
switch_ips: vec![IpAddr::V4(Ipv4Addr::new(192, 168, 1, 111))],
dry_run: true,
};

View File

@@ -16,7 +16,7 @@ use crate::{
#[derive(Debug, Clone, Serialize)]
pub struct BrocadeEnableSnmpScore {
pub server_ips: Vec<IpAddr>,
pub switch_ips: Vec<IpAddr>,
pub dry_run: bool,
}
@@ -57,7 +57,7 @@ impl<T: Topology> Interpret<T> for BrocadeEnableSnmpInterpret {
_inventory: &Inventory,
_topology: &T,
) -> Result<Outcome, InterpretError> {
let switch_addresses = &self.score.server_ips;
let switch_addresses = &self.score.switch_ips;
let snmp_auth = SecretManager::get_or_prompt::<BrocadeSnmpAuth>()
.await