Upgrade to Pro — share decks privately, control downloads, hide ads and more …

git in operations

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Donatas Donatas
April 26, 2019

git in operations

Avatar for Donatas

Donatas

April 26, 2019
Tweet

Other Decks in Technology

Transcript

  1. git checkout • Carefully pick the name for a branch

    (think about others) • It’s useful to have feature/ or fix/ prefix before
  2. good commit message example commit afad5cedf1be827238b376e63b0b93bb555c928e Author: Donatas Abraitis <[email protected]>

    Date: Mon Feb 25 21:16:02 2019 +0200 bgpd: Add peer action for PEER_FLAG_IFPEER_V6ONLY flag peer_flag_modify() will always return BGP_ERR_INVALID_FLAG because the action was not defined for PEER_FLAG_IFPEER_V6ONLY flag. ``` global PEER_FLAG_IFPEER_V6ONLY = 16384; global BGP_ERR_INVALID_FLAG = ­2; probe process("/usr/lib/frr/bgpd").statement("peer_flag_modify@/root/frr/bgpd/bgpd.c:3975") { if ($flag == PEER_FLAG_IFPEER_V6ONLY && $action­>type == 0) printf("action not found for the flag PEER_FLAG_IFPEER_V6ONLY\n"); } probe process("/usr/lib/frr/bgpd").function("peer_flag_modify").return { if ($return == BGP_ERR_INVALID_FLAG) printf("return BGP_ERR_INVALID_FLAG\n"); } ``` produces: action not found for the flag PEER_FLAG_IFPEER_V6ONLY return BGP_ERR_INVALID_FLAG $ vtysh ­c 'conf t' ­c 'router bgp 20' ­c 'neighbor eth1 interface v6only remote­as external' Signed­off­by: Donatas Abraitis <[email protected]>