forked from openconfig/featureprofiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeviations.go
More file actions
2020 lines (1654 loc) · 94.4 KB
/
deviations.go
File metadata and controls
2020 lines (1654 loc) · 94.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Package deviations defines the arguments to enable temporary workarounds for the
// featureprofiles test suite using command line flags.
//
// If we consider device compliance level in tiers:
//
// - Tier 0: Full OpenConfig compliance. The device can do everything specified by
// OpenConfig.
// - Tier 1: Test plan compliance. The device can pass a test without deviation, which
// means it satisfies the test requirements. This is the target compliance tier for
// featureprofiles tests.
// - Tier 2: Deviated test plan compliance. The device can pass a test with deviation.
//
// Deviations typically work by reducing testing requirements or by changing the way the
// configuration is done. However, the targeted compliance tier is always without
// deviation.
//
// Requirements for deviations:
//
// - Deviations may only use OpenConfig compliant behavior.
// - Deviations should be small in scope, typically affecting one subtest, one
// OpenConfig path or small OpenConfig subtree.
//
// If a device could not pass without deviation, that is considered non-compliant
// behavior. Ideally, a device should pass both with and without a deviation which means
// the deviation could be safely removed. However, when the OpenConfig model allows the
// device to reject the deviated case even if it is compliant, then this should be
// explained on a case-by-case basis.
//
// To add, remove and enable deviations follow the guidelines at deviations/README.md
package deviations
import (
"fmt"
"regexp"
log "github.com/golang/glog"
"github.com/openconfig/featureprofiles/internal/metadata"
mpb "github.com/openconfig/featureprofiles/proto/metadata_go_proto"
"github.com/openconfig/ondatra"
)
func lookupDeviations(dvc *ondatra.Device) (*mpb.Metadata_PlatformExceptions, error) {
var matchedPlatformException *mpb.Metadata_PlatformExceptions
for _, platformExceptions := range metadata.Get().GetPlatformExceptions() {
if platformExceptions.GetPlatform().GetVendor().String() == "" {
return nil, fmt.Errorf("vendor should be specified in textproto %v", platformExceptions)
}
if dvc.Vendor().String() != platformExceptions.GetPlatform().GetVendor().String() {
continue
}
// If hardware_model_regex is set and does not match, continue
if hardwareModelRegex := platformExceptions.GetPlatform().GetHardwareModelRegex(); hardwareModelRegex != "" {
matchHw, errHw := regexp.MatchString(hardwareModelRegex, dvc.Model())
if errHw != nil {
return nil, fmt.Errorf("error with regex match %v", errHw)
}
if !matchHw {
continue
}
}
// If software_version_regex is set and does not match, continue
if softwareVersionRegex := platformExceptions.GetPlatform().GetSoftwareVersionRegex(); softwareVersionRegex != "" {
matchSw, errSw := regexp.MatchString(softwareVersionRegex, dvc.Version())
if errSw != nil {
return nil, fmt.Errorf("error with regex match %v", errSw)
}
if !matchSw {
continue
}
}
if matchedPlatformException != nil {
return nil, fmt.Errorf("cannot have more than one match within platform_exceptions fields %v and %v", matchedPlatformException, platformExceptions)
}
matchedPlatformException = platformExceptions
}
return matchedPlatformException, nil
}
func mustLookupDeviations(dvc *ondatra.Device) *mpb.Metadata_Deviations {
platformExceptions, err := lookupDeviations(dvc)
if err != nil {
log.Exitf("Error looking up deviations: %v", err)
}
if platformExceptions == nil {
log.Infof("Did not match any platform_exception %v, returning default values", metadata.Get().GetPlatformExceptions())
return &mpb.Metadata_Deviations{}
}
return platformExceptions.GetDeviations()
}
func lookupDUTDeviations(dut *ondatra.DUTDevice) *mpb.Metadata_Deviations {
return mustLookupDeviations(dut.Device)
}
func lookupATEDeviations(ate *ondatra.ATEDevice) *mpb.Metadata_Deviations {
return mustLookupDeviations(ate.Device)
}
// BannerDelimiter returns if device requires the banner to have a delimiter character.
// Full OpenConfig compliant devices should work without delimiter.
func BannerDelimiter(dut *ondatra.DUTDevice) string {
return lookupDUTDeviations(dut).GetBannerDelimiter()
}
// OmitL2MTU returns if device does not support setting the L2 MTU.
func OmitL2MTU(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetOmitL2Mtu()
}
// GRIBIMACOverrideStaticARPStaticRoute returns whether the device needs to configure Static ARP + Static Route to override setting MAC address in Next Hop.
func GRIBIMACOverrideStaticARPStaticRoute(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGribiMacOverrideStaticArpStaticRoute()
}
// AggregateAtomicUpdate returns if device requires that aggregate Port-Channel and its members be defined in a single gNMI Update transaction at /interfaces,
// Otherwise lag-type will be dropped, and no member can be added to the aggregate.
// Full OpenConfig compliant devices should pass both with and without this deviation.
func AggregateAtomicUpdate(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetAggregateAtomicUpdate()
}
// DefaultNetworkInstance returns the name used for the default network instance for VRF.
func DefaultNetworkInstance(dut *ondatra.DUTDevice) string {
if dni := lookupDUTDeviations(dut).GetDefaultNetworkInstance(); dni != "" {
return dni
}
return "DEFAULT"
}
// ISISRestartSuppressUnsupported returns whether the device should skip isis restart-suppress check.
func ISISRestartSuppressUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisRestartSuppressUnsupported()
}
// BgpGrHelperDisableUnsupported returns whether the device does not support to disable BGP GR Helper.
func BgpGrHelperDisableUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpGrHelperDisableUnsupported()
}
// BgpGracefulRestartUnderAfiSafiUnsupported returns whether the device does not support bgp GR-RESTART under AFI/SAFI.
func BgpGracefulRestartUnderAfiSafiUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpGracefulRestartUnderAfiSafiUnsupported()
}
// MissingBgpLastNotificationErrorCode returns whether the last-notification-error-code leaf is missing in bgp.
func MissingBgpLastNotificationErrorCode(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMissingBgpLastNotificationErrorCode()
}
// GRIBIMACOverrideWithStaticARP returns whether for a gRIBI IPv4 route the device does not support a mac-address only next-hop-entry.
func GRIBIMACOverrideWithStaticARP(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGribiMacOverrideWithStaticArp()
}
// CLITakesPrecedenceOverOC returns whether config pushed through origin CLI takes precedence over config pushed through origin OC.
func CLITakesPrecedenceOverOC(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetCliTakesPrecedenceOverOc()
}
// BGPTrafficTolerance returns the allowed tolerance for BGP traffic flow while comparing for pass or fail conditions.
func BGPTrafficTolerance(dut *ondatra.DUTDevice) int32 {
return lookupDUTDeviations(dut).GetBgpToleranceValue()
}
// StaticProtocolName returns the name used for the static routing protocol.
func StaticProtocolName(dut *ondatra.DUTDevice) string {
if spn := lookupDUTDeviations(dut).GetStaticProtocolName(); spn != "" {
return spn
}
return "DEFAULT"
}
// SwitchChipIDUnsupported returns whether the device supports id leaf for SwitchChip components.
func SwitchChipIDUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSwitchChipIdUnsupported()
}
// BackplaneFacingCapacityUnsupported returns whether the device supports backplane-facing-capacity leaves for some components.
func BackplaneFacingCapacityUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBackplaneFacingCapacityUnsupported()
}
// SchedulerInputWeightLimit returns whether the device does not support weight above 100.
func SchedulerInputWeightLimit(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSchedulerInputWeightLimit()
}
// ECNProfileRequiredDefinition returns whether the device requires additional config for ECN.
func ECNProfileRequiredDefinition(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetEcnProfileRequiredDefinition()
}
// ISISGlobalAuthenticationNotRequired returns true if ISIS Global authentication not required.
func ISISGlobalAuthenticationNotRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisGlobalAuthenticationNotRequired()
}
// ISISExplicitLevelAuthenticationConfig returns true if ISIS Explicit Level Authentication configuration is required
func ISISExplicitLevelAuthenticationConfig(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisExplicitLevelAuthenticationConfig()
}
// ISISSingleTopologyRequired sets isis af ipv6 single topology on the device if value is true.
func ISISSingleTopologyRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisSingleTopologyRequired()
}
// ISISMultiTopologyUnsupported returns if device skips isis multi-topology check.
func ISISMultiTopologyUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisMultiTopologyUnsupported()
}
// ISISInterfaceLevel1DisableRequired returns if device should disable isis level1 under interface mode.
func ISISInterfaceLevel1DisableRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisInterfaceLevel1DisableRequired()
}
// MissingIsisInterfaceAfiSafiEnable returns if device should set and validate isis interface address family enable.
// Default is validate isis address family enable at global mode.
func MissingIsisInterfaceAfiSafiEnable(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMissingIsisInterfaceAfiSafiEnable()
}
// Ipv6DiscardedPktsUnsupported returns whether the device supports interface ipv6 discarded packet stats.
func Ipv6DiscardedPktsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpv6DiscardedPktsUnsupported()
}
// LinkQualWaitAfterDeleteRequired returns whether the device requires additional time to complete post delete link qualification cleanup.
func LinkQualWaitAfterDeleteRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetLinkQualWaitAfterDeleteRequired()
}
// StatePathsUnsupported returns whether the device supports following state paths
func StatePathsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetStatePathUnsupported()
}
// DropWeightLeavesUnsupported returns whether the device supports drop and weight leaves under queue management profile.
func DropWeightLeavesUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetDropWeightLeavesUnsupported()
}
// SwVersionUnsupported returns true if the device does not support reporting software version according to the requirements in gNMI-1.10.
func SwVersionUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSwVersionUnsupported()
}
// HierarchicalWeightResolutionTolerance returns the allowed tolerance for BGP traffic flow while comparing for pass or fail conditions.
// Default minimum value is 0.2. Anything less than 0.2 will be set to 0.2.
func HierarchicalWeightResolutionTolerance(dut *ondatra.DUTDevice) float64 {
hwrt := lookupDUTDeviations(dut).GetHierarchicalWeightResolutionTolerance()
if minHWRT := 0.2; hwrt < minHWRT {
return minHWRT
}
return hwrt
}
// InterfaceEnabled returns if device requires interface enabled leaf booleans to be explicitly set to true.
func InterfaceEnabled(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetInterfaceEnabled()
}
// InterfaceCountersFromContainer returns if the device only supports querying counters from the state container, not from individual counter leaves.
func InterfaceCountersFromContainer(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetInterfaceCountersFromContainer()
}
// IPv4MissingEnabled returns if device does not support interface/ipv4/enabled.
func IPv4MissingEnabled(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpv4MissingEnabled()
}
// IPNeighborMissing returns true if the device does not support interface/ipv4(6)/neighbor,
// so test can suppress the related check for interface/ipv4(6)/neighbor.
func IPNeighborMissing(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpNeighborMissing()
}
// GRIBIRIBAckOnly returns if device only supports RIB ack, so tests that normally expect FIB_ACK will allow just RIB_ACK.
// Full gRIBI compliant devices should pass both with and without this deviation.
func GRIBIRIBAckOnly(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGribiRibackOnly()
}
// MissingValueForDefaults returns if device returns no value for some OpenConfig paths if the operational value equals the default.
func MissingValueForDefaults(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMissingValueForDefaults()
}
// TraceRouteL4ProtocolUDP returns if device only support UDP as l4 protocol for traceroute.
// Default value is false.
func TraceRouteL4ProtocolUDP(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetTracerouteL4ProtocolUdp()
}
// LLDPInterfaceConfigOverrideGlobal returns if LLDP interface config should override the global config,
// expect neighbours are seen when lldp is disabled globally but enabled on interface
func LLDPInterfaceConfigOverrideGlobal(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetLldpInterfaceConfigOverrideGlobal()
}
// SubinterfacePacketCountersMissing returns if device is missing subinterface packet counters for IPv4/IPv6,
// so the test will skip checking them.
// Full OpenConfig compliant devices should pass both with and without this deviation.
// Nokia https://b.corp.google.com/issues/4778051566
func SubinterfacePacketCountersMissing(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSubinterfacePacketCountersMissing()
}
// MissingPrePolicyReceivedRoutes returns if device does not support bgp/neighbors/neighbor/afi-safis/afi-safi/state/prefixes/received-pre-policy.
// Fully-compliant devices should pass with and without this deviation.
func MissingPrePolicyReceivedRoutes(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetPrepolicyReceivedRoutes()
}
// DeprecatedVlanID returns if device requires using the deprecated openconfig-vlan:vlan/config/vlan-id or openconfig-vlan:vlan/state/vlan-id leaves.
func DeprecatedVlanID(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetDeprecatedVlanId()
}
// OSActivateNoReboot returns if device requires separate reboot to activate OS.
func OSActivateNoReboot(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetOsactivateNoreboot()
}
// ConnectRetry returns if /bgp/neighbors/neighbor/timers/config/connect-retry is not supported.
func ConnectRetry(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetConnectRetry()
}
// InstallOSForStandbyRP returns if device requires OS installation on standby RP as well as active RP.
func InstallOSForStandbyRP(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetOsinstallForStandbyRp()
}
// GNOIStatusWithEmptySubcomponent returns if the response of gNOI reboot status is a single value (not a list),
// the device requires explicit component path to account for a situation when there is more than one active reboot requests.
func GNOIStatusWithEmptySubcomponent(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGnoiStatusEmptySubcomponent()
}
// NetworkInstanceTableDeletionRequired returns if device requires explicit deletion of network-instance table.
func NetworkInstanceTableDeletionRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetNetworkInstanceTableDeletionRequired()
}
// ExplicitPortSpeed returns if device requires port-speed to be set because its default value may not be usable.
// Fully compliant devices selects the highest speed available based on negotiation.
func ExplicitPortSpeed(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetExplicitPortSpeed()
}
// ExplicitInterfaceInDefaultVRF returns if device requires explicit attachment of an interface or subinterface to the default network instance.
// OpenConfig expects an unattached interface or subinterface to be implicitly part of the default network instance.
// Fully-compliant devices should pass with and without this deviation.
func ExplicitInterfaceInDefaultVRF(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetExplicitInterfaceInDefaultVrf()
}
// RibWecmp returns if device requires CLI knob to enable wecmp feature.
func RibWecmp(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetRibWecmp()
}
// InterfaceConfigVRFBeforeAddress returns if vrf should be configured before IP address when configuring interface.
func InterfaceConfigVRFBeforeAddress(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetInterfaceConfigVrfBeforeAddress()
}
// BGPMD5RequiresReset returns if device requires a BGP session reset to utilize a new MD5 key.
func BGPMD5RequiresReset(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpMd5RequiresReset()
}
// ExplicitIPv6EnableForGRIBI returns if device requires Ipv6 to be enabled on interface for gRIBI NH programmed with destination mac address.
func ExplicitIPv6EnableForGRIBI(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpv6EnableForGribiNhDmac()
}
// ISISInstanceEnabledRequired returns if isis instance name string should be set on the device.
func ISISInstanceEnabledRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisInstanceEnabledRequired()
}
// GNOISubcomponentPath returns if device currently uses component name instead of a full openconfig path.
func GNOISubcomponentPath(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGnoiSubcomponentPath()
}
// NoMixOfTaggedAndUntaggedSubinterfaces returns if device does not support a mix of tagged and untagged subinterfaces
func NoMixOfTaggedAndUntaggedSubinterfaces(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetNoMixOfTaggedAndUntaggedSubinterfaces()
}
// DequeueDeleteNotCountedAsDrops returns if device dequeues and deletes the pkts after a while and those are not counted
// as drops
func DequeueDeleteNotCountedAsDrops(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetDequeueDeleteNotCountedAsDrops()
}
// RoutePolicyUnderAFIUnsupported returns if Route-Policy under the AFI/SAFI is not supported
func RoutePolicyUnderAFIUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetRoutePolicyUnderAfiUnsupported()
}
// StorageComponentUnsupported returns if telemetry path /components/component/storage is not supported.
func StorageComponentUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetStorageComponentUnsupported()
}
// GNOIFabricComponentRebootUnsupported returns if device does not support use using gNOI to reboot the Fabric Component.
func GNOIFabricComponentRebootUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGnoiFabricComponentRebootUnsupported()
}
// NtpNonDefaultVrfUnsupported returns true if the device does not support ntp non-default vrf.
// Default value is false.
func NtpNonDefaultVrfUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetNtpNonDefaultVrfUnsupported()
}
// SkipControllerCardPowerAdmin returns if power-admin-state config on controller card should be skipped.
// Default value is false.
func SkipControllerCardPowerAdmin(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipControllerCardPowerAdmin()
}
// QOSOctets returns if device should skip checking QOS octet stats for interface.
func QOSOctets(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetQosOctets()
}
// ISISInterfaceAfiUnsupported returns true for devices that don't support configuring
// ISIS /afi-safi/af/config container.
func ISISInterfaceAfiUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisInterfaceAfiUnsupported()
}
// P4RTModifyTableEntryUnsupported returns true for devices that don't support
// modify table entry operation in P4 Runtime.
func P4RTModifyTableEntryUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetP4RtModifyTableEntryUnsupported()
}
// OSComponentParentIsSupervisorOrLinecard returns true if parent of OS component is
// of type SUPERVISOR or LINECARD.
func OSComponentParentIsSupervisorOrLinecard(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetOsComponentParentIsSupervisorOrLinecard()
}
// OSComponentParentIsChassis returns true if parent of OS component is of type CHASSIS.
func OSComponentParentIsChassis(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetOsComponentParentIsChassis()
}
// ISISRequireSameL1MetricWithL2Metric returns true for devices that require configuring
// the same ISIS Metrics for Level 1 when configuring Level 2 Metrics.
func ISISRequireSameL1MetricWithL2Metric(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisRequireSameL1MetricWithL2Metric()
}
// BGPSetMedRequiresEqualOspfSetMetric returns true for devices that require configuring
// the same OSPF setMetric when BGP SetMED is configured.
func BGPSetMedRequiresEqualOspfSetMetric(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpSetMedRequiresEqualOspfSetMetric()
}
// SetNativeUser creates a user and assigns role/rbac to that user via native model.
func SetNativeUser(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSetNativeUser()
}
// P4RTGdpRequiresDot1QSubinterface returns true for devices that require configuring
// subinterface with tagged vlan for P4RT packet in.
func P4RTGdpRequiresDot1QSubinterface(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetP4RtGdpRequiresDot1QSubinterface()
}
// LinecardCPUUtilizationUnsupported returns if the device does not support telemetry path
// /components/component/cpu/utilization/state/avg for linecards' CPU card.
// Default value is false.
func LinecardCPUUtilizationUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetLinecardCpuUtilizationUnsupported()
}
// ConsistentComponentNamesUnsupported returns if the device does not support consistent component names for GNOI and GNMI.
// Default value is false.
func ConsistentComponentNamesUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetConsistentComponentNamesUnsupported()
}
// ControllerCardCPUUtilizationUnsupported returns if the device does not support telemetry path
// /components/component/cpu/utilization/state/avg for controller cards' CPU card.
// Default value is false.
func ControllerCardCPUUtilizationUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetControllerCardCpuUtilizationUnsupported()
}
// FabricDropCounterUnsupported returns if the device does not support counter for fabric block lost packets.
// Default value is false.
func FabricDropCounterUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetFabricDropCounterUnsupported()
}
// LinecardMemoryUtilizationUnsupported returns if the device does not support memory utilization related leaves for linecard components.
// Default value is false.
func LinecardMemoryUtilizationUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetLinecardMemoryUtilizationUnsupported()
}
// QOSVoqDropCounterUnsupported returns if the device does not support telemetry path
// /qos/interfaces/interface/input/virtual-output-queues/voq-interface/queues/queue/state/dropped-pkts.
// Default value is false.
func QOSVoqDropCounterUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetQosVoqDropCounterUnsupported()
}
// ISISTimersCsnpIntervalUnsupported returns true for devices that do not support
// configuring csnp-interval timer for ISIS.
func ISISTimersCsnpIntervalUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisTimersCsnpIntervalUnsupported()
}
// ISISCounterManualAddressDropFromAreasUnsupported returns true for devices that do not
// support telemetry for isis system-level-counter manual-address-drop-from-areas.
func ISISCounterManualAddressDropFromAreasUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisCounterManualAddressDropFromAreasUnsupported()
}
// ISISCounterPartChangesUnsupported returns true for devices that do not
// support telemetry for isis system-level-counter part-changes.
func ISISCounterPartChangesUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisCounterPartChangesUnsupported()
}
// SkipTCPNegotiatedMSSCheck returns true for devices that do not
// support telemetry to check negotiated tcp mss value.
func SkipTCPNegotiatedMSSCheck(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipTcpNegotiatedMssCheck()
}
// TransceiverThresholdsUnsupported returns true if the device does not support threshold container under /components/component/transceiver.
// Default value is false.
func TransceiverThresholdsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetTransceiverThresholdsUnsupported()
}
// InterfaceLoopbackModeRawGnmi returns true if interface loopback mode needs to be updated using raw gnmi API due to server version.
// Default value is false.
func InterfaceLoopbackModeRawGnmi(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetInterfaceLoopbackModeRawGnmi()
}
// ISISLspMetadataLeafsUnsupported returns true for devices that don't support ISIS-Lsp
// metadata paths: checksum, sequence-number, remaining-lifetime.
func ISISLspMetadataLeafsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisLspMetadataLeafsUnsupported()
}
// QOSQueueRequiresID returns if device should configure QOS queue along with queue-id
func QOSQueueRequiresID(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetQosQueueRequiresId()
}
// BgpLlgrOcUndefined returns true if device does not support OC path to disable BGP LLGR.
func BgpLlgrOcUndefined(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpLlgrOcUndefined()
}
// QOSBufferAllocationConfigRequired returns if device should configure QOS buffer-allocation-profile
func QOSBufferAllocationConfigRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetQosBufferAllocationConfigRequired()
}
// BGPGlobalExtendedNextHopEncodingUnsupported returns true for devices that do not support configuring
// BGP ExtendedNextHopEncoding at the global level.
func BGPGlobalExtendedNextHopEncodingUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpGlobalExtendedNextHopEncodingUnsupported()
}
// TunnelStatePathUnsupported returns true for devices that require configuring
// /interfaces/interface/state/counters/in-pkts, in-octets,out-pkts, out-octetsis not supported.
func TunnelStatePathUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetTunnelStatePathUnsupported()
}
// TunnelConfigPathUnsupported returns true for devices that require configuring
// Tunnel source-address destination-address, encapsulation type are not supported in OC
func TunnelConfigPathUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetTunnelConfigPathUnsupported()
}
// EcnSameMinMaxThresholdUnsupported returns true for devices that don't support the same minimum and maximum threshold values
// CISCO: minimum and maximum threshold values are not the same, the difference between minimum and maximum threshold value should be 6144.
func EcnSameMinMaxThresholdUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetEcnSameMinMaxThresholdUnsupported()
}
// QosSchedulerConfigRequired returns if device should configure QOS buffer-allocation-profile
func QosSchedulerConfigRequired(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetQosSchedulerConfigRequired()
}
// QosSetWeightConfigUnsupported returns whether the device does not support set weight leaves under qos ecn.
func QosSetWeightConfigUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetQosSetWeightConfigUnsupported()
}
// QosGetStatePathUnsupported returns whether the device does not support get state leaves under qos.
func QosGetStatePathUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetQosGetStatePathUnsupported()
}
// InterfaceRefInterfaceIDFormat returns if device is required to use interface-id format of interface name + .subinterface index with Interface-ref container
func InterfaceRefInterfaceIDFormat(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetInterfaceRefInterfaceIdFormat()
}
// ISISLevelEnabled returns if device should enable isis under level.
func ISISLevelEnabled(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisLevelEnabled()
}
// MemberLinkLoopbackUnsupported returns true for devices that require configuring
// loopback on aggregated links instead of member links.
func MemberLinkLoopbackUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMemberLinkLoopbackUnsupported()
}
// SkipPlqInterfaceOperStatusCheck returns true for devices that do not support
// PLQ operational status check for interfaces
func SkipPlqInterfaceOperStatusCheck(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipPlqInterfaceOperStatusCheck()
}
// BGPExplicitPrefixLimitReceived returns if device must specify the received prefix limits explicitly
// under the "prefix-limit-received" field rather than simply "prefix-limit".
func BGPExplicitPrefixLimitReceived(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpExplicitPrefixLimitReceived()
}
// BGPMissingOCMaxPrefixesConfiguration returns true for devices that does not configure BGP
// maximum routes correctly when max-prefixes OC leaf is configured.
func BGPMissingOCMaxPrefixesConfiguration(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpMissingOcMaxPrefixesConfiguration()
}
// SkipBgpSessionCheckWithoutAfisafi returns if device needs to skip checking AFI-SAFI disable.
func SkipBgpSessionCheckWithoutAfisafi(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipBgpSessionCheckWithoutAfisafi()
}
// MismatchedHardwareResourceNameInComponent returns true for devices that have separate
// naming conventions for hardware resource name in /system/ tree and /components/ tree.
func MismatchedHardwareResourceNameInComponent(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMismatchedHardwareResourceNameInComponent()
}
// GNOISubcomponentRebootStatusUnsupported returns true for devices that do not support subcomponent reboot status check.
func GNOISubcomponentRebootStatusUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGnoiSubcomponentRebootStatusUnsupported()
}
// SkipNonBgpRouteExportCheck returns true for devices that exports routes from all
// protocols to BGP if the export-policy is ACCEPT.
func SkipNonBgpRouteExportCheck(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipNonBgpRouteExportCheck()
}
// ISISMetricStyleTelemetryUnsupported returns true for devices that do not support state path
// /network-instances/network-instance/protocols/protocol/isis/levels/level/state/metric-style
func ISISMetricStyleTelemetryUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisMetricStyleTelemetryUnsupported()
}
// StaticRouteNextHopInterfaceRefUnsupported returns if device does not support Interface-ref under static-route next-hop
func StaticRouteNextHopInterfaceRefUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetStaticRouteNextHopInterfaceRefUnsupported()
}
// SkipStaticNexthopCheck returns if device needs index starting from non-zero
func SkipStaticNexthopCheck(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipStaticNexthopCheck()
}
// Ipv6RouterAdvertisementConfigUnsupported returns true for devices which don't support Ipv6 RouterAdvertisement configuration
func Ipv6RouterAdvertisementConfigUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpv6RouterAdvertisementConfigUnsupported()
}
// PrefixLimitExceededTelemetryUnsupported is to skip checking prefix limit telemetry flag.
func PrefixLimitExceededTelemetryUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetPrefixLimitExceededTelemetryUnsupported()
}
// SkipSettingAllowMultipleAS return true if device needs to skip setting allow-multiple-as while configuring eBGP
func SkipSettingAllowMultipleAS(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipSettingAllowMultipleAs()
}
// GribiDecapMixedPlenUnsupported returns true if devices does not support
// programming with mixed prefix length.
func GribiDecapMixedPlenUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetGribiDecapMixedPlenUnsupported()
}
// SkipIsisSetLevel return true if device needs to skip setting isis-actions set-level while configuring routing-policy statement action
func SkipIsisSetLevel(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipIsisSetLevel()
}
// SkipIsisSetMetricStyleType return true if device needs to skip setting isis-actions set-metric-style-type while configuring routing-policy statement action
func SkipIsisSetMetricStyleType(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipIsisSetMetricStyleType()
}
// SkipSettingDisableMetricPropagation return true if device needs to skip setting disable-metric-propagation while configuring table-connection
func SkipSettingDisableMetricPropagation(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipSettingDisableMetricPropagation()
}
// BGPConditionsMatchCommunitySetUnsupported returns true if device doesn't support bgp-conditions/match-community-set leaf
func BGPConditionsMatchCommunitySetUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpConditionsMatchCommunitySetUnsupported()
}
// PfRequireMatchDefaultRule returns true for device which requires match condition for ether type v4 and v6 for default rule with network-instance default-vrf in policy-forwarding.
func PfRequireMatchDefaultRule(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetPfRequireMatchDefaultRule()
}
// MissingPortToOpticalChannelMapping returns true for devices missing component tree mapping from hardware port to optical channel.
func MissingPortToOpticalChannelMapping(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMissingPortToOpticalChannelComponentMapping()
}
// SkipContainerOp returns true if gNMI container OP needs to be skipped.
// Cisco: https://partnerissuetracker.corp.google.com/issues/322291556
func SkipContainerOp(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipContainerOp()
}
// ReorderCallsForVendorCompatibilty returns true if call needs to be updated/added/deleted.
// Cisco: https://partnerissuetracker.corp.google.com/issues/322291556
func ReorderCallsForVendorCompatibilty(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetReorderCallsForVendorCompatibilty()
}
// AddMissingBaseConfigViaCli returns true if missing base config needs to be added using CLI.
// Cisco: https://partnerissuetracker.corp.google.com/issues/322291556
func AddMissingBaseConfigViaCli(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetAddMissingBaseConfigViaCli()
}
// SkipMacaddressCheck returns true if mac address for an interface via gNMI needs to be skipped.
// Cisco: https://partnerissuetracker.corp.google.com/issues/322291556
func SkipMacaddressCheck(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipMacaddressCheck()
}
// BGPRibOcPathUnsupported returns true if BGP RIB OC telemetry path is not supported.
func BGPRibOcPathUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpRibOcPathUnsupported()
}
// SkipPrefixSetMode return true if device needs to skip setting prefix-set mode while configuring prefix-set routing-policy
func SkipPrefixSetMode(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipPrefixSetMode()
}
// SetMetricAsPreference returns true for devices which set metric as
// preference for static next-hop
func SetMetricAsPreference(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSetMetricAsPreference()
}
// IPv6StaticRouteWithIPv4NextHopRequiresStaticARP returns true if devices don't support having an
// IPv6 static Route with an IPv4 address as next hop and requires configuring a static ARP entry.
// Arista: https://partnerissuetracker.corp.google.com/issues/316593298
func IPv6StaticRouteWithIPv4NextHopRequiresStaticARP(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpv6StaticRouteWithIpv4NextHopRequiresStaticArp()
}
// PfRequireSequentialOrderPbrRules returns true for device requires policy-forwarding rules to be in sequential order in the gNMI set-request.
func PfRequireSequentialOrderPbrRules(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetPfRequireSequentialOrderPbrRules()
}
// MissingStaticRouteNextHopMetricTelemetry returns true for devices missing
// static route next-hop metric telemetry.
// Arista: https://partnerissuetracker.corp.google.com/issues/321010782
func MissingStaticRouteNextHopMetricTelemetry(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMissingStaticRouteNextHopMetricTelemetry()
}
// UnsupportedStaticRouteNextHopRecurse returns true for devices that don't support recursive
// resolution of static route next hop.
// Arista: https://partnerissuetracker.corp.google.com/issues/314449182
func UnsupportedStaticRouteNextHopRecurse(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetUnsupportedStaticRouteNextHopRecurse()
}
// MissingStaticRouteDropNextHopTelemetry returns true for devices missing
// static route telemetry with DROP next hop.
// Arista: https://partnerissuetracker.corp.google.com/issues/330619816
func MissingStaticRouteDropNextHopTelemetry(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMissingStaticRouteDropNextHopTelemetry()
}
// MissingZROpticalChannelTunableParametersTelemetry returns true for devices missing 400ZR
// optical-channel tunable parameters telemetry: min/max/avg.
// Arista: https://partnerissuetracker.corp.google.com/issues/319314781
func MissingZROpticalChannelTunableParametersTelemetry(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMissingZrOpticalChannelTunableParametersTelemetry()
}
// PLQReflectorStatsUnsupported returns true for devices that does not support packet link qualification(PLQ) reflector packet sent/received stats.
func PLQReflectorStatsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetPlqReflectorStatsUnsupported()
}
// PLQGeneratorCapabilitiesMaxMTU returns supported max_mtu for devices that does not support packet link qualification(PLQ) Generator max_mtu to be at least >= 8184.
func PLQGeneratorCapabilitiesMaxMTU(dut *ondatra.DUTDevice) uint32 {
return lookupDUTDeviations(dut).GetPlqGeneratorCapabilitiesMaxMtu()
}
// PLQGeneratorCapabilitiesMaxPPS returns supported max_pps for devices that does not support packet link qualification(PLQ) Generator max_pps to be at least >= 100000000.
func PLQGeneratorCapabilitiesMaxPPS(dut *ondatra.DUTDevice) uint64 {
return lookupDUTDeviations(dut).GetPlqGeneratorCapabilitiesMaxPps()
}
// BgpExtendedCommunityIndexUnsupported return true if BGP extended community index is not supported.
func BgpExtendedCommunityIndexUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpExtendedCommunityIndexUnsupported()
}
// BgpCommunitySetRefsUnsupported return true if BGP community set refs is not supported.
func BgpCommunitySetRefsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpCommunitySetRefsUnsupported()
}
// TableConnectionsUnsupported returns true if Table Connections are unsupported.
func TableConnectionsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetTableConnectionsUnsupported()
}
// UseVendorNativeTagSetConfig returns whether a device requires native model to configure tag-set
func UseVendorNativeTagSetConfig(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetUseVendorNativeTagSetConfig()
}
// SkipBgpSendCommunityType return true if device needs to skip setting BGP send-community-type
func SkipBgpSendCommunityType(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipBgpSendCommunityType()
}
// BgpActionsSetCommunityMethodUnsupported return true if BGP actions set-community method is unsupported
func BgpActionsSetCommunityMethodUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpActionsSetCommunityMethodUnsupported()
}
// SetNoPeerGroup Ensure that no BGP configurations exists under PeerGroups.
func SetNoPeerGroup(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSetNoPeerGroup()
}
// BgpCommunityMemberIsAString returns true if device community member is not a list
func BgpCommunityMemberIsAString(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpCommunityMemberIsAString()
}
// IPv4StaticRouteWithIPv6NextHopUnsupported unsupported ipv4 with ipv6 nexthop
func IPv4StaticRouteWithIPv6NextHopUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpv4StaticRouteWithIpv6NhUnsupported()
}
// IPv6StaticRouteWithIPv4NextHopUnsupported unsupported ipv6 with ipv4 nexthop
func IPv6StaticRouteWithIPv4NextHopUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIpv6StaticRouteWithIpv4NhUnsupported()
}
// StaticRouteWithDropNhUnsupported unsupported drop nexthop
func StaticRouteWithDropNhUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetStaticRouteWithDropNh()
}
// StaticRouteWithExplicitMetric set explicit metric
func StaticRouteWithExplicitMetric(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetStaticRouteWithExplicitMetric()
}
// BgpDefaultPolicyUnsupported return true if BGP default-import/export-policy is not supported.
func BgpDefaultPolicyUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpDefaultPolicyUnsupported()
}
// ExplicitEnableBGPOnDefaultVRF return true if BGP needs to be explicitly enabled on default VRF
func ExplicitEnableBGPOnDefaultVRF(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetExplicitEnableBgpOnDefaultVrf()
}
// RoutingPolicyTagSetEmbedded returns true if the implementation does not support tag-set(s) as a
// separate entity, but embeds it in the policy statement
func RoutingPolicyTagSetEmbedded(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetRoutingPolicyTagSetEmbedded()
}
// SkipAfiSafiPathForBgpMultipleAs return true if device do not support afi/safi path to enable allow multiple-as for eBGP
func SkipAfiSafiPathForBgpMultipleAs(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipAfiSafiPathForBgpMultipleAs()
}
// CommunityMemberRegexUnsupported return true if device do not support community member regex
func CommunityMemberRegexUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetCommunityMemberRegexUnsupported()
}
// SamePolicyAttachedToAllAfis returns true if same import policy has to be applied for all AFIs
func SamePolicyAttachedToAllAfis(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSamePolicyAttachedToAllAfis()
}
// SkipSettingStatementForPolicy return true if device do not support afi/safi path to enable allow multiple-as for eBGP
func SkipSettingStatementForPolicy(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipSettingStatementForPolicy()
}
// SkipCheckingAttributeIndex return true if device do not return bgp attribute for the bgp session specifying the index
func SkipCheckingAttributeIndex(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSkipCheckingAttributeIndex()
}
// FlattenPolicyWithMultipleStatements return true if devices does not support policy-chaining
func FlattenPolicyWithMultipleStatements(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetFlattenPolicyWithMultipleStatements()
}
// SlaacPrefixLength128 for Slaac generated IPv6 link local address
func SlaacPrefixLength128(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetSlaacPrefixLength128()
}
// DefaultRoutePolicyUnsupported returns true if default route policy is not supported
func DefaultRoutePolicyUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetDefaultRoutePolicyUnsupported()
}
// CommunityMatchWithRedistributionUnsupported is set to true for devices that do not support matching community at the redistribution attach point.
func CommunityMatchWithRedistributionUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetCommunityMatchWithRedistributionUnsupported()
}
// BgpMaxMultipathPathsUnsupported returns true if the device does not support
// bgp max multipaths.
func BgpMaxMultipathPathsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpMaxMultipathPathsUnsupported()
}
// MultipathUnsupportedNeighborOrAfisafi returns true if the device does not
// support multipath under neighbor or afisafi.
func MultipathUnsupportedNeighborOrAfisafi(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMultipathUnsupportedNeighborOrAfisafi()
}
// ModelNameUnsupported returns true if /components/components/state/model-name
// is not supported for any component type.
func ModelNameUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetModelNameUnsupported()
}
// InstallPositionAndInstallComponentUnsupported returns true if install
// position and install component are not supported.
func InstallPositionAndInstallComponentUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetInstallPositionAndInstallComponentUnsupported()
}
// EncapTunnelShutBackupNhgZeroTraffic returns true when encap tunnel is shut then zero traffic flows to back-up NHG
func EncapTunnelShutBackupNhgZeroTraffic(dut *ondatra.DUTDevice) bool {