Skip to content

Commit

Permalink
ncm-opennebula: Remove lint from pan templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Nov 28, 2024
1 parent d0ec94e commit 7540b81
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function opennebula_ipv42mac = {
};
# Sanity check
if (!match(ARGV[0], '^[0-9a-f]{2}[:][0-9a-f]{2}$')) {
error(format("Invalid MAC_PREFIX format: %s", ARGV[0]));
error("Invalid MAC_PREFIX format: %s", ARGV[0]);
};
if (!is_ipv4(ARGV[1])) {
error(format("Invalid IPv4 format: %s", ARGV[1]));
error("Invalid IPv4 format: %s", ARGV[1]);
};
# Convert IP octets to Hex
macaddr = ARGV[0];
Expand Down Expand Up @@ -53,7 +53,7 @@ function opennebula_replace_vm_mac = {
};
# Sanity check
if (!match(ARGV[0], '^[0-9a-f]{2}[:][0-9a-f]{2}$')) {
error(format("Invalid MAC_PREFIX format (%s)", ARGV[0]));
error("Invalid MAC_PREFIX format (%s)", ARGV[0]);
};
foreach (ethk; ethv; value("/hardware/cards/nic")) {
if (exists(ethv['hwaddr'])) {
Expand Down

0 comments on commit 7540b81

Please sign in to comment.