Skip to content

Commit

Permalink
Remove useless gnmi import flag (#407)
Browse files Browse the repository at this point in the history
* Remove useless gnmi import flag
  • Loading branch information
wenovus authored Jun 26, 2020
1 parent a1b8f0d commit 813ec65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions ypathgen/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ var (
preferOperationalState = flag.Bool("prefer_operational_state", false, "If set to true, state (config false) fields in the YANG schema are preferred over intended config leaves when building paths. This flag is only valid when exclude_state=false.")
fakeRootName = flag.String("fakeroot_name", "device", "The name of the fake root entity. This name will be capitalized for exporting.")
schemaStructPath = flag.String("schema_struct_path", "", "The import path to use for ygen-generated schema structs. This should only be specified if the generated path structs are to reside in a different package.")
gnmiProtoPath = flag.String("gnmi_proto_path", genutil.GoDefaultGNMIImportPath, "The import path to use for gNMI's proto package.")
ygotImportPath = flag.String("ygot_path", genutil.GoDefaultYgotImportPath, "The import path to use for ygot.")
listBuilderKeyThreshold = flag.Uint("list_builder_key_threshold", 0, "The threshold equal or over which the builder API is used for key population. 0 means infinity.")
skipEnumDedup = flag.Bool("skip_enum_deduplication", false, "If set to true, all leaves of type enumeration will have a unique enum output for them, rather than sharing a common type (default behaviour).")
Expand Down Expand Up @@ -100,7 +99,6 @@ func main() {
PackageName: *packageName,
GoImports: ypathgen.GoImports{
SchemaStructPkgPath: *schemaStructPath,
GNMIProtoPath: *gnmiProtoPath,
YgotImportPath: *ygotImportPath,
},
PreferOperationalState: *preferOperationalState,
Expand Down
4 changes: 0 additions & 4 deletions ypathgen/pathgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func NewDefaultConfig(schemaStructPkgPath string) *GenConfig {
PackageName: defaultPathPackageName,
GoImports: GoImports{
SchemaStructPkgPath: schemaStructPkgPath,
GNMIProtoPath: genutil.GoDefaultGNMIImportPath,
YgotImportPath: genutil.GoDefaultYgotImportPath,
},
FakeRootName: defaultFakeRootName,
Expand Down Expand Up @@ -140,9 +139,6 @@ type GoImports struct {
// is used to get the enum and union type names used as the list key
// for calling a list path accessor.
SchemaStructPkgPath string
// GNMIProtoPath specifies the path to the generated gNMI protobuf, which
// is used to store the catalogue entries for generated modules.
GNMIProtoPath string
// YgotImportPath specifies the path to the ygot library that should be used
// in the generated code.
YgotImportPath string
Expand Down

0 comments on commit 813ec65

Please sign in to comment.