Skip to content

Commit

Permalink
hosts(pve-c3758): set VLAN immediately on port startup
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Jan 10, 2025
1 parent 77f988b commit ee612a1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions hosts/pve-c3758/openvswitch-dpdk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,17 @@ in
+ (builtins.concatStringsSep "\n" (
lib.mapAttrsToList (
n: v:
''
ovs-vsctl --may-exist add-port br0 ${n} || true
''
+ (lib.optionalString (n == "dpdk-08000") ''
ovs-vsctl set port dpdk-08000 tag=201 || true
'')
(
if n == "dpdk-08000" then
''
ovs-vsctl --may-exist add-port br0 ${n} tag=201 || true
ovs-vsctl set port dpdk-08000 tag=201 || true
''
else
''
ovs-vsctl --may-exist add-port br0 ${n} || true
''
)
+ ''
ovs-vsctl set Interface ${n} type=dpdk \
options:dpdk-devargs=${v} \
Expand Down

0 comments on commit ee612a1

Please sign in to comment.