Skip to content

Commit

Permalink
EnterpriseID -> PrivateEnterpriseCode.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Jun 15, 2016
1 parent aa26d39 commit 2613829
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions logfwd/origin.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ type Origin struct {
JujuVersion version.Number
}

// EnterpriseID returns the IANA-registered "SMI Network Management
// Private Enterprise Code" to use for the log record.
// PrivateEnterpriseCode returns the IANA-registered "SMI Network
// Management Private Enterprise Code" to use for the log record.
// (see https://tools.ietf.org/html/rfc5424#section-7.2.2)
func (o Origin) EnterpriseID() string {
func (o Origin) PrivateEnterpriseCode() string {
return canonicalIANAid
}

Expand Down
4 changes: 2 additions & 2 deletions logfwd/origin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ type OriginSuite struct {

var _ = gc.Suite(&OriginSuite{})

func (s *OriginSuite) TestEnterpriseID(c *gc.C) {
func (s *OriginSuite) TestPrivateEnterpriseCode(c *gc.C) {
var origin logfwd.Origin

id := origin.EnterpriseID()
id := origin.PrivateEnterpriseCode()

c.Check(id, gc.Equals, "28978")
}
Expand Down

0 comments on commit 2613829

Please sign in to comment.