<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/conf_mode/interfaces-bonding.py, 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>bond: T5698: add support for EVPN Multihoming</title>
<updated>2023-10-30T14:38:56+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-10-30T14:38:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=937685608e61151275c4f60c6d00c0154f2ca06d'/>
<id>urn:sha1:937685608e61151275c4f60c6d00c0154f2ca06d</id>
<content type='text'>
set interfaces bonding bond10 evpn es-df-pref '50'
set interfaces bonding bond10 evpn es-id '10'
set interfaces bonding bond10 evpn es-sys-mac '01:23:45:67:89:ab'
set interfaces bonding bond10 member interface 'eth3'
set interfaces bonding bond10 mode '802.3ad'
</content>
</entry>
<entry>
<title>bonding: T5254: Fixed changing ethernet when it is a bond member</title>
<updated>2023-10-03T06:53:32+00:00</updated>
<author>
<name>aapostoliuk</name>
<email>a.apostoliuk@vyos.io</email>
</author>
<published>2023-09-15T10:56:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=aa0282ceb379df1ab3cc93e4bd019134d37f0d89'/>
<id>urn:sha1:aa0282ceb379df1ab3cc93e4bd019134d37f0d89</id>
<content type='text'>
If ethernet interface is a bond memeber:
  1. Allow for changing only specific parameters which are specified
     in EthernetIf.get_bond_member_allowed_options function.
  2. Added inheritable parameters from bond interface to ethernet
     interface which are scpecified
     in BondIf.get_inherit_bond_options.
     Users can change inheritable options under ethernet interface
     but in commit it will be copied from bond interface.
  3. All other parameters are denied for changing.

Added migration script. It deletes all denied parameters under
ethernet interface if it is a bond member.
</content>
</entry>
<entry>
<title>vyos.configdict(): T4228: fix bonding error message interface name</title>
<updated>2023-08-07T11:41:29+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-07T11:41:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5474a82034a0354c0e5878fd6690d0861435e992'/>
<id>urn:sha1:5474a82034a0354c0e5878fd6690d0861435e992</id>
<content type='text'>
This fixes the error message:

Can not add interface "eth1" to bond, it is already a member of bridge
"{'br6327': {}}"!

As the dict should be moved to a string (br6327)
</content>
</entry>
<entry>
<title>T5195: move helpers from vyos.validate to vyos.utils package</title>
<updated>2023-08-06T18:25:01+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-08-06T17:29:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1c4294534dd04f075f89f1bb60736d56fc6c22a'/>
<id>urn:sha1:d1c4294534dd04f075f89f1bb60736d56fc6c22a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5195: vyos.util -&gt; vyos.utils package refactoring (#2093)</title>
<updated>2023-07-14T20:18:36+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-07-14T20:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1ca536da448749dff557f13ecae97b124026e96'/>
<id>urn:sha1:d1ca536da448749dff557f13ecae97b124026e96</id>
<content type='text'>
* T5195: move run, cmd, call, rc_cmd helper to vyos.utils.process

* T5195: use read_file and write_file implementation from vyos.utils.file

Changed code automatically using:

find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import read_file$/from vyos.utils.file import read_file/g' {} +
find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import write_file$/from vyos.utils.file import write_file/g' {} +

* T5195: move chmod* helpers to vyos.utils.permission

* T5195: use colon_separated_to_dict from vyos.utils.dict

* T5195: move is_systemd_service_* to vyos.utils.process

* T5195: fix boot issues with missing imports

* T5195: move dict_search_* helpers to vyos.utils.dict

* T5195: move network helpers to vyos.utils.network

* T5195: move commit_* helpers to vyos.utils.commit

* T5195: move user I/O helpers to vyos.utils.io</content>
</entry>
<entry>
<title>bonding: T4878: use more is_node_changed() over leaf_node_changed()</title>
<updated>2022-12-17T07:32:47+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-12-17T07:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fe80ae5533bebb863a39861a2c27a0b07f84845e'/>
<id>urn:sha1:fe80ae5533bebb863a39861a2c27a0b07f84845e</id>
<content type='text'>
The implementation of is_node_changed() is less error prone and should always
be favoured.
</content>
</entry>
<entry>
<title>bonding: T4878: Fixed unnecessary bonding flapping during commit</title>
<updated>2022-12-15T09:13:02+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2022-12-15T09:13:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=837357071135b87532796dfab88d53ae7cba9e45'/>
<id>urn:sha1:837357071135b87532796dfab88d53ae7cba9e45</id>
<content type='text'>
There was a mistake in a config level that caused triggering the
`shutdown_required` flag, even if there were no new interfaces added to a
bonding.

This commit sets the proper config level to avoid the problem.
</content>
</entry>
<entry>
<title>bonding: T4668: fix live bonding member add or remove</title>
<updated>2022-09-02T11:36:01+00:00</updated>
<author>
<name>initramfs</name>
<email>initramfs@initramfs.io</email>
</author>
<published>2022-09-01T12:51:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=95e7676aa8ae5b3476b14a334b3815c2ae59f8d6'/>
<id>urn:sha1:95e7676aa8ae5b3476b14a334b3815c2ae59f8d6</id>
<content type='text'>
Fixes several bugs around bonding member interface states not matching
the committed configuration, including:

  - Disabled removed interfaces coming back up
  - Newly added disabled interfaces not staying down
  - Newly added interfaces not showing up in the bond
</content>
</entry>
<entry>
<title>bonding: T4668: refactor configuration mode interface bonding script</title>
<updated>2022-09-02T11:35:44+00:00</updated>
<author>
<name>initramfs</name>
<email>initramfs@initramfs.io</email>
</author>
<published>2022-09-01T12:31:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=6287cc214be8f506f0656b7ad75143265213d140'/>
<id>urn:sha1:6287cc214be8f506f0656b7ad75143265213d140</id>
<content type='text'>
Refactor interfaces-bonding.py to simplify existing code and to remove
potentially bugprone sections in preparation for member add/remove
fixes for T4668.
</content>
</entry>
</feed>
