mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
config: skip identity and use string as the data type
Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
committed by
FUJITA Tomonori
parent
271945b41d
commit
3bb006e8a5
@@ -92,10 +92,6 @@ def emit_golang(ctx, module, fd):
|
||||
emit_typedef(ctx, ctx.get_module('bgp-multiprotocol'))
|
||||
emit_typedef(ctx, ctx.get_module('bgp-operational'))
|
||||
|
||||
emit_identity(ctx, ctx.get_module('bgp-policy'))
|
||||
#emit_identity(ctx, ctx.get_module('routing-policy'))
|
||||
emit_identity(ctx, ctx.get_module('bgp-multiprotocol'))
|
||||
emit_identity(ctx, ctx.get_module('bgp-operational'))
|
||||
|
||||
for struct in ctx.golang_struct_def:
|
||||
struct_name = struct.arg
|
||||
@@ -128,10 +124,7 @@ def emit_class_def(ctx, c, struct_name):
|
||||
|
||||
# case identityref
|
||||
if type_name == 'identityref':
|
||||
base_module = type_obj.i_orig_module.i_prefix
|
||||
base_name = type_obj.i_type_spec.base.arg
|
||||
ref = lookup_identity(ctx, base_module, base_name)
|
||||
emit_type_name = ref.golang_name
|
||||
emit_type_name = 'string'
|
||||
|
||||
# case leafref
|
||||
elif type_name == 'leafref':
|
||||
|
||||
Reference in New Issue
Block a user