-
Notifications
You must be signed in to change notification settings - Fork 284
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
Conversation
next; | ||
} | ||
|
||
if (!defined($self->{option_results}->{use_regexp}) && $self->{result}->{$sysTrunkName . '.' . $instance} eq $self->{option_results}->{name}) { |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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}/) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above
@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 ? |
Ok let's merge this to avoid unifying all the f5 plugin stack. |
Add modes trunks and list-trunks to F5 BigIP plugin.