[lxc-devel] Problem in adding network interface to a container
Ajith Adapa
ajith.adapa at gmail.com
Sat Jul 5 11:26:16 UTC 2014
Hi,
I am trying to write a sample application in C to add and delete a
network interface into a container. My code is as shown below and it
fails.
#define DEVICE "/sys/class/net/eth2"
#define NAME "eth1"
if (!c->add_device_node(c, DEVICE, NAME)) {
fprintf(stderr, "Adding %s to the container (%s) failed...\n",
DEVICE, NAME);
goto out;
}
Is there anything wrong in the way I am using the add API ?
Regards,
Ajith
More information about the lxc-devel
mailing list