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

No way to remove netconfig configuration #48

Open
hramrach opened this issue Feb 11, 2023 · 1 comment
Open

No way to remove netconfig configuration #48

hramrach opened this issue Feb 11, 2023 · 1 comment

Comments

@hramrach
Copy link

       netconfig modify
               < -s | --service <service name> >
               [ -i | --interface <interface name> ]
               [ -F | --input-format <input/lease file format> ]
               [ -I | --input-file <input/lease file name> ]
               [ -l | --lease-file <input/lease file name> ]
               [ -m | --module-only < name | prefix > ]
               [ -f | --force-replace ]
               [ -v | --verbose ]

       netconfig remove
               < -s | --service <service name> >
               [ -i | --interface <interface name> ]
               [ -m | --module-only < name | prefix > ]
               [ -f | --force-replace ]
               [ -v | --verbose ]

       netconfig update
               [ -m | --module-only < name | prefix > ]
               [ -f | --force-replace ]
               [ -v | --verbose ]

Suppose you are running service foo that installs configuration for interfaces bar and baz, and crashes.

How do you remove the configuration for the crashed service?

Because it crashed you may no longer know that it managed interfaces bar and baz, there is no option to list configuration, no option to remove all configuration for a service.

@hramrach
Copy link
Author

Technically the interface name is marked as optional but it's not documented what it means when it is missing:

       modify Modify the current interface and service specific dynamic settings and update the network configuration.

              Netconfig reads these settings on its standard input or from the file specified by the --input-file option and stores them internally until a system reboot or the next modify or remove  ac-
              tion. Already existing settings for the same interface and service combination will be overwritten.  See the MODIFY INPUT FORMAT section for input format description.

       remove Removes the dynamic settings provided by a modify action for the specified interface and service combination and update the network configuration.

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

No branches or pull requests

1 participant