diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-07 06:54:39 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-07 06:54:39 +0000 |
commit | d542bf338aa1638b082a141163db5437ce7a33a9 (patch) | |
tree | f0d928d37de22b0d24f590ea73b2cf45247bc854 | |
parent | cfcd75b993725fe0b8d88129b14aee28f3f35cb2 (diff) | |
download | vyos-1x-d542bf338aa1638b082a141163db5437ce7a33a9.tar.gz vyos-1x-d542bf338aa1638b082a141163db5437ce7a33a9.zip |
event-handler: T3083: Move system to service event-handler
Move 'system event-handler' to 'service event-handler'
-rw-r--r-- | interface-definitions/service-event-handler.xml.in (renamed from interface-definitions/system-event-handler.xml.in) | 4 | ||||
-rwxr-xr-x | src/conf_mode/service_event_handler.py (renamed from src/conf_mode/system_event_handler.py) | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/system-event-handler.xml.in b/interface-definitions/service-event-handler.xml.in index f5d8afabd..0ed26b213 100644 --- a/interface-definitions/system-event-handler.xml.in +++ b/interface-definitions/service-event-handler.xml.in @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <interfaceDefinition> - <node name="system"> + <node name="service"> <children> - <tagNode name="event-handler" owner="${vyos_conf_scripts_dir}/system_event_handler.py"> + <tagNode name="event-handler" owner="${vyos_conf_scripts_dir}/service_event_handler.py"> <properties> <help>Event handler name</help> </properties> diff --git a/src/conf_mode/system_event_handler.py b/src/conf_mode/service_event_handler.py index 9f91e99fc..cf4aba49b 100755 --- a/src/conf_mode/system_event_handler.py +++ b/src/conf_mode/service_event_handler.py @@ -34,7 +34,7 @@ def get_config(config=None): else: conf = Config() - base = ['system', 'event-handler'] + base = ['service', 'event-handler'] config = conf.get_config_dict(base, get_first_key=True, no_tag_node_value_mangle=True) |