changed unknown value to default value of 64512
@@ -115,7 +115,6 @@ func (r resourcePrinterTable) print(client client.Interface, resources []runtime
return err
}
log.WithField("template", tpls).Debug("Got resource template")
-
// Convert the template string into a template - we need to include the join
// function.
fns := template.FuncMap{
@@ -127,6 +126,7 @@ func (r resourcePrinterTable) print(client client.Interface, resources []runtime
if err != nil {
panic(err)
}
+ log.Infof("Template: %s", tmpl)
// Use a tabwriter to write out the template - this provides better formatting.
writer := tabwriter.NewWriter(os.Stdout, 5, 1, 3, ' ', 0)
@@ -230,7 +230,7 @@ func config(client client.Interface) func(string) string {
case "asnumber":
if asValue == "" {
if bgpConfig, err := client.BGPConfigurations().Get(context.Background(), "default", options.GetOptions{}); err != nil {
- asValue = "unknown"
+ asValue = "64512"
} else {
asValue = bgpConfig.Spec.ASNumber.String()
}
