Skip to content

Commit

Permalink
ncm-network core schema: remove useless format()
Browse files Browse the repository at this point in the history
  • Loading branch information
jouvin committed Jun 28, 2023
1 parent 98a481c commit 666cf58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ncm-network/src/main/pan/components/network/core-schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
};
};
Expand Down Expand Up @@ -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'])) {
Expand Down

0 comments on commit 666cf58

Please sign in to comment.