From d1b29da34f7e06bb25857846d408c5b7a8c47bfd Mon Sep 17 00:00:00 2001 From: dtapiacl Date: Mon, 6 Jan 2025 10:51:11 -0300 Subject: [PATCH] (node/auxtel-fp01.cp) add lhn interface --- hieradata/node/auxtel-fp01.cp.lsst.org.yaml | 8 ++++++-- spec/hosts/nodes/auxtel-fp01.cp.lsst.org_spec.rb | 12 +++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/hieradata/node/auxtel-fp01.cp.lsst.org.yaml b/hieradata/node/auxtel-fp01.cp.lsst.org.yaml index d6d8f2c2b6..986e26db9a 100644 --- a/hieradata/node/auxtel-fp01.cp.lsst.org.yaml +++ b/hieradata/node/auxtel-fp01.cp.lsst.org.yaml @@ -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: diff --git a/spec/hosts/nodes/auxtel-fp01.cp.lsst.org_spec.rb b/spec/hosts/nodes/auxtel-fp01.cp.lsst.org_spec.rb index 6459168235..6cb3f13570 100644 --- a/spec/hosts/nodes/auxtel-fp01.cp.lsst.org_spec.rb +++ b/spec/hosts/nodes/auxtel-fp01.cp.lsst.org_spec.rb @@ -34,7 +34,6 @@ it { is_expected.to have_nm__connection_resource_count(5) } %w[ - eno2 eno3 ].each do |i| context "with #{i}" do @@ -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' }