cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
122
Views
0
Helpful
2
Replies
Highlighted
Enthusiast

How to get full name in InterfaceEvent do_handle()?

If event has been reached in method handle_event() exists object event, which includes event.interface(type(NetworkInterface)). but after event.interface.name is only for example Gi0/1? Is a possible to get FULL name of interface?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Hall of Fame Cisco Employee

You can use:

intfConfig = networkInterface.get_config()

print "Name : " + intfConfig.display_name

View solution in original post

2 REPLIES 2
Highlighted
Enthusiast

InterfaceStatisticsEvent...

Highlighted
Hall of Fame Cisco Employee

You can use:

intfConfig = networkInterface.get_config()

print "Name : " + intfConfig.display_name

View solution in original post

This widget could not be displayed.