From b87ac87bb8cb46a631f412aa0c71ff6ed5939e6a Mon Sep 17 00:00:00 2001 From: Michel Jouvin Date: Wed, 28 Jun 2023 16:38:57 +0200 Subject: [PATCH] ncm-network core schema: remove useless format() --- .../src/main/pan/components/network/core-schema.pan | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ncm-network/src/main/pan/components/network/core-schema.pan b/ncm-network/src/main/pan/components/network/core-schema.pan index 37a4f847f7..59976b198b 100644 --- a/ncm-network/src/main/pan/components/network/core-schema.pan +++ b/ncm-network/src/main/pan/components/network/core-schema.pan @@ -49,11 +49,11 @@ type structure_route = { }; if (ipv6) { if (!is_ipv6_prefix_length(pref)) { - error(format("Prefix %s is not a valid IPv6 prefix", pref)); + error("Prefix %s is not a valid IPv6 prefix", pref); }; } else { if (!is_ipv4_prefix_length(pref)) { - error(format("Prefix %s is not a valid IPv4 prefix", pref)); + error("Prefix %s is not a valid IPv4 prefix", pref); }; }; }; @@ -345,12 +345,12 @@ type structure_interface = { }; if (exists(SELF['ip']) && exists(SELF['netmask'])) { if (exists(SELF['gateway']) && ! ip_in_network(SELF['gateway'], SELF['ip'], SELF['netmask'])) { - error(format('networkinterface has gateway %s not reachable from ip %s with netmask %s', - SELF['gateway'], SELF['ip'], SELF['netmask'])); + error('networkinterface has gateway %s not reachable from ip %s with netmask %s', + SELF['gateway'], SELF['ip'], SELF['netmask']); }; if (exists(SELF['broadcast']) && ! ip_in_network(SELF['broadcast'], SELF['ip'], SELF['netmask'])) { - error(format('networkinterface has broadcast %s not reachable from ip %s with netmask %s', - SELF['broadcast'], SELF['ip'], SELF['netmask'])); + error('networkinterface has broadcast %s not reachable from ip %s with netmask %s', + SELF['broadcast'], SELF['ip'], SELF['netmask']); }; }; if (exists(SELF['plugin']) && exists(SELF['plugin']['vxlan']) && ! exists(SELF['physdev'])) {