summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-08 16:45:42 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-08 16:45:42 -0800
commit2e269d3a39f8198ceaffbd4cf82074c6f4aedc52 (patch)
tree20cfc95badb88be06b39a398875615254db90453
parent60c98d5e240a1b1ddac9928d975d43c82cefabb4 (diff)
downloadvyatta-nat-2e269d3a39f8198ceaffbd4cf82074c6f4aedc52.tar.gz
vyatta-nat-2e269d3a39f8198ceaffbd4cf82074c6f4aedc52.zip
make show output consistent with firewall
-rw-r--r--xsl/show_nat_rules.xsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/xsl/show_nat_rules.xsl b/xsl/show_nat_rules.xsl
index a86233c..4df6065 100644
--- a/xsl/show_nat_rules.xsl
+++ b/xsl/show_nat_rules.xsl
@@ -185,12 +185,9 @@
<xsl:value-of select="$pad11"/>
<xsl:choose>
- <xsl:when test="$src_ports_d=''">
- <xsl:value-of select="$pad20"/>
- </xsl:when>
<xsl:when test="$src_ports_d!=''">
+ <xsl:text>src ports: </xsl:text>
<xsl:value-of select="$src_ports_d"/>
- <xsl:value-of select="substring($pad20,1,$pad20_len - string-length($src_ports_d))"/>
</xsl:when>
</xsl:choose>
<xsl:text>&newln;</xsl:text>
@@ -211,8 +208,8 @@
<xsl:choose>
<xsl:when test="$dst_ports_d!=''">
+ <xsl:text>dst ports: </xsl:text>
<xsl:value-of select="$dst_ports_d"/>
- <xsl:value-of select="substring($pad20,1,$pad20_len - string-length($dst_ports_d))"/>
</xsl:when>
</xsl:choose>
<xsl:text>&newln;</xsl:text>