confile: adapt warning

parent d1826cf1
...@@ -700,8 +700,10 @@ static int set_config_network_type(const char *key, const char *value, ...@@ -700,8 +700,10 @@ static int set_config_network_type(const char *key, const char *value,
/* We maintain a negative count for legacy network devices. */ /* We maintain a negative count for legacy network devices. */
ssize_t negidx = -1; ssize_t negidx = -1;
WARN("WARNING: using \"lxc.network.type\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g.\"lxc.network.0.type\") is DEPRECATED."); "\"lxc.network.type\" without an index "
"(e.g.\"lxc.network.0.type\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
if (!lxc_list_empty(&lxc_conf->network)) { if (!lxc_list_empty(&lxc_conf->network)) {
struct lxc_netdev *ndv; struct lxc_netdev *ndv;
ndv = lxc_list_first_elem(&lxc_conf->network); ndv = lxc_list_first_elem(&lxc_conf->network);
...@@ -897,8 +899,10 @@ static int set_config_network_flags(const char *key, const char *value, ...@@ -897,8 +899,10 @@ static int set_config_network_flags(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.flags\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g.\"lxc.network.0.flags\") is DEPRECATED."); "\"lxc.network.flags\" without an index "
"(e.g.\"lxc.network.0.flags\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -968,8 +972,10 @@ static int set_config_network_link(const char *key, const char *value, ...@@ -968,8 +972,10 @@ static int set_config_network_link(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.link\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g.\"lxc.network.0.link\") is DEPRECATED."); "\"lxc.network.link\" without an index "
"(e.g.\"lxc.network.0.link\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -997,8 +1003,10 @@ static int set_config_network_name(const char *key, const char *value, ...@@ -997,8 +1003,10 @@ static int set_config_network_name(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.name\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g.\"lxc.network.0.name\") is DEPRECATED."); "\"lxc.network.name\" without an index "
"(e.g.\"lxc.network.0.name\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1021,8 +1029,10 @@ static int set_config_network_veth_pair(const char *key, const char *value, ...@@ -1021,8 +1029,10 @@ static int set_config_network_veth_pair(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.veth.pair\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.veth.pair\") is DEPRECATED."); "\"lxc.network.veth.pair\" without an index "
"(e.g.\"lxc.network.0.veth.pair\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1047,9 +1057,10 @@ static int set_config_network_macvlan_mode(const char *key, const char *value, ...@@ -1047,9 +1057,10 @@ static int set_config_network_macvlan_mode(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.macvlan.mode\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.macvlan.mode\" is " "\"lxc.network.macvlan.mode\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.macvlan.mode\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1073,8 +1084,10 @@ static int set_config_network_hwaddr(const char *key, const char *value, ...@@ -1073,8 +1084,10 @@ static int set_config_network_hwaddr(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.hwaddr\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.hwaddr\") is DEPRECATED."); "\"lxc.network.hwaddr\" without an index "
"(e.g.\"lxc.network.0.hwaddr\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1111,8 +1124,10 @@ static int set_config_network_vlan_id(const char *key, const char *value, ...@@ -1111,8 +1124,10 @@ static int set_config_network_vlan_id(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.vlan.id\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.vlan.id\") is DEPRECATED."); "\"lxc.network.vlan.id\" without an index "
"(e.g.\"lxc.network.0.vlan.id\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1138,8 +1153,10 @@ static int set_config_network_mtu(const char *key, const char *value, ...@@ -1138,8 +1153,10 @@ static int set_config_network_mtu(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.mtu\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.mtu\") is DEPRECATED."); "\"lxc.network.mtu\" without an index "
"(e.g.\"lxc.network.0.mtu\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1166,8 +1183,10 @@ static int set_config_network_ipv4(const char *key, const char *value, ...@@ -1166,8 +1183,10 @@ static int set_config_network_ipv4(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv4\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.ipv4\") is DEPRECATED."); "\"lxc.network.ipv4\" without an index "
"(e.g.\"lxc.network.0.ipv4\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1264,9 +1283,10 @@ static int set_config_network_ipv4_gateway(const char *key, const char *value, ...@@ -1264,9 +1283,10 @@ static int set_config_network_ipv4_gateway(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv4.gateway\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.ipv4.gateway\" is " "\"lxc.network.ipv4.gateway\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.ipv4.gateway\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1318,8 +1338,10 @@ static int set_config_network_ipv6(const char *key, const char *value, ...@@ -1318,8 +1338,10 @@ static int set_config_network_ipv6(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv6\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.ipv6\") is DEPRECATED."); "\"lxc.network.ipv6\" without an index "
"(e.g.\"lxc.network.0.ipv6\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1388,9 +1410,10 @@ static int set_config_network_ipv6_gateway(const char *key, const char *value, ...@@ -1388,9 +1410,10 @@ static int set_config_network_ipv6_gateway(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv6.gateway\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.ipv6.gateway\" is " "\"lxc.network.ipv6.gateway\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.ipv6.gateway\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1439,9 +1462,10 @@ static int set_config_network_script_up(const char *key, const char *value, ...@@ -1439,9 +1462,10 @@ static int set_config_network_script_up(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.script.up\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.script.up\" is " "\"lxc.network.script.up\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.script.up\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -1464,9 +1488,10 @@ static int set_config_network_script_down(const char *key, const char *value, ...@@ -1464,9 +1488,10 @@ static int set_config_network_script_down(const char *key, const char *value,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.script.down\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.script.down\" is " "\"lxc.network.script.down\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.script.down\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4404,8 +4429,10 @@ static int clr_config_network_type(const char *key, struct lxc_conf *lxc_conf, ...@@ -4404,8 +4429,10 @@ static int clr_config_network_type(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.type\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.type\") is DEPRECATED."); "\"lxc.network.type\" without an index "
"(e.g.\"lxc.network.0.type\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4427,8 +4454,10 @@ static int clr_config_network_name(const char *key, struct lxc_conf *lxc_conf, ...@@ -4427,8 +4454,10 @@ static int clr_config_network_name(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.name\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.name\") is DEPRECATED."); "\"lxc.network.name\" without an index "
"(e.g.\"lxc.network.0.name\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4452,8 +4481,10 @@ static int clr_config_network_flags(const char *key, struct lxc_conf *lxc_conf, ...@@ -4452,8 +4481,10 @@ static int clr_config_network_flags(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.flags\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.flags\") is DEPRECATED."); "\"lxc.network.flags\" without an index "
"(e.g.\"lxc.network.0.flags\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4475,8 +4506,10 @@ static int clr_config_network_link(const char *key, struct lxc_conf *lxc_conf, ...@@ -4475,8 +4506,10 @@ static int clr_config_network_link(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.link\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.link\") is DEPRECATED."); "\"lxc.network.link\" without an index "
"(e.g.\"lxc.network.0.link\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4500,9 +4533,10 @@ static int clr_config_network_macvlan_mode(const char *key, ...@@ -4500,9 +4533,10 @@ static int clr_config_network_macvlan_mode(const char *key,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.macvlan.mode\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.macvlan.mode\" is " "\"lxc.network.macvlan.mode\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.macvlan.mode\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4527,9 +4561,10 @@ static int clr_config_network_veth_pair(const char *key, ...@@ -4527,9 +4561,10 @@ static int clr_config_network_veth_pair(const char *key,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.veth.pair\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.veth.pair\" is " "\"lxc.network.veth.pair\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.veth.pair\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4552,9 +4587,10 @@ static int clr_config_network_script_up(const char *key, ...@@ -4552,9 +4587,10 @@ static int clr_config_network_script_up(const char *key,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.script.up\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.script.up\" is " "\"lxc.network.script.up\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.script.up\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4577,9 +4613,10 @@ static int clr_config_network_script_down(const char *key, ...@@ -4577,9 +4613,10 @@ static int clr_config_network_script_down(const char *key,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.script.down\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.script.down\" is " "\"lxc.network.script.down\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.script.down\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4602,8 +4639,10 @@ static int clr_config_network_hwaddr(const char *key, struct lxc_conf *lxc_conf, ...@@ -4602,8 +4639,10 @@ static int clr_config_network_hwaddr(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.hwaddr\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.hwaddr\") is DEPRECATED."); "\"lxc.network.hwaddr\" without an index "
"(e.g.\"lxc.network.0.hwaddr\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4626,8 +4665,10 @@ static int clr_config_network_mtu(const char *key, struct lxc_conf *lxc_conf, ...@@ -4626,8 +4665,10 @@ static int clr_config_network_mtu(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.mtu\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.mtu\") is DEPRECATED."); "\"lxc.network.mtu\" without an index "
"(e.g.\"lxc.network.0.mtu\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4650,8 +4691,10 @@ static int clr_config_network_vlan_id(const char *key, ...@@ -4650,8 +4691,10 @@ static int clr_config_network_vlan_id(const char *key,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.vlan.id\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.vlan.id\") is DEPRECATED."); "\"lxc.network.vlan.id\" without an index "
"(e.g.\"lxc.network.0.vlan.id\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4674,9 +4717,10 @@ static int clr_config_network_ipv4_gateway(const char *key, ...@@ -4674,9 +4717,10 @@ static int clr_config_network_ipv4_gateway(const char *key,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv4.gateway\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.ipv4.gateway\" is " "\"lxc.network.ipv4.gateway\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.ipv4.gateway\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4700,8 +4744,10 @@ static int clr_config_network_ipv4(const char *key, struct lxc_conf *lxc_conf, ...@@ -4700,8 +4744,10 @@ static int clr_config_network_ipv4(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv4\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.ipv4\") is DEPRECATED."); "\"lxc.network.ipv4\" without an index "
"(e.g.\"lxc.network.0.ipv4\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4728,9 +4774,10 @@ static int clr_config_network_ipv6_gateway(const char *key, ...@@ -4728,9 +4774,10 @@ static int clr_config_network_ipv6_gateway(const char *key,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv6.gateway\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.ipv6.gateway\" is " "\"lxc.network.ipv6.gateway\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.ipv6.gateway\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4754,8 +4801,10 @@ static int clr_config_network_ipv6(const char *key, struct lxc_conf *lxc_conf, ...@@ -4754,8 +4801,10 @@ static int clr_config_network_ipv6(const char *key, struct lxc_conf *lxc_conf,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv6\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.ipv6\") is DEPRECATED."); "\"lxc.network.ipv6\" without an index "
"(e.g.\"lxc.network.0.ipv6\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&lxc_conf->network); netdev = lxc_list_first_elem(&lxc_conf->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4805,8 +4854,10 @@ static int get_config_network_type(const char *key, char *retv, int inlen, ...@@ -4805,8 +4854,10 @@ static int get_config_network_type(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.type\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.type\") is DEPRECATED."); "\"lxc.network.type\" without an index "
"(e.g.\"lxc.network.0.type\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4834,8 +4885,10 @@ static int get_config_network_flags(const char *key, char *retv, int inlen, ...@@ -4834,8 +4885,10 @@ static int get_config_network_flags(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.flags\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.flags\") is DEPRECATED."); "\"lxc.network.flags\" without an index "
"(e.g.\"lxc.network.0.flags\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4864,8 +4917,10 @@ static int get_config_network_link(const char *key, char *retv, int inlen, ...@@ -4864,8 +4917,10 @@ static int get_config_network_link(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.link\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.link\") is DEPRECATED."); "\"lxc.network.link\" without an index "
"(e.g.\"lxc.network.0.link\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4894,8 +4949,10 @@ static int get_config_network_name(const char *key, char *retv, int inlen, ...@@ -4894,8 +4949,10 @@ static int get_config_network_name(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.name\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.name\") is DEPRECATED."); "\"lxc.network.name\" without an index "
"(e.g.\"lxc.network.0.name\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4926,9 +4983,10 @@ static int get_config_network_macvlan_mode(const char *key, char *retv, ...@@ -4926,9 +4983,10 @@ static int get_config_network_macvlan_mode(const char *key, char *retv,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.macvlan.mode\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.macvlan.mode\" is " "\"lxc.network.macvlan.mode\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.macvlan.mode\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -4977,9 +5035,10 @@ static int get_config_network_veth_pair(const char *key, char *retv, int inlen, ...@@ -4977,9 +5035,10 @@ static int get_config_network_veth_pair(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.veth.pair\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.veth.pair\" is " "\"lxc.network.veth.pair\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.veth.pair\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5012,9 +5071,10 @@ static int get_config_network_script_up(const char *key, char *retv, int inlen, ...@@ -5012,9 +5071,10 @@ static int get_config_network_script_up(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.script.up\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.script.up\" is " "\"lxc.network.script.up\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.script.up\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5044,9 +5104,10 @@ static int get_config_network_script_down(const char *key, char *retv, ...@@ -5044,9 +5104,10 @@ static int get_config_network_script_down(const char *key, char *retv,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.script.down\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.script.down\" is " "\"lxc.network.script.down\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.script.down\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5075,8 +5136,10 @@ static int get_config_network_hwaddr(const char *key, char *retv, int inlen, ...@@ -5075,8 +5136,10 @@ static int get_config_network_hwaddr(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.hwaddr\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.hwaddr\") is DEPRECATED."); "\"lxc.network.hwaddr\" without an index "
"(e.g.\"lxc.network.0.hwaddr\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5105,8 +5168,10 @@ static int get_config_network_mtu(const char *key, char *retv, int inlen, ...@@ -5105,8 +5168,10 @@ static int get_config_network_mtu(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.mtu\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.mtu\") is DEPRECATED."); "\"lxc.network.mtu\" without an index "
"(e.g.\"lxc.network.0.mtu\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5135,8 +5200,10 @@ static int get_config_network_vlan_id(const char *key, char *retv, int inlen, ...@@ -5135,8 +5200,10 @@ static int get_config_network_vlan_id(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.vlan.id\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.vlan.id\") is DEPRECATED."); "\"lxc.network.vlan.id\" without an index "
"(e.g.\"lxc.network.0.vlan.id\"). LET US KNOW IF YOU NEED "
"TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5169,9 +5236,10 @@ static int get_config_network_ipv4_gateway(const char *key, char *retv, ...@@ -5169,9 +5236,10 @@ static int get_config_network_ipv4_gateway(const char *key, char *retv,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv4.gateway\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.ipv4.gateway\" is " "\"lxc.network.ipv4.gateway\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.ipv4.gateway\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5207,8 +5275,10 @@ static int get_config_network_ipv4(const char *key, char *retv, int inlen, ...@@ -5207,8 +5275,10 @@ static int get_config_network_ipv4(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv4\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.ipv4\") is DEPRECATED."); "\"lxc.network.ipv4\" without an index "
"(e.g.\"lxc.network.0.ipv4\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5244,9 +5314,10 @@ static int get_config_network_ipv6_gateway(const char *key, char *retv, ...@@ -5244,9 +5314,10 @@ static int get_config_network_ipv6_gateway(const char *key, char *retv,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv6.gateway\" without an " WARN("WARNING: We're considering DEPRECATING "
"index (e.g. \"lxc.network.0.ipv6.gateway\" is " "\"lxc.network.ipv6.gateway\" without an index "
"DEPRECATED."); "(e.g.\"lxc.network.0.ipv6.gateway\"). LET US KNOW IF YOU "
"NEED TO USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
...@@ -5282,8 +5353,10 @@ static int get_config_network_ipv6(const char *key, char *retv, int inlen, ...@@ -5282,8 +5353,10 @@ static int get_config_network_ipv6(const char *key, char *retv, int inlen,
/* REMOVE IN LXC 3.0: /* REMOVE IN LXC 3.0:
* lxc.network.* without an index * lxc.network.* without an index
*/ */
WARN("WARNING: using \"lxc.network.ipv6\" without an index " WARN("WARNING: We're considering DEPRECATING "
"(e.g. \"lxc.network.0.ipv6\") is DEPRECATED."); "\"lxc.network.ipv6\" without an index "
"(e.g.\"lxc.network.0.ipv6\"). LET US KNOW IF YOU NEED TO "
"USE THIS!");
netdev = lxc_list_first_elem(&c->network); netdev = lxc_list_first_elem(&c->network);
} else { } else {
netdev = data; netdev = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment