diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2017-09-17 19:23:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-17 19:23:16 -0400 |
| commit | a7dd519b58c9f68d0b74bd6fb5daaf88e84ece63 (patch) | |
| tree | f92c696d8b17e153953d0c3123d03bc7e41c09f3 /zebra/router-id.c | |
| parent | af34a65a62efc13310facf054ac388d45e9c2e01 (diff) | |
| parent | a2addae8fe172f04f4d8ac99aa123a7d2dd64604 (diff) | |
Merge pull request #1188 from opensourcerouting/foreach_indentation
*: use clang's 'ForEachMacros' format style option
Diffstat (limited to 'zebra/router-id.c')
| -rw-r--r-- | zebra/router-id.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/zebra/router-id.c b/zebra/router-id.c index 383f21864b..f6c88a2162 100644 --- a/zebra/router-id.c +++ b/zebra/router-id.c @@ -187,19 +187,21 @@ void router_id_write(struct vty *vty) struct vrf *vrf; struct zebra_vrf *zvrf; - RB_FOREACH(vrf, vrf_name_head, &vrfs_by_name) - if ((zvrf = vrf->info) != NULL) - if (zvrf->rid_user_assigned.u.prefix4.s_addr) { - if (zvrf_id(zvrf) == VRF_DEFAULT) - vty_out(vty, "router-id %s\n", - inet_ntoa(zvrf->rid_user_assigned.u - .prefix4)); - else - vty_out(vty, "router-id %s vrf %s\n", - inet_ntoa(zvrf->rid_user_assigned.u - .prefix4), - zvrf_name(zvrf)); - } + RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) + if ((zvrf = vrf->info) != NULL) + if (zvrf->rid_user_assigned.u.prefix4.s_addr) { + if (zvrf_id(zvrf) == VRF_DEFAULT) + vty_out(vty, "router-id %s\n", + inet_ntoa( + zvrf->rid_user_assigned + .u.prefix4)); + else + vty_out(vty, "router-id %s vrf %s\n", + inet_ntoa( + zvrf->rid_user_assigned + .u.prefix4), + zvrf_name(zvrf)); + } } DEFUN (router_id, |
