Skip to content

Commit

Permalink
@2682348 add enums to MAC module that exist in ga.atlanta+ (for heade…
Browse files Browse the repository at this point in the history
…r files consistency)
  • Loading branch information
Avinash Kumar authored and tsuna committed Oct 7, 2015
1 parent 1187dc7 commit 4a57f3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eos/inline/types/mac_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ operator<<(std::ostream& os, const mac_entry_type_t & enum_val) {
os << "MAC_ENTRY_CONFIGURED_REMOTE";
} else if (enum_val==MAC_ENTRY_RECEIVED_REMOTE) {
os << "MAC_ENTRY_RECEIVED_REMOTE";
} else if (enum_val==MAC_ENTRY_PEER_LEARNED_REMOTE) {
os << "MAC_ENTRY_PEER_LEARNED_REMOTE";
} else if (enum_val==MAC_ENTRY_PEER_CONFIGURED_REMOTE) {
os << "MAC_ENTRY_PEER_CONFIGURED_REMOTE";
} else if (enum_val==MAC_ENTRY_PEER_RECEIVED_REMOTE) {
os << "MAC_ENTRY_PEER_RECEIVED_REMOTE";
} else {
os << "Unknown value";
}
Expand Down
3 changes: 3 additions & 0 deletions eos/types/mac_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ enum mac_entry_type_t {
MAC_ENTRY_LEARNED_REMOTE,
MAC_ENTRY_CONFIGURED_REMOTE,
MAC_ENTRY_RECEIVED_REMOTE,
MAC_ENTRY_PEER_LEARNED_REMOTE,
MAC_ENTRY_PEER_CONFIGURED_REMOTE,
MAC_ENTRY_PEER_RECEIVED_REMOTE,
};
/** Appends a string representation of enum mac_entry_type_t value to the ostream. */
std::ostream& operator<<(std::ostream& os, const mac_entry_type_t & enum_val);
Expand Down

0 comments on commit 4a57f3a

Please sign in to comment.