martylamb / macnificent

Macnificent is a set of utility classes for working with MAC addresses in Java. In addition to a lightweight MacAddress class and parser, this includes IEEE OUI registry information and a formatter for MAC addresses that displays an abbreviated form of the device's manufacturer's name.
Apache License 2.0
11 stars 7 forks source link

Support Cisco notation #2

Open trixpan opened 8 years ago

trixpan commented 8 years ago

Cisco (a dominant network device notation) uses a non-conventional notation

Switch# show mac-address-table 
          Mac Address Table
—————————————————————-

Vlan    Mac Address       Type        Ports
——    —————-       ————    ——-
 All    0014.1c40.b080    STATIC      CPU
 All    0100.0ccc.cccc    STATIC      CPU
 All    0100.0ccc.cccd    STATIC      CPU
 All    0100.0cdd.dddd    STATIC      CPU
   1    000f.1fd3.d85a    DYNAMIC     Fa0/14

Given their clout over the market, what do you think about supporting it?

martylamb commented 8 years ago

What kind of support are you looking for? This is trivial to parse in the MacAddress constructor. Are you looking for output formatting as well?

trixpan commented 8 years ago

Hey @martylamb I would say parse. output IMHO is always better served by standards (i.e. EUI-48)