Re: [lxc-users] ?= ?==?utf-8?q? "lxc network create" erro
Sent a fix: https://github.com/lxc/lxd/pull/3614 root@castiana:~# lxc network create dev Network dev created root@castiana:~# lxc network delete dev Network dev deleted On Tue, Aug 01, 2017 at 11:47:59AM +, Tomasz Chmielewski wrote: > On Tuesday, August 01, 2017 19:49 JST, Sjoerdwrote: > > > >> I vote for feature, since dev is most likely a reserved word, since it's > > >> short for device in routing terms. > > > Unless someone has i.e. "prod" and "dev" environments. > > Unrelate imho. In this case you're trying to create a network, which > > implies routing commands under the hood, so than I find it logical that > > dev can't be used as name. > > What spec defines that "dev" can't be used as a name in networking world? > > I.e. this one works: > > # ifconfig eth0:dev 1.2.3.4 > # ifconfig eth0:prod 2.3.4.5 > > > This will also work: > > # ip addr add 10.1.2.3 dev eth0 label eth0:dev > # ip addr add 10.2.3.4 dev eth0 label eth0:prod > > > This one also works: > > # brctl addbr prod > # brctl addbr dev > # brctl show > bridge name bridge id STP enabled interfaces > dev 8000. no > prod 8000. no > > > > -- > Tomasz Chmielewski > https://lxadm.com > ___ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: PGP signature ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] ?==?utf-8?q? ?==?utf-8?q? ?= "lxc network create" erro
On Tuesday, August 01, 2017 19:49 JST, Sjoerdwrote: > >> I vote for feature, since dev is most likely a reserved word, since it's > >> short for device in routing terms. > > Unless someone has i.e. "prod" and "dev" environments. > Unrelate imho. In this case you're trying to create a network, which > implies routing commands under the hood, so than I find it logical that > dev can't be used as name. What spec defines that "dev" can't be used as a name in networking world? I.e. this one works: # ifconfig eth0:dev 1.2.3.4 # ifconfig eth0:prod 2.3.4.5 This will also work: # ip addr add 10.1.2.3 dev eth0 label eth0:dev # ip addr add 10.2.3.4 dev eth0 label eth0:prod This one also works: # brctl addbr prod # brctl addbr dev # brctl show bridge name bridge id STP enabled interfaces dev 8000. no prod 8000. no -- Tomasz Chmielewski https://lxadm.com ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] ?= =?utf-8?q? "lxc network create" error
On 01-08-17 11:40, Tomasz Chmielewski wrote: On Tuesday, August 01, 2017 18:04 JST, Sjoerdwrote: On 30-07-17 17:15, Tomasz Chmielewski wrote: Bug or a feature? # lxc network create dev error: Failed to run: ip link add dev type bridge: Error: either "dev" is duplicate, or "bridge" is a garbage. # lxc network create devel Network devel created I vote for feature, since dev is most likely a reserved word, since it's short for device in routing terms. Unless someone has i.e. "prod" and "dev" environments. Unrelate imho. In this case you're trying to create a network, which implies routing commands under the hood, so than I find it logical that dev can't be used as name. i.e. setting routing can be done like : ip route add 192.168.10.0/24 via 10.2.2.1 dev eth0 But that's a different command. Yes, but as stated above...you're creating a network device, which needs routing applied. So I can imagine (but for details the developers might be better to explain), that lxc (a front-end) will use the ip route command under the hood to apply the IP address/routing like : ip route add 192.168.1.0/24 dev lxdbr1. Just take a look at the output of "ip route list" ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] ?==?utf-8?q? ?==?utf-8?q? "lxc network create" error
On Tuesday, August 01, 2017 18:04 JST, Sjoerdwrote: > > > On 30-07-17 17:15, Tomasz Chmielewski wrote: > > Bug or a feature? > > > > # lxc network create dev > > error: Failed to run: ip link add dev type bridge: Error: either "dev" is > > duplicate, or "bridge" is a garbage. > > > > > > # lxc network create devel > > Network devel created > > > > > I vote for feature, since dev is most likely a reserved word, since it's > short for device in routing terms. Unless someone has i.e. "prod" and "dev" environments. > i.e. setting routing can be done like : ip route add 192.168.10.0/24 via > 10.2.2.1 dev eth0 But that's a different command. > So in you-re case the command would end like : dev dev ...I would be > confused by that as well ;) If we treat it as a feature - then it's an undocumented feature. We would need documentation specifying a list of disallowed network names. -- Tomasz Chmielewski https://lxadm.com ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] "lxc network create" error
On 30-07-17 17:15, Tomasz Chmielewski wrote: Bug or a feature? # lxc network create dev error: Failed to run: ip link add dev type bridge: Error: either "dev" is duplicate, or "bridge" is a garbage. # lxc network create devel Network devel created I vote for feature, since dev is most likely a reserved word, since it's short for device in routing terms. i.e. setting routing can be done like : ip route add 192.168.10.0/24 via 10.2.2.1 dev eth0 So in you-re case the command would end like : dev dev ...I would be confused by that as well ;) ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users