| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from pynos import device |
||
| 5 | class interface_mtu(Action): |
||
| 6 | def run(self, **kwargs): |
||
| 7 | conn = (str(kwargs.pop('ip')), str(kwargs.pop('port'))) |
||
| 8 | auth = (str(kwargs.pop('username')), str(kwargs.pop('password'))) |
||
| 9 | test = kwargs.pop('test', False) |
||
| 10 | callback = kwargs.pop('callback', None) |
||
| 11 | with device.Device( |
||
| 12 | conn=conn, auth=auth, |
||
| 13 | test=test, |
||
| 14 | callback=callback |
||
| 15 | ) as dev: |
||
| 16 | dev.interface.mtu(**kwargs) |
||
| 17 | return 0 |
||
| 18 |