<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/interface-definitions/interfaces-virtual-ethernet.xml.in, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2023-12-31T22:49:48+00:00</updated>
<entry>
<title>T5474: establish common file name pattern for XML conf mode commands</title>
<updated>2023-12-31T22:49:48+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-12-30T22:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=4ef110fd2c501b718344c72d495ad7e16d2bd465'/>
<id>urn:sha1:4ef110fd2c501b718344c72d495ad7e16d2bd465</id>
<content type='text'>
We will use _ as CLI level divider. The XML definition filename and also
the Python helper should match the CLI node.

Example:
set interfaces ethernet -&gt; interfaces_ethernet.xml.in
set interfaces bond -&gt; interfaces_bond.xml.in
set service dhcp-server -&gt; service_dhcp-server-xml.in
</content>
</entry>
<entry>
<title>veth: T5853: fix typo in constraintErrorMessage</title>
<updated>2023-12-24T08:41:58+00:00</updated>
<author>
<name>zero13th</name>
<email>zero13th@gmail.com</email>
</author>
<published>2023-12-24T08:41:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=89cd75b8dbe5cc145a4423bf10faa76fd6bdcdbf'/>
<id>urn:sha1:89cd75b8dbe5cc145a4423bf10faa76fd6bdcdbf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5241: Support netns for veth and dummy interfaces</title>
<updated>2023-06-03T00:32:36+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2023-05-30T09:04:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=e9c9d1a1e4f1bf876892b6e58f7288d36180889f'/>
<id>urn:sha1:e9c9d1a1e4f1bf876892b6e58f7288d36180889f</id>
<content type='text'>
Add netns configuration for dummy and virtual-ethernet interfaces
Change Interface class to get/set data to netns
</content>
</entry>
<entry>
<title>T5237: Add support VLANs and QinQ for virtual-ethernet interfaces</title>
<updated>2023-05-24T07:27:53+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2023-05-24T07:18:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1c1598065b0406c4e46c13c71f56e5e555ce675'/>
<id>urn:sha1:d1c1598065b0406c4e46c13c71f56e5e555ce675</id>
<content type='text'>
Ability to use 'vif' and 'vif-s' for virtual-ethernet "vethX" interfaces

set interfaces virtual-ethernet veth10 vif 50
</content>
</entry>
<entry>
<title>Revert "veth: T3829: Allow moving veth into netns"</title>
<updated>2023-05-14T11:57:07+00:00</updated>
<author>
<name>Joe Groocock</name>
<email>me@frebib.net</email>
</author>
<published>2023-05-14T11:53:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b9c438a6758b0511bea108af952a6492ca845737'/>
<id>urn:sha1:b9c438a6758b0511bea108af952a6492ca845737</id>
<content type='text'>
netns management for any Vyos interfaces doesn't work past the initial
creation, because Vyos always tries to recreate it/move it into the
netns even though it already exists. Until this is fixed, don't let
anyone even attempt to use this:

    set interfaces virtual-ethernet veth10 peer-name 'veth100'
    set interfaces virtual-ethernet veth100 netns 'ns01'
    set interfaces virtual-ethernet veth100 peer-name 'veth10'
    set netns name ns01
    commit

    vyos@r14# sudo ip netns exec ns01 ip link show
    1: lo: &lt;LOOPBACK&gt; mtu 65536 qdisc noop state DOWN mode DEFAULT group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    12: veth100@if13: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
        link/ether ee:8f:0b:bd:a2:f8 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    [edit]
    vyos@r14#

    set interfaces virtual-ethernet veth100 description MyNetns
    commit

    Traceback (most recent call last):
      File "/usr/libexec/vyos/conf_mode/interfaces-virtual-ethernet.py", line 111, in &lt;module&gt;
        apply(c)
      File "/usr/libexec/vyos/conf_mode/interfaces-virtual-ethernet.py", line 101, in apply
        p.update(veth)
      File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1413, in update
        self.set_netns(config.get('netns', ''))
      File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 552, in set_netns
        self.set_interface('netns', netns)
      File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 183, in set_interface
        return self._set_command(self.config, name, value)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 110, in _set_command
        return self._command_set[name].get('format', lambda _: _)(self._cmd(cmd))
                                                                  ^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 52, in _cmd
        return cmd(command, self.debug)
               ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
        raise OSError(code, feedback)
    PermissionError: [Errno 1] failed to run command: ip link set dev veth100 netns ns01
    returned:
    exit code: 1

    noteworthy:
    cmd 'ip link set dev veth100 netns ns01'
    returned (out):

    returned (err):
    Cannot find device "veth100"

This reverts commit f5cc8453860568351cd9b3b7a05d06e1462460e8.
</content>
</entry>
<entry>
<title>veth: T3829: Allow moving veth into netns</title>
<updated>2023-05-10T19:17:28+00:00</updated>
<author>
<name>Joe Groocock</name>
<email>me@frebib.net</email>
</author>
<published>2023-05-10T19:17:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=f5cc8453860568351cd9b3b7a05d06e1462460e8'/>
<id>urn:sha1:f5cc8453860568351cd9b3b7a05d06e1462460e8</id>
<content type='text'>
This makes netns infinitely more useful as they can be chained together
in many ways to build complex network structures all on the host.

Signed-off-by: Joe Groocock &lt;me@frebib.net&gt;
</content>
</entry>
<entry>
<title>xml: T1579: merge generic-description.xml.i and interface/description.xml.i</title>
<updated>2023-01-07T08:07:40+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2023-01-07T08:07:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=662bae181cdff07a2472d7121d18ae37d380e062'/>
<id>urn:sha1:662bae181cdff07a2472d7121d18ae37d380e062</id>
<content type='text'>
No need to have two distinct include blocks as one superseeds the other. Also
this makes the entire behavior of "description" CLI node simpler.
</content>
</entry>
<entry>
<title>veth: T4825: add dhcp(v6) client options to CLI</title>
<updated>2022-11-25T20:02:16+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-11-25T19:49:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=f311fdae68d26d5b3719bf2a86fc935d81571c8a'/>
<id>urn:sha1:f311fdae68d26d5b3719bf2a86fc935d81571c8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>veth: T4825: minor improvements on XML peer-name handling</title>
<updated>2022-11-24T19:35:31+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-11-24T19:35:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=f9a5286f163b27b51eb5e9a801c5d646c07a7990'/>
<id>urn:sha1:f9a5286f163b27b51eb5e9a801c5d646c07a7990</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T4825: Add interface type veth</title>
<updated>2022-11-24T16:06:38+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2022-11-20T13:35:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=48ab6413cedb71934118143a7e095e946ac38bb7'/>
<id>urn:sha1:48ab6413cedb71934118143a7e095e946ac38bb7</id>
<content type='text'>
Add interface type veth (Virtual ethernet)
One of the usecases it's interconnect different vrf's and
default vrf via bridge

set interfaces virtual-ethernet veth0 peer-name 'veth1010'
set interfaces virtual-ethernet veth1010 address '10.0.0.10/24'
set interfaces virtual-ethernet veth1010 peer-name 'veth0'
set interfaces virtual-ethernet veth1010 vrf 'foo'
set interfaces bridge br0 address '10.0.0.1/24'
set interfaces bridge br0 member interface veth0
</content>
</entry>
</feed>
