[SEBA-165] hide backend and policy_status for services which doesn't have those
Change-Id: I7b0bee305cbcfab200d64e3f2e8d9b5027d63050
diff --git a/lib/xos-genx/xosgenx/targets/modeldefs.xtarget b/lib/xos-genx/xosgenx/targets/modeldefs.xtarget
index 94b4136..1640b4f 100644
--- a/lib/xos-genx/xosgenx/targets/modeldefs.xtarget
+++ b/lib/xos-genx/xosgenx/targets/modeldefs.xtarget
@@ -11,6 +11,12 @@
{%- if m.options.description %}
description: "{{ xproto_unquote(m.options.description) }}"
{%- endif %}
+ {%- if m.options.sync_implemented %}
+ sync_implemented : "{{ xproto_unquote(m.options.sync_implemented) }}"
+ {%- endif %}
+ {%- if m.options.policy_implemented %}
+ policy_implemented : "{{ xproto_unquote(m.options.policy_implemented) }}"
+ {%- endif %}
{%- set goodlinks = xproto_links_to_modeldef_relations( xproto_base_links(m, proto.message_table) + m.links ) + xproto_links_to_modeldef_relations( xproto_base_rlinks(m, proto.message_table) + m.rlinks )%}
{%- if goodlinks %}
relations:
diff --git a/xos/coreapi/protos/modeldefs.proto b/xos/coreapi/protos/modeldefs.proto
index 1df3234..0dc0a6a 100644
--- a/xos/coreapi/protos/modeldefs.proto
+++ b/xos/coreapi/protos/modeldefs.proto
@@ -45,6 +45,8 @@
string app = 4;
string verbose_name = 5;
string description = 6;
+ string sync_implemented = 7;
+ string policy_implemented = 8;
};
message ModelDefs {