Rename method to make more sense with supplicant logic

This doesn't really work but its fun and will be useful to dig into.
This commit is contained in:
James Gilliland 2022-03-10 22:18:53 -06:00
parent 26473f9c7e
commit 7c6fac34a0
5 changed files with 16 additions and 4 deletions

View file

@ -1,5 +1,7 @@
{
"output" : "build/pfatt.phar",
"metadata": "\\Pfatt\\PfattKernel::generateMetadata",
"git-commit": "git-commit",
"files": [
"bin/pfatt",
"cache/container.php"

View file

@ -79,7 +79,7 @@ final class Monitor extends Command
);
sleep(2);
$this->logger->error('Bringing things back up.');
$this->ngControl->createNodes(
$this->ngControl->createBridge(
$this->config->getOntInterface(),
$this->config->getRgInterface(),
$this->config->getRgEthernetMac()

View file

@ -74,7 +74,7 @@ final class Startup extends Command
$this->logger->info('OK!');
break;
}
$this->ngControl->createNodes(
$this->ngControl->createBridge(
$this->config->getOntInterface(),
$this->config->getRgInterface(),
$this->config->getRgEthernetMac()

View file

@ -20,10 +20,20 @@ final class PfattApplication extends Application
public function __construct(Logger $logger)
{
parent::__construct('PfATT', '1.0');
parent::__construct('PfATT', '@git@');
$this->logger = $logger;
}
/**
* Metadata for the phar file.
*
* @return string[]
*/
public static function generateMetadata(): array
{
return ['application_version' => '@git@'];
}
protected function getDefaultInputDefinition()
{
$definition = parent::getDefaultInputDefinition();

View file

@ -58,7 +58,7 @@ class NgCtl implements LoggerAwareInterface
* Residential Gateway MAC address.
* @return void
*/
public function createNodes(string $ont, string $rg, string $rgMac): void
public function createBridge(string $ont, string $rg, string $rgMac): void
{
$this->logger->info('Building netgraph nodes.');