Skip to content

Commit

Permalink
Filter the data being pulled from the pfconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Dec 18, 2024
1 parent bd894bc commit 3aec3f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pf/api.pm
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ use pf::constants::domain qw($NTLM_REDIS_CACHE_HOST $NTLM_REDIS_CACHE_PORT);
use pf::Redis;
use pf::acls_push;
use Digest::MD5 qw(md5_base64);
use pf::config::crypt::object;
use pf::config::crypt::object::freeze;

my $logger = pf::log::get_logger();

Expand Down Expand Up @@ -146,7 +148,8 @@ sub echo : Public {

sub switch_freeradius_populate_nas_config : Public {
my ($class) = @_;
pf::freeradius::freeradius_populate_nas_config(pfconfig::manager->new->get_namespace("config::Switch")->build());
my $switches = pfconfig::manager->new->config_builder("config::Switch");
pf::freeradius::freeradius_populate_nas_config($switches);
return;
}

Expand Down

0 comments on commit 3aec3f5

Please sign in to comment.