-
Notifications
You must be signed in to change notification settings - Fork 246
Fix ISIS authentication configuration for Cisco FNTs #6032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
ce913f4
01d40ba
7125b74
7ce1bc2
ddb8b66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -104,11 +104,19 @@ func configureISIS(t *testing.T, ts *isissession.TestSession) { | |||||||||||||||||
| isisIntfLevel2.LevelNumber = ygot.Uint8(2) | ||||||||||||||||||
| isisIntfLevel2.SetEnabled(true) | ||||||||||||||||||
| isisIntfLevel2.Enabled = ygot.Bool(true) | ||||||||||||||||||
|
|
||||||||||||||||||
| isisIntfLevel2.GetOrCreateHelloAuthentication().Enabled = ygot.Bool(true) | ||||||||||||||||||
| isisIntfLevel2.GetHelloAuthentication().AuthPassword = ygot.String(password) | ||||||||||||||||||
| isisIntfLevel2.GetHelloAuthentication().AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| isisIntfLevel2.GetHelloAuthentication().AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| if deviations.SetISISAuthWithInterfaceAuthenticationContainer(ts.DUT) { | ||||||||||||||||||
| intfAuth := intf.GetOrCreateAuthentication() | ||||||||||||||||||
| intfAuth.Enabled = ygot.Bool(true) | ||||||||||||||||||
| intfAuth.AuthPassword = ygot.String(password) | ||||||||||||||||||
| intfAuth.AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| intfAuth.AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| } else { | ||||||||||||||||||
| helloAuth := isisIntfLevel2.GetOrCreateHelloAuthentication() | ||||||||||||||||||
| helloAuth.Enabled = ygot.Bool(true) | ||||||||||||||||||
| helloAuth.AuthPassword = ygot.String(password) | ||||||||||||||||||
| helloAuth.AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| helloAuth.AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| isisIntfLevel2.GetOrCreateAf(oc.IsisTypes_AFI_TYPE_IPV4, oc.IsisTypes_SAFI_TYPE_UNICAST).Enabled = ygot.Bool(true) | ||||||||||||||||||
| isisIntfLevel2.GetOrCreateAf(oc.IsisTypes_AFI_TYPE_IPV4, oc.IsisTypes_SAFI_TYPE_UNICAST).Metric = ygot.Uint32(v4Metric) | ||||||||||||||||||
|
|
@@ -184,7 +192,9 @@ func TestISISLevelPassive(t *testing.T) { | |||||||||||||||||
| pcl := ts.DUTConf.GetNetworkInstance(deviations.DefaultNetworkInstance(ts.DUT)).GetProtocol(oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_ISIS, isissession.ISISName) | ||||||||||||||||||
| fptest.LogQuery(t, "Protocol ISIS", isissession.ProtocolPath(ts.DUT).Config(), pcl) | ||||||||||||||||||
|
|
||||||||||||||||||
| ts.PushAndStart(t) | ||||||||||||||||||
| if err := ts.PushAndStart(t); err != nil { | ||||||||||||||||||
| t.Fatalf("PushAndStart failed: %v", err) | ||||||||||||||||||
| } | ||||||||||||||||||
| time.Sleep(time.Minute * 2) | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the Repository Style Guide, static
Suggested change
References
|
||||||||||||||||||
|
|
||||||||||||||||||
| statePath := isissession.ISISPath(ts.DUT) | ||||||||||||||||||
|
|
||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -115,10 +115,19 @@ func configureISIS(t *testing.T, ts *isissession.TestSession) { | |||||||||||||||||
| isisIntfLevel.LevelNumber = ygot.Uint8(2) | ||||||||||||||||||
| isisIntfLevel.SetEnabled(true) | ||||||||||||||||||
| isisIntfLevel.Enabled = ygot.Bool(true) | ||||||||||||||||||
| isisIntfLevel.GetOrCreateHelloAuthentication().Enabled = ygot.Bool(true) | ||||||||||||||||||
| isisIntfLevel.GetHelloAuthentication().AuthPassword = ygot.String(password) | ||||||||||||||||||
| isisIntfLevel.GetHelloAuthentication().AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| isisIntfLevel.GetHelloAuthentication().AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| if deviations.SetISISAuthWithInterfaceAuthenticationContainer(ts.DUT) { | ||||||||||||||||||
| intfAuth := intf.GetOrCreateAuthentication() | ||||||||||||||||||
| intfAuth.Enabled = ygot.Bool(true) | ||||||||||||||||||
| intfAuth.AuthPassword = ygot.String(password) | ||||||||||||||||||
| intfAuth.AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| intfAuth.AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| } else { | ||||||||||||||||||
| helloAuth := isisIntfLevel.GetOrCreateHelloAuthentication() | ||||||||||||||||||
| helloAuth.Enabled = ygot.Bool(true) | ||||||||||||||||||
| helloAuth.AuthPassword = ygot.String(password) | ||||||||||||||||||
| helloAuth.AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| helloAuth.AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| isisIntfLevelTimers := isisIntfLevel.GetOrCreateTimers() | ||||||||||||||||||
| isisIntfLevelTimers.HelloInterval = ygot.Uint32(5) | ||||||||||||||||||
|
|
@@ -200,7 +209,9 @@ func TestISISWideMetricEnabled(t *testing.T) { | |||||||||||||||||
| pcl := ts.DUTConf.GetNetworkInstance(deviations.DefaultNetworkInstance(ts.DUT)).GetProtocol(oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_ISIS, isissession.ISISName) | ||||||||||||||||||
| fptest.LogQuery(t, "Protocol ISIS", isissession.ProtocolPath(ts.DUT).Config(), pcl) | ||||||||||||||||||
|
|
||||||||||||||||||
| ts.PushAndStart(t) | ||||||||||||||||||
| if err := ts.PushAndStart(t); err != nil { | ||||||||||||||||||
| t.Fatalf("PushAndStart failed: %v", err) | ||||||||||||||||||
| } | ||||||||||||||||||
| time.Sleep(time.Minute * 2) | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the Repository Style Guide, static
Suggested change
References
|
||||||||||||||||||
|
|
||||||||||||||||||
| statePath := isissession.ISISPath(ts.DUT) | ||||||||||||||||||
|
|
||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -213,10 +213,19 @@ func configureISISMPLSSR(t *testing.T, ts *isissession.TestSession) { | |||||||||||||||||
| isisIntfLevel.LevelNumber = ygot.Uint8(2) | ||||||||||||||||||
| isisIntfLevel.SetEnabled(true) | ||||||||||||||||||
| isisIntfLevel.Enabled = ygot.Bool(true) | ||||||||||||||||||
| isisIntfLevel.GetOrCreateHelloAuthentication().Enabled = ygot.Bool(true) | ||||||||||||||||||
| isisIntfLevel.GetHelloAuthentication().AuthPassword = ygot.String(password) | ||||||||||||||||||
| isisIntfLevel.GetHelloAuthentication().AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| isisIntfLevel.GetHelloAuthentication().AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| if deviations.SetISISAuthWithInterfaceAuthenticationContainer(ts.DUT) { | ||||||||||||||||||
| intfAuth := intf.GetOrCreateAuthentication() | ||||||||||||||||||
| intfAuth.Enabled = ygot.Bool(true) | ||||||||||||||||||
| intfAuth.AuthPassword = ygot.String(password) | ||||||||||||||||||
| intfAuth.AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| intfAuth.AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| } else { | ||||||||||||||||||
| helloAuth := isisIntfLevel.GetOrCreateHelloAuthentication() | ||||||||||||||||||
| helloAuth.Enabled = ygot.Bool(true) | ||||||||||||||||||
| helloAuth.AuthPassword = ygot.String(password) | ||||||||||||||||||
| helloAuth.AuthType = oc.KeychainTypes_AUTH_TYPE_SIMPLE_KEY | ||||||||||||||||||
| helloAuth.AuthMode = oc.IsisTypes_AUTH_MODE_MD5 | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| isisIntfLevelTimers := isisIntfLevel.GetOrCreateTimers() | ||||||||||||||||||
| isisIntfLevelTimers.HelloInterval = ygot.Uint32(5) | ||||||||||||||||||
|
|
@@ -442,7 +451,9 @@ func TestMPLSLabelBlockWithISIS(t *testing.T) { | |||||||||||||||||
|
|
||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| ts.PushAndStart(t) | ||||||||||||||||||
| if err := ts.PushAndStart(t); err != nil { | ||||||||||||||||||
| t.Fatalf("PushAndStart failed: %v", err) | ||||||||||||||||||
| } | ||||||||||||||||||
| time.Sleep(time.Minute * 2) | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the Repository Style Guide, static
Suggested change
References
|
||||||||||||||||||
|
|
||||||||||||||||||
| // Checking ISIS | ||||||||||||||||||
|
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.