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

FMO-36: Need the host default route to be added #46

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

jsvapiav
Copy link
Collaborator

@jsvapiav jsvapiav commented Jun 3, 2024

  • Add host ipaddr and default route to configuration
  • Add updateHostConfig functionality

Signed-off-by: Ivan Kuznetsov <[email protected]>
- Add host ipaddr and default route to configuration
- Add updateHostConfig functionality

Signed-off-by: Ivan Kuznetsov <[email protected]>
@@ -76,6 +77,7 @@ let
];
}
]
++ updateHostConfig {inherit lib; inherit targetconf;}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I understand your idea. But in terms of syntax, is it config.systemd.network similar to above addSystemPackages (line 69). We can just directly write the config into this file, unless you want to keep it simple?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure, because it needs targetconf as parameter, which does not exist on translation stage above, and also for me this one looks better and cleaner. Probably at some point we need to move those functions down there also.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also all other functions probably need to be moved to separate files with proper names and definitions. But, it definitely something for future.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, I think in the future we should organize the configs into separate files which then much easier to manage

Copy link
Collaborator

@buianhhuy96 buianhhuy96 left a comment

Choose a reason for hiding this comment

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

As discussed, we keep like this for now

@jsvapiav jsvapiav merged commit c50e54b into main Jun 4, 2024
3 checks passed
@jsvapiav jsvapiav deleted the fmo-36_need_the_host_default_route_to_be_added branch June 4, 2024 10:05
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