Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add modes trunks and list-trunks #931

Merged
merged 1 commit into from
Apr 9, 2018

Conversation

cgagnaire
Copy link
Contributor

Add modes trunks and list-trunks to F5 BigIP plugin.

next;
}

if (!defined($self->{option_results}->{use_regexp}) && $self->{result}->{$sysTrunkName . '.' . $instance} eq $self->{option_results}->{name}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use to add the following condition to similar loop/filter :

&& $self->{option_results}->{name} ne ''

Any reason we change this here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I could have use filter_name option, but was wrongly inspired by other list modes from this plugin.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, as they are new modes and we do not risk to break anything please make it "standard"

push @{$self->{trunks_selected}}, $instance;
next;
}
if (defined($self->{option_results}->{use_regexp}) && $self->{result}->{$sysTrunkName . '.' . $instance} =~ /$self->{option_results}->{name}/) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above

@Sims24
Copy link
Contributor

Sims24 commented Mar 29, 2018

@cgagnaire my review is about why do we have to specify --regexp option. Why do not use regexp by default as we do recently for other devices ? Any technical reason on f5 size or oid values ?

@Sims24
Copy link
Contributor

Sims24 commented Apr 9, 2018

Ok let's merge this to avoid unifying all the f5 plugin stack.

@Sims24 Sims24 merged commit ee37de8 into centreon:master Apr 9, 2018
@cgagnaire cgagnaire deleted the 872-add-mode-f5-trunk branch April 9, 2018 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants