From 50df0390faedad489614c94bd00b1749d57dbbab Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 12 Jul 2019 11:14:55 +0900 Subject: use tha standard comment for machine-generated files Signed-off-by: FUJITA Tomonori --- internal/pkg/config/bgp_configs.go | 11 +++-------- tools/pyang_plugins/bgpyang2golang.py | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/internal/pkg/config/bgp_configs.go b/internal/pkg/config/bgp_configs.go index 0e375619..b421a440 100644 --- a/internal/pkg/config/bgp_configs.go +++ b/internal/pkg/config/bgp_configs.go @@ -1,7 +1,7 @@ // DO NOT EDIT // generated by pyang using OpenConfig https://github.com/openconfig/public // -// Copyright (C) 2014-2016 Nippon Telegraph and Telephone Corporation. +// Copyright (C) 2014-2019 Nippon Telegraph and Telephone Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//lint:file-ignore S1008 generated code. +// Code generated by pyang. DO NOT EDIT. package config @@ -2548,10 +2548,6 @@ type TransportState struct { // Remote port being used by the peer for the TCP session // supporting the BGP session. RemotePort uint16 `mapstructure:"remote-port" json:"remote-port,omitempty"` - // original -> bgp:bind-interface - // bgp:bind-interface's original type is union. - // Interface name for binding. - BindInterface string `mapstructure:"bind-interface" json:"bind-interface,omitempty"` } // struct for container bgp:config. @@ -2584,8 +2580,7 @@ type TransportConfig struct { // original -> gobgp:ttl // TTL value for BGP packets. Ttl uint8 `mapstructure:"ttl" json:"ttl,omitempty"` - // original -> bgp:bind-interface - // bgp:bind-interface's original type is union. + // original -> gobgp:bind-interface // Interface name for binding. BindInterface string `mapstructure:"bind-interface" json:"bind-interface,omitempty"` } diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py index e2545135..1ad359e3 100644 --- a/tools/pyang_plugins/bgpyang2golang.py +++ b/tools/pyang_plugins/bgpyang2golang.py @@ -24,7 +24,7 @@ _COPYRIGHT_NOTICE = """ // DO NOT EDIT // generated by pyang using OpenConfig https://github.com/openconfig/public // -// Copyright (C) 2014-2016 Nippon Telegraph and Telephone Corporation. +// Copyright (C) 2014-2019 Nippon Telegraph and Telephone Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ _COPYRIGHT_NOTICE = """ // See the License for the specific language governing permissions and // limitations under the License. -//lint:file-ignore S1008 generated code. +// Code generated by pyang. DO NOT EDIT. """ EQUAL_TYPE_LEAF = 0 -- cgit v1.2.3