]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Config: Dropped the ipv4:netmask4 syntax for IPv4 prefixes.
authorJan Maria Matejka <mq@ucw.cz>
Tue, 6 Mar 2018 15:03:35 +0000 (16:03 +0100)
committerJan Maria Matejka <mq@ucw.cz>
Thu, 8 Mar 2018 11:57:39 +0000 (12:57 +0100)
conf/confbase.Y
doc/bird.sgml
filter/test.conf2

index c2d647eb1c49e6cbcd353ac56a76cdc7bf297b14..55615528f137b5592dab28cb3bc8c089cbd64800 100644 (file)
@@ -177,10 +177,6 @@ pxlen4:
      if ($2 > IP4_MAX_PREFIX_LENGTH) cf_error("Invalid prefix length %u", $2);
      $$ = $2;
    }
- | ':' IP4 {
-     $$ = ip4_masklen($2);
-     if ($$ == 255) cf_error("Invalid netmask %I4", $2);
-   }
  ;
 
 net_ip4_: IP4 pxlen4
index 04f9258b8ebcea0edb56be49489c70336124ad40..5ed816e86ba8252ffded9f049d562f101e82c703 100644 (file)
@@ -1234,8 +1234,7 @@ foot).
        operator <cf/.type/. The type may be:
 
        <cf/NET_IP4/ and <cf/NET_IP6/ prefixes hold an IP prefix. The literals
-       are written as <cf><m/ipaddress//<m/pxlen/</cf>,
-       or <cf><m>ipaddress</m>/<m>netmask</m></cf>. There are two special
+       are written as <cf><m/ipaddress//<m/pxlen/</cf>. There are two special
        operators on these: <cf/.ip/ which extracts the IP address from the
        pair, and <cf/.len/, which separates prefix length from the pair.
        So <cf>1.2.0.0/16.len = 16</cf> is true.
index 2a5d896bdd94308882d3b8edcd749aa55ca39901..8355495201c77b270809a6eec79ea4dce901721d 100644 (file)
@@ -76,8 +76,8 @@ protocol static {
        route 62.168.0.0/25 reject;
        route 1.2.3.4/32 via 195.113.31.124;
        route 10.0.0.0/8 reject;
-       route 10.1.1.0:255.255.255.0 via 62.168.0.3;
-       route 10.1.2.0:255.255.255.0 via 62.168.0.3;
-       route 10.1.3.0:255.255.255.0 via 62.168.0.4;
+       route 10.1.1.0/24 via 62.168.0.3;
+       route 10.1.2.0/24 via 62.168.0.3;
+       route 10.1.3.0/24 via 62.168.0.4;
        route 10.2.0.0/24 via "arc0";
 }