Skip to content

Commit

Permalink
(cluster/manke) add vlan2504 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarria committed Jan 29, 2024
1 parent b800332 commit 3fbcbf1
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
38 changes: 38 additions & 0 deletions hieradata/cluster/manke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,24 @@ nm::connections:
id=2502
parent=enp129s0f1
[bridge-port]
enp129s0f1.2504:
content: |
[connection]
id=enp129s0f1.2504
uuid=e74daaad-4d73-4015-bb26-83c460ddf572
type=vlan
interface-name=enp129s0f1.2504
master=br2504
slave-type=bridge
[ethernet]
[vlan]
flags=1
id=2504
parent=enp129s0f1
[bridge-port]
enp129s0f1.2505:
content: |
Expand Down Expand Up @@ -138,6 +156,26 @@ nm::connections:
[ipv6]
method=disabled
[proxy]
br2504:
content: |
[connection]
id=br2504
uuid=7dd05d98-a9c3-4569-a7c3-00316b13c0eb
type=bridge
interface-name=br2504
[ethernet]
[bridge]
stp=false
[ipv4]
method=disabled
[ipv6]
method=disabled
[proxy]
br2505:
content: |
Expand Down
18 changes: 17 additions & 1 deletion spec/hosts/nodes/manke01.ls.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

it { is_expected.to contain_class('profile::core::ospl').with_enable_rundir(true) }

it { is_expected.to have_nm__connection_resource_count(9) }
it { is_expected.to have_nm__connection_resource_count(11) }

%w[
eno1np0
Expand Down Expand Up @@ -102,6 +102,22 @@
it_behaves_like 'nm bridge interface'
end

context 'with enp129s0f1.2504' do
let(:interface) { 'enp129s0f1.2504' }

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm vlan interface', id: 2504, parent: 'enp129s0f1'
it_behaves_like 'nm bridge slave interface', master: 'br2504'
end

context 'with br2504' do
let(:interface) { 'br2504' }

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm no-ip interface'
it_behaves_like 'nm bridge interface'
end

context 'with enp129s0f1.2505' do
let(:interface) { 'enp129s0f1.2505' }

Expand Down

0 comments on commit 3fbcbf1

Please sign in to comment.