* [pve-devel] [PATCH pve-common] INotify: add support for dummy interfaces type
@ 2020-11-22 16:37 Alexandre Derumier
2021-04-26 17:31 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Derumier @ 2020-11-22 16:37 UTC (permalink / raw)
To: pve-devel
They can be used like loopback, but not limited to only 1 interface.
It's needed for bgp with multipath/ecmp to have a unique src ip
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
src/PVE/INotify.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index bd2b15a..676dcc6 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -960,6 +960,7 @@ sub __read_etc_network_interfaces {
'bond_miimon' => 1,
'bond_xmit_hash_policy' => 1,
'bond-primary' => 1,
+ 'link-type' => 1,
'uplink-id' => 1,
'vlan-protocol' => 1,
'vlan-raw-device' => 1,
@@ -1106,6 +1107,8 @@ sub __read_etc_network_interfaces {
my $tag = &$extract_ovs_option($d, 'tag');
$d->{ovs_tag} = $tag if defined($tag);
}
+ } elsif (defined($d->{'link-type'})) {
+ $d->{type} = $d->{'link-type'} if $d->{'link-type'} eq 'dummy';
}
}
@@ -1658,6 +1661,7 @@ NETWORKDOC
my $if_type_hash = {
loopback => 100000,
+ dummy => 100000,
eth => 200000,
OVSPort => 200000,
OVSIntPort => 300000,
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH pve-common] INotify: add support for dummy interfaces type
2020-11-22 16:37 [pve-devel] [PATCH pve-common] INotify: add support for dummy interfaces type Alexandre Derumier
@ 2021-04-26 17:31 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-04-26 17:31 UTC (permalink / raw)
To: Proxmox VE development discussion, Alexandre Derumier
On 22.11.20 17:37, Alexandre Derumier wrote:
> They can be used like loopback, but not limited to only 1 interface.
> It's needed for bgp with multipath/ecmp to have a unique src ip
>
> Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
> ---
> src/PVE/INotify.pm | 4 ++++
> 1 file changed, 4 insertions(+)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-26 17:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22 16:37 [pve-devel] [PATCH pve-common] INotify: add support for dummy interfaces type Alexandre Derumier
2021-04-26 17:31 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox