}
}
- if (!vni_set || !dp_table_set)
+ if (!reid_set)
{
- vlib_cli_output (vm, "vni and vrf/bd must be set!");
+ vlib_cli_output (vm, "remote eid must be set!");
goto done;
}
- if (!reid_set)
+ if (gid_address_type (reid) != GID_ADDR_NSH && (!vni_set || !dp_table_set))
{
- vlib_cli_output (vm, "remote eid must be set!");
+ vlib_cli_output (vm, "vni and vrf/bd must be set!");
goto done;
}