Skip to content
Snippets Groups Projects
  1. Jun 25, 2018
  2. Jun 13, 2018
    • Leon Sinclair's avatar
      gnmi: Add VRF to GNMI Client · 06cfa1db
      Leon Sinclair authored
      Handle addresses of the form [<vrf-name>/]address:port
      Edit help messages and Readme to show the option
      
      Change-Id: Ic93a6ad36ea885b44b7136c76b4788568fd4bab8
      06cfa1db
  3. Jun 07, 2018
    • Romanos Skiadas's avatar
      test/fileutil: Add t.Helper() to CopyFile() · 59944ff7
      Romanos Skiadas authored
      I discovered the missing t.Helper() by chance, so I decided to look
      for other potential places where I could add the t.Helper(). Only one
      that looked interesting after a quick `rg "^func .*\(t \*testing.T"`
      was CopyFile, so I think all helpers are covered for now.
      
      Change-Id: I4943e6ad3906c2ce49c65e2d54f3a6b990989b14
      59944ff7
  4. Jun 06, 2018
  5. Jun 04, 2018
    • AJ Yoo's avatar
      key: Implement key.Pointer · c23ca1b1
      AJ Yoo authored
      In order to make this implementation usable as a key,
      we have to add another hack to the key package. This
      hack special cases key.Pointer in key.New. For the
      pointers being used as top level keys, they are converted
      to a special type 'pointerKey' type that is a composite key.
      When pointerKey.Key is called, a key.Pointer is constructed
      and returned. For the pointers being used as values inside
      composite keys, they are converted to slices and then hashed.
      
      Change-Id: I9ca957376ff0b6b20316953c831945e5223fddc0
      c23ca1b1
  6. May 31, 2018
  7. May 29, 2018
  8. May 24, 2018
    • AJ Yoo's avatar
      path: Fix comment · 59652c8d
      AJ Yoo authored
      Change-Id: Ieb27d02795fadbfe242a82e4c619e37f3a54724f
      59652c8d
  9. May 22, 2018
  10. May 21, 2018
  11. May 18, 2018
  12. May 11, 2018
  13. Apr 24, 2018
    • jcr's avatar
      gnmi: Prepend human-readable notification timestamp to gnmi output · 70dca2f2
      jcr authored
      I've changed the gnmi subscribe output from
      
      $ gnmi -addr tallinn:6042 -username secretuser -password secretpasswd subscribe /Sysdb/cli/config
      /Sysdb/cli/config/commandsPath = ""
      /Sysdb/cli/config/prompt = "%H......%D{%H:%M:%S}%P"
      /Sysdb/cli/config/allowCliProcessReuse = true
      /Sysdb/cli/config/validateOutput = false
      /Sysdb/cli/config/terminalLengthOverride = -1
      /Sysdb/cli/config/terminalWidthOverride = -1
      
      to
      
      $ gnmi -addr tallinn:6042 -username secretuser -password secretpasswd subscribe /Sysdb/cli/config
      [2018-04-20T00:11:47.459560815Z] /Sysdb/cli/config/commandsPath = ""
      [2018-04-20T00:11:47.459560815Z] /Sysdb/cli/config/prompt = "%H......%D{%H:%M:%S}%P"
      [2018-04-20T00:11:47.459560815Z] /Sysdb/cli/config/allowCliProcessReuse = true
      [2018-04-20T00:11:47.459560815Z] /Sysdb/cli/config/validateOutput = false
      [2018-04-20T00:11:47.459560815Z] /Sysdb/cli/config/terminalLengthOverride = -1
      [2018-04-20T00:11:47.459560815Z] /Sysdb/cli/config/terminalWidthOverride = -1
      
      Change-Id: Ibbd1c81805b628d16f9f78f396877e95ca3248ee
      70dca2f2
  14. Apr 18, 2018
  15. Apr 16, 2018
    • AJ Yoo's avatar
      path: Treat "/" as Path{} in FromString · d6a6101a
      AJ Yoo authored
      In the vast majority of cases, "/" is interpreted to
      be the root path (as opposed to "/" + ""), so it the
      conversion to a Path should be Path{}.
      
      Change-Id: I2a4329c0668caf74551cde535eac5f4c3242fc99
      d6a6101a
  16. Apr 04, 2018
  17. Apr 03, 2018
  18. Mar 27, 2018
  19. Mar 23, 2018
  20. Mar 21, 2018
  21. Mar 16, 2018
  22. Mar 13, 2018
  23. Mar 07, 2018
    • Aaron Beitch's avatar
      path: Return nil if all arguments to Join are empty · 94ff7b94
      Aaron Beitch authored
      Change-Id: I5a774131f8b73eeb7dbb30c992dbcb0e72bf5c16
      94ff7b94
    • Aaron Beitch's avatar
      path: Simplify Join · b4ac8a06
      Aaron Beitch authored
      Also updated the join benchmark to join paths with actual
      elements. With the updated benchmark, comparing the speed of this
      change vs. previous, the results are in the noise:
      
      benchmark                       old ns/op     new ns/op     delta
      BenchmarkJoin/10_Paths-8        189           188           -0.53%
      BenchmarkJoin/100_Paths-8       1447          1435          -0.83%
      BenchmarkJoin/1000_Paths-8      14282         13983         -2.09%
      BenchmarkJoin/10000_Paths-8     199114        199120        +0.00%
      
      Change-Id: I5138c0da8a0e717f9e79ea746434704280bb9cd3
      b4ac8a06
  24. Mar 06, 2018
    • AJ Yoo's avatar
      path: Clean up some variable names · 9201843c
      AJ Yoo authored
      For the functions returning a Path, refer to the object
      being returned as "result" in their function bodies. It
      is consistent and makes it more clear that this is the
      object that we are constructing to return.
      
      Change-Id: I3baeaab418ee7f7dd520176cf6101b884fac6b51
      9201843c
    • AJ Yoo's avatar
      path: Update Join (minor optimization) · a4156fb1
      AJ Yoo authored
      Benchmark comparison:
      
      benchmark                       old ns/op     new ns/op     delta
      BenchmarkJoin/10_Paths-8        24.9          23.1          -7.23%
      BenchmarkJoin/100_Paths-8       148           141           -4.73%
      BenchmarkJoin/1000_Paths-8      1121          1065          -5.00%
      BenchmarkJoin/10000_Paths-8     14071         13642         -3.05%
      
      Change-Id: If26df888262f3117579a7552d9b0225c090c7926
      a4156fb1
    • AJ Yoo's avatar
      path: Add benchmark for Join · e8325d31
      AJ Yoo authored
      Change-Id: I90e37050ad706f8b964d781054d4ba0e63370652
      e8325d31
Loading