Skip to content

Commit

Permalink
(node/auxtel-fp01.cp) add lhn interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Jan 6, 2025
1 parent 3649910 commit 6460f61
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
8 changes: 6 additions & 2 deletions hieradata/node/auxtel-fp01.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,23 @@ nm::connections:
ipv6:
method: "disabled"
proxy: {}
method: "disabled"
eno2:
content:
connection:
id: "eno2"
uuid: "e5ad2870-9b07-4fe0-af1a-30f87f6b62d5"
type: "ethernet"
autoconnect: "false"
interface-name: "eno2"
ethernet: {}
ipv4:
method: "disabled"
address1: "139.229.181.74/29,139.229.181.78"
method: "manual"
never-default: "true"
route1: "172.24.7.0/24,139.229.181.78"
ipv6:
method: "disabled"
proxy: {}
eno3:
content:
connection:
Expand Down
12 changes: 11 additions & 1 deletion spec/hosts/nodes/auxtel-fp01.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
it { is_expected.to have_nm__connection_resource_count(5) }

%w[
eno2
eno3
].each do |i|
context "with #{i}" do
Expand All @@ -54,6 +53,17 @@
it { expect(nm_keyfile['ethtool']['ring-tx']).to eq(4096) }
end

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

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm ethernet interface'
it_behaves_like 'nm manual interface'
it_behaves_like 'nm no default route'
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.181.74/29,139.229.181.78') }
it { expect(nm_keyfile['ipv4']['route1']).to eq('172.24.7.0/24,139.229.181.78') }
end

context 'with lsst-daq' do
let(:interface) { 'lsst-daq' }

Expand Down

0 comments on commit 6460f61

Please sign in to comment.