Skip to content

Commit

Permalink
Merge pull request #2028 from qlyoung/cleanup-static-route-consistent…
Browse files Browse the repository at this point in the history
…-ordering

zebra: consistently order static route attributes
  • Loading branch information
riw777 authored Apr 5, 2018
2 parents 43944e5 + d7ca637 commit 0c842c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions zebra/zebra_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -2295,6 +2295,13 @@ int static_config(struct vty *vty, struct zebra_vrf *zvrf, afi_t afi,
if (si->distance != ZEBRA_STATIC_DISTANCE_DEFAULT)
vty_out(vty, " %d", si->distance);

/* Label information */
if (si->snh_label.num_labels)
vty_out(vty, " label %s",
mpls_label2str(si->snh_label.num_labels,
si->snh_label.label, buf,
sizeof buf, 0));

if (si->nh_vrf_id != si->vrf_id) {
struct vrf *vrf;

Expand All @@ -2303,13 +2310,6 @@ int static_config(struct vty *vty, struct zebra_vrf *zvrf, afi_t afi,
(vrf) ? vrf->name : "Unknown");
}

/* Label information */
if (si->snh_label.num_labels)
vty_out(vty, " label %s",
mpls_label2str(si->snh_label.num_labels,
si->snh_label.label, buf,
sizeof buf, 0));

vty_out(vty, "\n");

write = 1;
Expand Down

0 comments on commit 0c842c4

Please sign in to comment.