-
Notifications
You must be signed in to change notification settings - Fork 918
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
Model Type in backup file #3249
Comments
I'm going to change your question. a) Is it possible now, without touching code or model: No On avenue could be for example some metadata hash or array of strings, and we could have one string like 'model_name', if exists in array or hash key, output class could add it on top of every file. So all models would gain this feature, without touching models. We could of course obviously emit that from models as well. |
Implementing this feature independently of the models seems very elegant to me.
We could provide a method and/or variable for the models do disable metadata, so that users ca disable the feature if they don't want it. |
I'm thinking something like: output:
metadata:
- model_name
- somethingelse Not sure what configuration key would make most sense, and if it should be under EDIT. Perhaps array of strings by location would be better? output:
metadata:
top:
- "!RANCID-CONTENT-TYPE: %model_name"
- "!DATE: %year-%month-€dayT%hour:%minute" And is metadata most self-documenting, or is this like |
Hello,
Rancid writes in the first line of the backup file the model type:
example:
!RANCID-CONTENT-TYPE: cisco-xr
Whould this also be possible somehow with Oxidized?
br
Christoph
The text was updated successfully, but these errors were encountered: